-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
58 lines (53 loc) · 1.82 KB
/
setup.py
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
from pathlib import Path
from setuptools import find_packages, setup
# Load version number
__version__ = ""
version_file = Path(__file__).parent.absolute() / "tap" / "_version.py"
with open(version_file) as fd:
exec(fd.read())
# Load README
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
test_requirements = [
"pytest",
"pytest-cov",
"flake8",
]
test_requirements_with_pydantic_v2 = test_requirements + ["pydantic >= 2.5.0"]
setup(
name="typed-argument-parser",
version=__version__,
author="Jesse Michel and Kyle Swanson",
author_email="[email protected], [email protected]",
description="Typed Argument Parser",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/swansonk14/typed-argument-parser",
download_url=f"https://github.com/swansonk14/typed-argument-parser/archive/refs/tags/v_{__version__}.tar.gz",
license="MIT",
packages=find_packages(),
package_data={"tap": ["py.typed"]},
install_requires=[
"docstring-parser >= 0.15",
"packaging",
"typing-inspect >= 0.7.1",
],
tests_require=test_requirements,
extras_require={
"dev-no-pydantic": test_requirements,
"dev": test_requirements_with_pydantic_v2,
},
python_requires=">=3.8",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
],
keywords=["typing", "argument parser", "python"],
)