[python] Update python versions (#8042)

* Remove redundant encoding definitions

UTF-8 is already the default encoding in Python 3.

* Remove Python3.4 related requirements

* Remove dead Python version 3.5

* Add Python 3.9 to CI and test configs

* Update petstore example
This commit is contained in:
Ülgen Sarıkavak
2020-12-07 23:07:35 +03:00
committed by GitHub
parent 35d616c9af
commit e00ac502f1
243 changed files with 32 additions and 474 deletions

View File

@@ -10,9 +10,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=dynamic_servers
test-3.5:
extends: .tests
image: python:3.5-alpine
test-3.6:
extends: .tests
image: python:3.6-alpine
@@ -22,3 +19,6 @@ test-3.7:
test-3.8:
extends: .tests
image: python:3.8-alpine
test-3.9:
extends: .tests
image: python:3.9-alpine

View File

@@ -1,10 +1,10 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# command to install dependencies
install:
- "pip install -r requirements.txt"

View File

@@ -9,7 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
## Requirements.
Python >= 3.5
Python >= 3.6
## Installation & Usage
### pip install

View File

@@ -1,5 +1,3 @@
# coding: utf-8
# flake8: noqa
"""

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,4 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,4 +1,3 @@
# coding: utf-8
# flake8: noqa

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,5 +1,3 @@
# coding: utf-8
# flake8: noqa
# import all models into this package

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers

View File

@@ -1,5 +1,3 @@
# coding: utf-8
"""
OpenAPI Extension with dynamic servers
@@ -36,7 +34,7 @@ setup(
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Extension with dynamic servers"],
python_requires=">=3.5",
python_requires=">=3.6",
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,

View File

@@ -1,3 +1 @@
pytest~=4.6.7 # needed for python 3.4
pytest-cov>=2.8.1
pytest-randomly==1.2.3 # needed for python 3.4