Skip to content
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

Merged
merged 7 commits into from
Oct 24, 2018
Merged

Conversation

eavanvalkenburg
Copy link
Contributor

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.

image

This PR closes/fixes the following issues:

@bunq bunq deleted a comment Oct 24, 2018
@bunq bunq deleted a comment Oct 24, 2018
Copy link
Contributor

@OGKevin OGKevin left a 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
Copy link
Contributor

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.

@@ -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'
Copy link
Contributor

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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor

@OGKevin OGKevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after this, LGTM

@@ -0,0 +1 @@
{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this file.

@bunq bunq deleted a comment Oct 24, 2018
Copy link
Contributor

@kojoru kojoru left a 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.
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Require Python version equal or higher than Python 3.6.
# Require Python version equal or higher than specified version

Copy link
Contributor Author

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.

Copy link
Contributor

@OGKevin OGKevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@kojoru kojoru merged commit 3edbc19 into bunq:develop Oct 24, 2018
@bunq bunq deleted a comment Oct 24, 2018
@bunq bunq deleted a comment Oct 24, 2018
@bunq bunq deleted a comment Oct 24, 2018
@bunq bunq deleted a comment Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimum Python version to 3.5.3
3 participants