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

Add python version requirement on setup.py #595

Closed
wants to merge 2 commits into from

Conversation

jason-the-j
Copy link

Problem:
All python versions previous to 3.8 are now end of life and no longer supported.
But, pip automatically installs the latest version of flask_restx on python 3.6 (or any version under 3.8), resulting in ModuleNotFoundError on importlib.metadata which is available starting with python 3.8.

Solution:
include python_requires option when setup for pip to resolve python dependency accordingly.
prevent installing the latest and unsupported flask_restx regardless of python version.
fixes #586

include python_requires option on setup for pip to resolve python dependency accordingly.
prevent installing the latest flask_restx regardless of python version.
fixes python-restx#586
@peter-doggart
Copy link
Contributor

@jason-the-j I've merged this as #609 to fix some lint errors on the fly. Thanks for your contribution and fix. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] v1.3.0 ModuleNotFoundError: No module named 'importlib.metadata' (v1.2.0 is OK)
2 participants