-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
105 lines (88 loc) · 2.96 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
99
100
101
102
103
104
105
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 = '[email protected]'
LICENSE = 'MIT'
KEYWORDS = [
'Raman',
'spectroscopy',
]
PYTHON_REQUIRES = '>=3.9,<3.13'
PACKAGES = find_packages(where='src')
PACKAGE_DIR = {'': 'src'}
PACKAGE_DATA = {'': ['auxiliary/**/*.txt', 'auxiliary/**/*.dat']}
DATA_FILES = []
INSTALL_REQUIRES = [
"brukeropusreader==1.*", # rc1-parser
"h5py==3.*",
"lmfit==1.*",
"matplotlib==3.*",
"numpy>=1.0,<3.0",
"pandas==2.*",
"pydantic~=2.0",
"emd==0.7.*",
"renishawWiRE==0.1.*", # rc1-parser
"scikit-learn==1.*",
"scipy>=1.8.0,<2.0",
"spc-io~=0.2.0",
"statsmodels==0.14.*",
"uncertainties==3.*",
"spe2py~=2.0",
]
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'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',
]
CONSOLE_SCRIPTS = [
'spg2csv = ramanchada2.standalone.spg2csv:spg2csv',
'ssl_csv_converter = ramanchada2.standalone.ssl_csv_converter:ssl_csv_converter',
]
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,
entry_points=dict(console_scripts=CONSOLE_SCRIPTS),
version=VERSION,
)
if __name__ == '__main__':
setup_package()