-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (53 loc) · 1.68 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
69
from setuptools import setup
import pathlib
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print('WARNING: sphinx not available, not building docs')
here = pathlib.Path(__file__).parent.resolve()
name = 'nsrt_mk3_dev'
# Get the long description from the README file
long_description = (here / 'README.rst').read_text(encoding='utf-8')
setup(
name=name,
description='NSRT MK3 Dev Sound Level Meter',
long_description=long_description,
long_description_content_type='text/x-rst',
url='https://xanderhendriks.github.io/nsrt-mk3-dev',
author='Xander Hendriks',
author_email='[email protected]',
classifiers=[ # Optional
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
],
packages=['nsrt_mk3_dev'],
python_requires='>=3.6',
install_requires=['pyserial'],
setup_requires=[
'setuptools_scm',
'wheel',
],
extras_require={
'dev': ['check-manifest', 'flake8'],
'test': ['pytest'],
'doc': ['sphinx', 'sphinx-rtd-theme'],
},
project_urls={
'Bug Reports': 'https://github.com/xanderhendriks/nsrt-mk3-dev/issues',
'Source': 'https://github.com/xanderhendriks/nsrt-mk3-dev',
},
use_scm_version={
'relative_to': __file__,
'write_to': 'nsrt_mk3_dev/version.py',
'local_scheme': 'no-local-version',
},
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'source_dir': ('setup.py', 'doc'),
}
},
)