[python-nextgen] Add pyproject.toml (#14861)

* add pyproject.toml in python-nextgen client generator

* minor fix
This commit is contained in:
William Cheng
2023-03-04 14:14:43 +08:00
committed by GitHub
parent 39e27a804d
commit 46fb49ecd0
12 changed files with 139 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ petstore_api/models/user.py
petstore_api/models/with_nested_one_of.py
petstore_api/rest.py
petstore_api/signing.py
pyproject.toml
requirements.txt
setup.cfg
setup.py

View File

@@ -40,6 +40,10 @@ Then import the package:
import petstore_api
```
### Tests
Execute `pytest` to run the tests.
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:

View File

@@ -0,0 +1,29 @@
[tool.poetry]
name = "petstore_api"
version = "1.0.0"
description = "OpenAPI Petstore"
authors = ["team@openapitools.org"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/GIT_REPO_ID/GIT_USER_ID"
keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
[tool.poetry.dependencies]
python = "^3.7"
urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
aiohttp = ">= 3.8.4"
pem = ">= 19.3.0"
pycryptodome = ">= 3.9.0"
pydantic = ">= 1.10.5"
aenum = ">=3.1.11"
[tool.poetry.dev-dependencies]
pytest = ">=7.2.1"
tox = ">=4.4.6"
flake8 = ">=6.0.0"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"