-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (42 loc) · 1.2 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
from setuptools import setup
from os import path
HERE = path.abspath(path.dirname(__file__))
PROJECT = 'purepyindi'
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
with open(path.join(HERE, PROJECT, 'VERSION'), encoding='utf-8') as f:
VERSION = f.read().strip()
extras = {
'dev': ['pytest'],
'ipyINDI': ['IPython'],
'plotINDI': ['matplotlib'],
}
all_deps = set()
for _, deps in extras.items():
for dep in deps:
all_deps.add(dep)
extras['all'] = list(all_deps)
setup(
name=PROJECT,
version=VERSION,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
packages=[PROJECT],
python_requires='>=3.6, <4',
install_requires=[],
package_data={ # Optional
PROJECT: ['VERSION'],
},
extras_require=extras,
entry_points={
'console_scripts': [
f'ipyINDI={PROJECT}.ipyINDI:main',
f'plotINDI={PROJECT}.plotINDI:main',
f'jsonINDI={PROJECT}.jsonINDI:main',
f'watchINDI={PROJECT}.watchINDI:main',
],
},
project_urls={ # Optional
'Bug Reports': f'https://github.com/magao-x/{PROJECT}/issues',
},
)