forked from claragimenez/voronoi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (52 loc) · 1.76 KB
/
setup.py
File metadata and controls
61 lines (52 loc) · 1.76 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#from distutils.core import setup
#from distutils.extension import Extension
from setuptools import setup
from setuptools.extension import Extension
import subprocess
import os
#update version
args = 'git describe --tags'
p = subprocess.Popen(args.split(), stdout=subprocess.PIPE)
version = p.communicate()[0].decode("utf-8").strip()
#### Versions
version = "0.1" # init
# Set this to true to add install_requires to setup
if True:
install_requires=[
'astropy>=4.0',
'vorbin>=3.1',
'numpy>=1.17.0',
'matplotlib>=3.0']
else:
install_requires = []
#lines = open('grizli/version.py').readlines()
version_str = """# git describe --tags
__version__ = "{0}"\n""".format(version)
fp = open('pab/version.py','w')
fp.write(version_str)
fp.close()
print('Git version: {0}'.format(version))
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "pab",
version = version,
author = "Clara Giménez Arteaga",
author_email = "clara.arteaga@nbi.ku.dk",
description = "HST Paschen Beta analysis",
license = "MIT",
url = "https://github.com/claragimenez/voronoi/",
download_url = "https://github.com/claragimenez/voronoi/tarball/{0}".format(version),
packages=['pab'],
classifiers=[
"Development Status :: 1 - Planning",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
],
install_requires=install_requires,
package_data={} #'pab': ['data/*header', 'data/psf/*']},
)