-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (31 loc) · 1.18 KB
/
Copy pathsetup.py
File metadata and controls
34 lines (31 loc) · 1.18 KB
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
import re
import setuptools
version_file = 'hdf5eis/_version.py'
version_line = open(version_file, 'r').read()
version_re = r'^__version__ = ["\']([^"\']*)["\']'
mo = re.search(version_re, version_line, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError(f'Unable to find version string in {version_file}.')
def configure():
# Initialize the setup kwargs
kwargs = {
'name': 'HDF5eis',
'version': version,
'author': 'Malcolm C. A. White',
'author_email': 'malcolmw@mit.edu',
'maintainer': 'Malcolm C. A. White',
'maintainer_email': 'malcolmw@mit.edu',
'url': 'http://malcolmw.github.io/HDF5eis',
'description': '''A solution for storing and accessing big,
multidimensional timeseries data from environmental sensors''',
'download_url': 'https://github.com/malcolmw/HDF5eis.git',
'platforms': ['linux', 'darwin', 'win32'],
'install_requires': ['h5py', 'matplotlib', 'numpy', 'pandas', 'scipy'],
'packages': ['hdf5eis']
}
return kwargs
if __name__ == '__main__':
kwargs = configure()
setuptools.setup(**kwargs)