forked from mivade/argparse_dataclass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (34 loc) · 1.18 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
import re
from setuptools import setup
def get_version():
with open("argparse_dataclass.py") as f:
return re.search("__version__ = ['\"]([^'\"]+)['\"]", f.read()).group(1)
def get_readme():
with open("README.rst") as f:
return f.read()
setup(
name="argparse_dataclass",
version=get_version(),
author="Michael V. DePalatis",
author_email="[email protected]",
py_modules=["argparse_dataclass"],
include_package_data=True,
description="Declarative CLIs with argparse and dataclasses",
long_description=get_readme(),
python_requires=">=3.6",
install_requires=[
"dataclasses; python_version == '3.6'",
],
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
url="https://github.com/mivade/argparse_dataclass",
)