forked from nicolaschotard/colorterms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·53 lines (42 loc) · 1.75 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
52
53
#!/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]) + '/colorterms/version.py'
# Package name
NAME = 'colorterms'
# Packages (subdirectories in colorterms/)
PACKAGES = find_packages()
# Scripts (in scripts/)
SCRIPTS = glob.glob("scripts/*.py")
PACKAGE_DATA = {NAME: ["data/filtersets/*", "data/filtersets/*/*",
"data/catalogs/*", "data/catalogs/*/*",
"default_cuts.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=("Color term corrections to go from one filter system to an other"),
license="MIT",
classifiers=CLASSIFIERS,
url="https://github.com/nicolaschotard/colorterms",
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()
)