-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (36 loc) · 1.28 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
from setuptools import setup
import re
DESCRIPTION = 'Maat'
LONG_DESCRIPTION = 'My AnAlysis Tools'
AUTHOR = 'Pablo Gila-Herranz'
AUTHOR_EMAIL = '[email protected]'
def get_version():
with open('maat/constants.py', 'r') as file:
content = file.read()
version_match = re.search(r"version\s*=\s*'([^']+)'", content)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version.")
setup(
name="maat",
version=get_version(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
packages=['maat'],
install_requires=['numpy',
'matplotlib',
'pandas',
'scipy'],
license='AGPL-3.0',
keywords=['python', 'maat', 'INS', 'Raman', 'ATR', 'FTIR', 'spectroscopy', 'spectra', 'analysis'],
classifiers= [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: Other OS",
]
)