Skip to content

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