-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (40 loc) · 1.6 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
"""Setup script."""
import os
import glob
from setuptools import setup, find_packages
# Long description loaded from the README
README = '/'.join(os.path.realpath(__file__).split('/')[:-1]) + '/README.rst'
# Get requirements
REQUIREMENTS = '/'.join(os.path.realpath(__file__).split('/')[:-1]) + '/requirements.txt'
# Get __version__ from version.py without importing package itself.
VERSION = '/'.join(os.path.realpath(__file__).split('/')[:-1]) + '/extinctions/version.py'
# Package name
NAME = 'extinctions'
# Packages (subdirectories in extinction/)
PACKAGES = find_packages()
# Scripts (in scripts/)
SCRIPTS = glob.glob("scripts/*.py")
PACKAGE_DATA = {NAME: ["data/maps.yaml"]}
CLASSIFIERS = ['Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Astronomy']
setup(name=NAME,
version=open(VERSION).read().split('"')[1],
description=("Extinction laws, maps and corrections"),
license="MIT",
classifiers=CLASSIFIERS,
url="https://github.com/nicolaschotard/extinctions",
author="Nicolas Chotard",
author_email="[email protected]",
packages=PACKAGES,
scripts=SCRIPTS,
package_data=PACKAGE_DATA,
long_description=open(README).read(),
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=open(REQUIREMENTS).read().splitlines()
)