-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (39 loc) · 1.18 KB
/
setup.py
File metadata and controls
47 lines (39 loc) · 1.18 KB
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
import os
import json
from setuptools import find_packages, setup
here = os.path.dirname(__file__)
with open(os.path.join(here, "rlxnix", "info.json"), encoding="utf-8") as infofile:
infodict = json.load(infofile)
NAME = infodict["NAME"]
VERSION = infodict["VERSION"]
AUTHOR = infodict["AUTHOR"]
CONTACT = infodict["CONTACT"]
DESCRIPTION = infodict["BRIEF"]
classifiers = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering'
]
README = "README.md"
with open(README, encoding="utf-8") as f:
description_text = f.read()
install_req = ["numpy", "scipy", "h5py", "pandas",
"matplotlib", "nixio>=1.5", "tqdm"]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email=CONTACT,
classifiers=classifiers,
packages=find_packages(),
install_requires=install_req,
python_requires=">=3.6",
package_data={"rlxnix": [
'utils/default_config.json', 'info.json']},
include_package_data=True,
long_description=description_text,
long_description_content_type="text/markdown",
license="BSD"
)