forked from openapi-generators/openapi-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (90 loc) · 2.32 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[tool.poetry]
name = "openapi-python-client"
version = "0.8.0"
description = "Generate modern Python clients from OpenAPI"
repository = "https://github.com/triaxtec/openapi-python-client"
license = "MIT"
keywords=["OpenAPI", "Client", "Generator"]
authors = ["Dylan Anthony <danthony@triaxtec.com>"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
readme = "README.md"
packages = [
{include = "openapi_python_client"},
]
include = ["CHANGELOG.md", "openapi_python_client/py.typed"]
[tool.poetry.dependencies]
python = "^3.6"
jinja2 = "^2.11.1"
stringcase = "^1.2.0"
typer = "^0.3"
colorama = {version = "^0.4.3", markers = "sys_platform == 'win32'"}
shellingham = "^1.3.2"
black = ">=20.8b1"
isort = "^5.0.5"
pyyaml = "^5.3.1"
importlib_metadata = {version = "^2.0.0", python = "<3.8"}
pydantic = "^1.6.1"
attrs = "^20.1.0"
python-dateutil = "^2.8.1"
httpx = ">=0.15.4,<0.18.0"
autoflake = "^1.4"
[tool.poetry.scripts]
openapi-python-client = "openapi_python_client.cli:app"
[tool.poetry.dev-dependencies]
pytest = "*"
pytest-mock = "*"
mypy = "*"
taskipy = "*"
safety = "*"
pytest-cov = "*"
python-multipart = "*"
flake8 = "*"
typer-cli = "^0.0.11"
[tool.taskipy.tasks]
check = """
isort .\
&& black .\
&& flake8 openapi_python_client\
&& safety check --bare\
&& mypy openapi_python_client\
&& pytest --cov openapi_python_client tests --cov-report=term-missing\
"""
regen = "python -m end_to_end_tests.regen_golden_record"
regen_custom = "python -m end_to_end_tests.regen_golden_record custom"
e2e = "pytest openapi_python_client end_to_end_tests/test_end_to_end.py"
re = """
task regen\
&& task regen_custom\
&& task e2e\
"""
docs = "typer openapi_python_client/cli.py utils docs > usage.md"
[tool.black]
line-length = 120
target_version = ['py36', 'py37', 'py38']
exclude = '''
(
/(
| \.git
| \.venv
| \.mypy_cache
| openapi_python_client/templates
| tests/test_templates
| end_to_end_tests/test_custom_templates
| end_to_end_tests/golden-record-custom
)/
)
'''
[tool.isort]
line_length = 120
profile = "black"
skip = [".venv", "tests/test_templates"]
[tool.coverage.run]
omit = ["openapi_python_client/templates/*"]
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"