forked from dgerosa/spops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (32 loc) · 1.22 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
#python setup.py sdist upload -r test
#python setup.py sdist upload
from setuptools import setup
def get_meta(metaname):
with open('spops/spops.py') as f:
for line in f.readlines():
if "__"+metaname+"__" in line and "__main__" not in line:
return line.split('"')[1]
setup(
name=get_meta('name'),
version=get_meta('version'),
description=get_meta('description'),
license=get_meta('license'),
author=get_meta('author'),
author_email=get_meta('author_email'),
url=get_meta('url'),
long_description="See: `"+get_meta('url')+" <"+get_meta('url')+">`_." ,
classifiers=[
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Mathematics',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='gravitational-wave, black-hole binary',
packages=[get_meta('name')],
install_requires=['numpy','h5py','singleton_decorator','contexttimer'],
include_package_data=True,
zip_safe=False,
)