Fix/remove support python2 option in flask aiohttp generators (#13585)

* fix: remove option supportPython2.
[python-flask][python-aiohttp][python-blueplanet]

* fix: update samples

* test only python servers

* fix(tests): downgrade pytest version to ensure compatibility with python3.6 [python-flask][python-aiohttp]

* Revert "fix(tests): downgrade pytest version to ensure compatibility with python3.6 [python-flask][python-aiohttp]"

This reverts commit 9f47db2f87.

* test in circlei

* run commands directly

* test in node 1

* update makefile

* fix Makefile

* fix test

* revert some changes, remove python server tests from travis

Co-authored-by: Kevin Bannier <kevinbannier1@gmail.com>
This commit is contained in:
William Cheng
2022-10-04 15:24:26 +08:00
committed by GitHub
parent 57f5cc4000
commit 085e1e58e5
47 changed files with 83 additions and 185 deletions

View File

@@ -12,7 +12,7 @@ clean:
find . -name "__pycache__" -delete
venv:
python -m venv $(VENV)
python3 -m venv $(VENV)
test: clean venv
bash ./test_python3.sh

View File

@@ -5,5 +5,5 @@ connexion[aiohttp,swagger-ui] <= 2.3.0; python_version=="3.5" or python_version=
# 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"
swagger-ui-bundle == 0.0.6
aiohttp_jinja2 == 1.2.0
swagger-ui-bundle == 0.0.9
aiohttp_jinja2 == 1.5.0

View File

@@ -14,9 +14,9 @@ VERSION = "1.0.0"
# http://pypi.python.org/pypi/setuptools
REQUIRES = [
"connexion==2.6.0",
"swagger-ui-bundle==0.0.6",
"aiohttp_jinja2==1.2.0",
"connexion==2.14.1",
"swagger-ui-bundle==0.0.9",
"aiohttp_jinja2==1.5.0",
]
setup(

View File

@@ -1,4 +1,4 @@
pytest~=4.6.7 # needed for python 2.7+3.4
pytest~=7.1.0
pytest-cov>=2.8.1
pytest-randomly==1.2.3 # needed for python 2.7+3.4
pytest-randomly>=1.2.3
pytest-aiohttp>=0.3.0