forked from h2020charisma/ramanchada2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
98 lines (82 loc) · 2.63 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import ast
from os import path
from setuptools import find_packages, setup
NAME = 'ramanchada2'
with open(path.join(path.dirname(__file__), 'src/ramanchada2/__init__.py')) as fd:
VERSION = [expr.value.value
for expr in ast.parse(fd.read()).body
if (isinstance(expr, ast.Assign) and
len(expr.targets) == 1 and
expr.targets[0].id == '__version__')
][-1]
DESCRIPTION = 'Harmonising Raman Spectroscopy'
README_FILE = path.join(path.dirname(__file__), 'README.pypi')
LONG_DESCRIPTION = open(README_FILE, 'r', encoding='utf-8').read()
LONG_DESCRIPTION_CONTENT_TYPE = 'text/markdown'
URL = 'https://github.com/h2020charisma/ramanchada2'
AUTHOR = 'IDEAconsult Ltd.'
AUTHOR_EMAIL = 'dev-charisma@ideaconsult.net'
LICENSE = 'MIT'
KEYWORDS = [
'Raman',
'spectroscopy',
]
PYTHON_REQUIRES = '>=3.9'
PACKAGES = find_packages(where='src')
PACKAGE_DIR = {'': 'src'}
PACKAGE_DATA = {'': ['auxiliary/**/*.txt']}
DATA_FILES = []
INSTALL_REQUIRES = [
"brukeropusreader", # rc1-parser
"h5py",
"lmfit",
"matplotlib",
"numpy",
"pandas",
"pydantic==1.*",
"pyhht",
"renishawWiRE", # rc1-parser
"scikit-learn",
"scipy>=1.8.0,<1.12",
"spc-io~=0.0.2", # rc1-parser
"statsmodels",
"uncertainties",
]
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries',
]
def setup_package():
setup(
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
data_files=DATA_FILES,
description=DESCRIPTION,
install_requires=INSTALL_REQUIRES,
keywords=KEYWORDS,
license=LICENSE,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESCRIPTION_CONTENT_TYPE,
name=NAME,
package_dir=PACKAGE_DIR,
package_data=PACKAGE_DATA,
include_package_data=True,
packages=PACKAGES,
python_requires=PYTHON_REQUIRES,
url=URL,
version=VERSION,
)
if __name__ == '__main__':
setup_package()