-
Notifications
You must be signed in to change notification settings - Fork 69
chore: upgrade to python 3.12 for crud-web-apps #757
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,15 @@ | ||
| import setuptools | ||
|
|
||
| REQUIRES = [ | ||
| "Flask >= 1.1.1", | ||
| "Flask >= 2.3.2", | ||
| "Flask-API >= 2.0", | ||
| "kubernetes == 22.6.0", | ||
| "requests >= 2.22.0", | ||
| "urllib3 >= 1.25.7", | ||
| "Werkzeug >= 0.16.0", | ||
| "kubernetes == 34.1.0", | ||
| "requests", | ||
| "urllib3", | ||
| "Werkzeug >= 3.0.6", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current Dependencies that require Python ≥3.9:
Dependencies that support Python ≥3.8:
Recommendation: Since this PR was tested with Python 3.12 and some dependencies require ≥3.9, I suggest: python_requires=">=3.12", # Tested version, most conservative Or at minimum: python_requires=">=3.9", # Minimum required by urllib3 2.5.0 and gevent (that is the permissive suggestion). Also consider removing line 13:
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great observation, totally agreed and modified, thanks. |
||
| "Flask-Cors >= 3.0.8", | ||
| "gevent", | ||
| "prometheus-flask-exporter >= 0.23.1", | ||
| "importlib-metadata >= 1.0;python_version<'3.8'", | ||
| ] | ||
|
|
||
| setuptools.setup( | ||
|
|
@@ -27,5 +26,5 @@ | |
| "Topic :: Software Development :: Libraries", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| ], | ||
| python_requires=">=3.6", | ||
| python_requires=">=3.12", | ||
| ) | ||
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.
I THINK the following file is unused.. and given the changes here to
setup.py- is now a source of outdated (mis)information:We should remove this
requirements.txtfile (assuming its removal doesn't break anything!)