Repository navigation
Expand file tree
/
Copy pathsetup.mustache
More file actions
82 lines (78 loc) · 2.29 KB
/
Copy pathsetup.mustache
File metadata and controls
82 lines (78 loc) · 2.29 KB
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
{{>partial_header}}
from setuptools import setup, find_packages # noqa: H301
{{#useCustomTemplateCode}}
from pathlib import Path
{{/useCustomTemplateCode}}
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "{{{projectName}}}"
VERSION = "{{packageVersion}}"
PYTHON_REQUIRES = ">= 3.10"
REQUIRES = [
{{^async}}
{{^useCustomTemplateCode}}
"urllib3 >= 2.7.0, < 3.0.0",
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
"urllib3 >= 2.8.0, < 3.0.0",
{{/useCustomTemplateCode}}
{{/async}}
"python-dateutil >= 2.8.2",
{{#asyncio}}
"aiohttp >= 3.14.1",
"aiohttp-retry >= 2.8.3",
{{/asyncio}}
{{#httpx}}
"httpx >= 0.28.1",
{{/httpx}}
{{#httpx2}}
"httpx2 >= 2.13.0, < 3",
{{/httpx2}}
{{#hasHttpSignatureMethods}}
"pem >= 19.3.0",
"pycryptodome >= 3.9.0",
{{/hasHttpSignatureMethods}}
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
{{#useCustomTemplateCode}}
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
{{/useCustomTemplateCode}}
setup(
name=NAME,
version=VERSION,
description="{{appName}}",
{{^useCustomTemplateCode}}
author="{{infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
author="{{packageAuthor}}",
{{/useCustomTemplateCode}}
author_email="{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
install_requires=REQUIRES,
{{#sourceFolder}}
package_dir={"": "{{{sourceFolder}}}"},
{{/sourceFolder}}
packages=find_packages({{#sourceFolder}}where="{{{sourceFolder}}}", {{/sourceFolder}}exclude=["test", "tests"]),
include_package_data=True,
{{^useCustomTemplateCode}}
{{#licenseInfo}}license="{{.}}",
{{/licenseInfo}}long_description_content_type='text/markdown',
long_description="""\
{{appDescription}}
""", # noqa: E501
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
{{#licenseInfo}}license="{{.}}",
{{/licenseInfo}}long_description=long_description,
long_description_content_type='text/markdown',
{{/useCustomTemplateCode}}
package_data={"{{{packageName}}}": ["py.typed"]},
)