Repository navigation
remove eol of python-flask-connexion3 #25376
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
base: master
Are you sure you want to change the base?
Changes from all commits
2813cbe
1ae0b72
1efb642
2f63947
a258d92
581a9dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,18 @@ | ||
| {{^useConnexion3}} | ||
| connexion[swagger-ui] >= 2.6.0; python_version>="3.6" | ||
| # 2.3 is the last version that supports python 3.4-3.5 | ||
| connexion[swagger-ui] <= 2.3.0; python_version=="3.5" or python_version=="3.4" | ||
| # prevent breaking dependencies from advent of connexion>=3.0 | ||
| connexion[swagger-ui] <= 2.14.2; python_version>"3.4" | ||
| # connexion requires werkzeug but connexion < 2.4.0 does not install werkzeug | ||
| # we must peg werkzeug versions below to fix connexion | ||
| # https://github.com/zalando/connexion/pull/1044 | ||
| werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4" | ||
| # Connexion 2.x | ||
| connexion[swagger-ui]>=2.15.1,<3.0.0 | ||
| {{/useConnexion3}} | ||
| {{#useConnexion3}} | ||
| # pinned to 3.3.0+ (not just the first 3.0.0 release) since that's the | ||
| # earliest version verified to work with the Jsonifier/test_client setup | ||
| # below, and the first to officially support Python 3.13/3.14 | ||
| connexion[flask,swagger-ui,uvicorn] >= 3.3.0,<4.0.0 | ||
| # Connexion 3.x | ||
| connexion[flask,swagger-ui,uvicorn]>=3.3.0,<4.0.0 | ||
| {{/useConnexion3}} | ||
| {{^useConnexion3}} | ||
| swagger-ui-bundle >= 0.0.2 | ||
| {{/useConnexion3}} | ||
| {{#useConnexion3}} | ||
| # connexion's own swagger-ui extra already requires this floor; pinned | ||
| # explicitly here too so requirements.txt is self-documenting. | ||
| swagger-ui-bundle >= 1.1.0 | ||
| {{/useConnexion3}} | ||
| python_dateutil >= 2.6.0 | ||
|
|
||
| Flask>=2.3.3,<4.0.0 | ||
| python-dateutil>=2.8.2 | ||
| setuptools>=21.0.0 | ||
|
|
||
| {{^useConnexion3}} | ||
| {{#featureCORS}} | ||
| # should support both Python 2 and Python 3 | ||
| flask-cors >= 3.0.10 | ||
| flask-cors>=4.0.0 | ||
| {{/featureCORS}} | ||
| {{/useConnexion3}} | ||
| setuptools >= 21.0.0 | ||
| {{^useConnexion3}} | ||
| Flask == 2.1.1 | ||
| {{/useConnexion3}} | ||
| {{#useConnexion3}} | ||
| Flask >= 2.2.0,<4.0.0 | ||
| {{/useConnexion3}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,12 @@ | ||
| # ref: https://docs.travis-ci.com/user/languages/python | ||
| language: python | ||
| python: | ||
| {{^useConnexion3}} | ||
| - "3.2" | ||
| - "3.3" | ||
| - "3.4" | ||
| - "3.5" | ||
| - "3.6" | ||
| - "3.7" | ||
| - "3.8" | ||
| {{/useConnexion3}} | ||
| {{#useConnexion3}} | ||
| - "3.9" | ||
| - "3.10" | ||
| - "3.11" | ||
| - "3.12" | ||
| {{/useConnexion3}} | ||
| - "3.13" | ||
| - "3.14" | ||
| - "3.15" | ||
|
Contributor
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. P2: This matrix adds Python 3.15 even though generated Prompt for AI agents
Contributor
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. The connexion3 was update to be compatible with 3.15 but not yet release.. I can wait for this !! |
||
|
|
||
| # command to install dependencies | ||
| install: "pip install -r requirements.txt" | ||
| # command to run tests | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,14 @@ | ||
| import sys | ||
|
|
||
| if sys.version_info < (3, 7): | ||
| import typing | ||
| def is_generic(klass): | ||
| """Determine whether klass is a generic class.""" | ||
| return hasattr(klass, '__origin__') | ||
|
|
||
| def is_generic(klass): | ||
| """ Determine whether klass is a generic class """ | ||
| return type(klass) == typing.GenericMeta | ||
|
|
||
| def is_dict(klass): | ||
| """ Determine whether klass is a Dict """ | ||
| return klass.__extra__ == dict | ||
| def is_dict(klass): | ||
| """Determine whether klass is a Dict.""" | ||
| return getattr(klass, '__origin__', None) is dict | ||
|
|
||
| def is_list(klass): | ||
| """ Determine whether klass is a List """ | ||
| return klass.__extra__ == list | ||
|
|
||
| else: | ||
|
|
||
| def is_generic(klass): | ||
| """ Determine whether klass is a generic class """ | ||
| return hasattr(klass, '__origin__') | ||
|
|
||
| def is_dict(klass): | ||
| """ Determine whether klass is a Dict """ | ||
| return klass.__origin__ == dict | ||
|
|
||
| def is_list(klass): | ||
| """ Determine whether klass is a List """ | ||
| return klass.__origin__ == list | ||
| def is_list(klass): | ||
| """Determine whether klass is a List.""" | ||
| return getattr(klass, '__origin__', None) is list |
Uh oh!
There was an error while loading. Please reload this page.