-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
68 lines (60 loc) · 2.17 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
59
60
61
62
63
64
65
66
67
68
import unittest
import os
from setuptools import setup
from distutils.core import Command
from duckargs import __version__
HERE = os.path.abspath(os.path.dirname(__file__))
README = os.path.join(HERE, "README.rst")
class RunDuckargsTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
suite = unittest.TestLoader().discover("tests")
t = unittest.TextTestRunner(verbosity = 2)
t.run(suite)
with open(README, 'r') as f:
long_description = f.read()
setup(
name='duckargs',
version=__version__,
description=('Code generation tool, creates python / C programs that parse command line arguments. '
'Say goodbye to starting each project by reading "argparse" / "geptopt.h" docs.'),
long_description=long_description,
url='http://github.com/eriknyquist/duckargs',
author='Erik Nyquist',
author_email='[email protected]',
license='Apache 2.0',
packages=['duckargs'],
cmdclass={'test': RunDuckargsTests},
include_package_data=True,
zip_safe=False,
entry_points = {
'console_scripts': [
'duckargs=duckargs.__main__:duckargs_python',
'duckargs-c=duckargs.__main__:duckargs_c',
'duckargs-python=duckargs.__main__:duckargs_python'
]
},
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
project_urls={
"Documentation": "https://github.com/eriknyquist/duckargs",
"Issues": "https://github.com/eriknyquist/duckargs/issues",
"Contributions": "https://github.com/eriknyquist/duckargs/pulls"
}
)