-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·37 lines (32 loc) · 1.36 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
#!/usr/bin/env python
import os
import re
from distutils.core import setup
# Need a recursive glob to find all package data files if there are
# subdirectories
import fnmatch
def recursive_glob(basedir, pattern):
matches = []
for root, dirnames, filenames in os.walk(basedir):
for filename in fnmatch.filter(filenames, pattern):
matches.append(os.path.join(root, filename))
return matches
# Synchronize version from code.
version = re.findall(r"__version__ = \"(.*?)\"",
open(os.path.join("sndatasets", "__init__.py")).read())[0]
setup(name="sndatasets",
version=version,
description="Download and normalize published supernova photometric data",
long_description="",
classifiers = ["Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Astronomy",
"Intended Audience :: Science/Research"],
packages=["sndatasets"],
package_data={"sndatasets": ["data/*/*"]},
url="http://github.com/kbarbary/sndatasets",
author="Kyle Barbary, David Rubin",
author_email="kylebarbary@gmail.com")