-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (23 loc) · 903 Bytes
/
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
from distutils.core import setup
import sys
import os
import re
# read version number from version file.
# read version file without setting up package
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'obscond')
versionFile = os.path.join(packageDir, 'version.py')
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__version__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
setup(name='obscond',
version=__version__,
description='Interpolating Observing Conditions from historic data',
packages=['obscond'],
package_dir={'obscond': 'obscond'},
package_data={'obscond': ['example_data/*.txt', 'example_data/*.md',
'example_data/*.csv']},
include_package_data=True
)