-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add python 3.6 to github action * lessen requirements threshold to support python3.6 * add utility module & implement `has_named_parameter` function * handle `text` param not existance in python3.6 `subprocess.check_output` * refactor e.output to e.__str__ * add retry mechanism in requesting pypi * add python 3.6 support * fixing the critical requirements to trigger dependant bot
- Loading branch information
Showing
8 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ body: | |
- Python 3.9 | ||
- Python 3.8 | ||
- Python 3.7 | ||
- Python 3.6 | ||
default: 1 | ||
validations: | ||
required: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
requests>=1.0.0 | ||
setuptools>=40.8.0 | ||
wheel>=0.40.0 | ||
twine>=4.0.0 | ||
wheel>=0.35.0 | ||
twine>=3.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
"""utility module.""" | ||
from inspect import signature | ||
|
||
|
||
def has_named_parameter(func, param_name): | ||
""" | ||
Check whether the given function has a parameter named param_name or not. | ||
:param func: function to check it's params | ||
:type func: function | ||
:param param_name: parameter's name | ||
:type param_name: str | ||
:return: boolean | ||
""" | ||
_signature = signature(func) | ||
parameter_names = [p.name for p in _signature.parameters.values()] | ||
return param_name in parameter_names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters