-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edits to allow Python 3.5.3 as minimum #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor style changes and version bump reversal.
VERSION
Outdated
1.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this back. When a new version is released, we will do the version bump.
bunq/sdk/client.py
Outdated
@@ -49,7 +49,7 @@ class ApiClient(object): | |||
HEADER_RESPONSE_ID_LOWER_CASED = 'x-bunq-client-response-id' | |||
|
|||
# Default header values | |||
_USER_AGENT_BUNQ = 'bunq-sdk-python/1.1.0' | |||
_USER_AGENT_BUNQ = 'bunq-sdk-python/1.1.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
setup.py
Outdated
@@ -24,7 +24,7 @@ | |||
# Versions should comply with PEP440. For a discussion on single-sourcing | |||
# the version across setup.py and the project code, see | |||
# https://packaging.python.org/en/latest/single_source_version.html | |||
version='1.1.0', | |||
version='1.1.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after this, LGTM
.vscode/settings.json
Outdated
@@ -0,0 +1 @@ | |||
{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more minor thing to address
setup.py
Outdated
@@ -56,11 +56,12 @@ | |||
|
|||
# Specify the Python versions you support here. In particular, ensure | |||
# that you indicate whether you support Python 2, Python 3 or both. | |||
'Programming Language :: Python :: 3.5.3', | |||
'Programming Language :: Python :: 3.6', | |||
], | |||
|
|||
# Require Python version equal or higher than Python 3.6. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Require Python version equal or higher than Python 3.6. | |
# Require Python version equal or higher than specified version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I also noticed that the classifiers do not have minor version (under 3.5) and those are only used for searching on pypi.org. The python_requires field is the setup time check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
Just went through this, I created a virtualenv with Python 3.5.3. Just had to make some small adjustments in the tests, nothing in the source. Some of the tests used the new Python 3.6 syntax for strong typing, replaced that with Asserts on the types after create. And one test used a function from the Secrets package that is new in 3.6, replaced that with a direct function when running on Python < 3.6.
Otherwise, all tests work! So raised the version to 1.1.1 and updated the setup.py for the minimum version of Python.
This PR closes/fixes the following issues: