Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})

## Requirements.

Python >= 3.5
Python >= 3.6

## Installation & Usage
### pip install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})

## Requirements.

Python >= 3.5
Python >= 3.6

## Installation & Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{#apiInfo}}
{{#apis}}
{{#-first}}
# coding: utf-8

# flake8: noqa

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

# flake8: noqa

# import all models into this package
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

# flake8: noqa

{{>partial_header}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import re # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
{{>partial_header}}

import json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import unittest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import copy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ stages:
- pytest --cov={{{packageName}}}
{{/useNose}}

test-3.5:
extends: .tests
image: python:3.5-alpine
test-3.6:
extends: .tests
image: python:3.6-alpine
Expand All @@ -27,3 +24,6 @@ test-3.7:
test-3.8:
extends: .tests
image: python:3.8-alpine
test-3.9:
extends: .tests
image: python:3.9-alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{> partial_header }}

import re # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

from datetime import date, datetime # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

from setuptools import setup, find_packages # noqa: H301
Expand Down Expand Up @@ -41,7 +39,7 @@ setup(
author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}[email protected]{{/infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
python_requires=">=3.5",
python_requires=">=3.6",
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
{{>partial_header}}

from base64 import b64encode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ py>=1.4.31
randomize>=0.13
{{/useNose}}
{{^useNose}}
pytest~=4.6.7 # needed for python 3.4
pytest-cov>=2.8.1
pytest-randomly==1.2.3 # needed for python 3.4
{{/useNose}}
{{#hasHttpSignatureMethods}}
pycryptodome>=3.9.0
{{/hasHttpSignatureMethods}}
{{/hasHttpSignatureMethods}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

{{>partial_header}}

import io
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions samples/client/petstore/python/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=petstore_api

test-3.5:
extends: .tests
image: python:3.5-alpine
test-3.6:
extends: .tests
image: python:3.6-alpine
Expand All @@ -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
2 changes: 1 addition & 1 deletion samples/client/petstore/python/.travis.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

# flake8: noqa

"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/api/fake_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/api/pet_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/api/store_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/api/user_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
1 change: 0 additions & 1 deletion samples/client/petstore/python/petstore_api/api_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8

# flake8: noqa

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/configuration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/model/animal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/model/cat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/model/category.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/model/child.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

"""
OpenAPI Petstore

Expand Down
Loading