-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (34 loc) · 1.21 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 os
import re
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
version_file = os.path.join('getObsAtmo', '_version.py')
verstrline = open(version_file, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
current_version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (version_file,))
print(f'getObsAtmo version is {current_version}')
setup(
name='getObsAtmo',
version=current_version,
packages=['getObsAtmo'],
install_requires=['numpy', 'matplotlib', 'scipy', 'pandas'],
test_suite='nose.collector',
tests_require=['nose'],
package_dir={'getObsAtmo': './getObsAtmo'},
package_data={'getObsAtmo': ['../obsatmo_data/*.pickle','../obsatmo_data/*.npy']},
url='https://github.com/LSSTDESC/getObsAtmo',
license='BSD',
python_requires='>=3.7',
author='S. Dagoret-Campagne',
author_email='sylvie.dagoret-campagne@ijclab.in2p3.fr',
description='',
long_description=long_description,
long_description_content_type='text/markdown'
)