-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (48 loc) · 1.47 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
import re
from pathlib import Path
from setuptools import setup
MODULE = 'argcmdr'
MODULE_FILE = MODULE + '.py'
SRC_DIR = 'src'
MODULE_PATH = Path(__file__).parent / SRC_DIR / MODULE_FILE
README_PATH = Path(__file__).parent / 'README.rst'
VERSION = re.search(
r'''^__version__ *= *["']([.\d]+)["']$''',
MODULE_PATH.read_text(),
re.M,
).group(1)
setup(
name=MODULE,
version=VERSION,
description="Thin argparse wrapper for quick, clear and easy "
"declaration of hierarchical console command interfaces",
long_description=README_PATH.read_text(),
author="Center for Data Science and Public Policy",
author_email='datascifellows@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'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',
],
url="https://github.com/dssg/argcmdr",
python_requires='>=3.6',
package_dir={'': SRC_DIR},
py_modules=[MODULE],
install_requires=[
'argcomplete>=1.9.4,<3',
'Dickens~=2.0',
'plumbum~=1.8.1',
],
entry_points={
'console_scripts': [
'manage = argcmdr:execute',
],
},
)