-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
42 lines (35 loc) · 1.21 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
#!/usr/bin/env python
import sys
if 'build_sphinx' in sys.argv or 'develop' in sys.argv:
from setuptools import setup, Command
else:
from distutils.core import setup, Command
with open('README.md') as file:
long_description = file.read()
#with open('CHANGES') as file:
# long_description += file.read()
# no versions yet from extinction_distance import __version__ as version
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys,subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(name='extinction_distance',
version='0.1',
description='Extinction-based Distance Measurements.',
long_description=long_description,
author='Jonathan Foster',
author_email='[email protected]',
url='https://github.com/jfoster17/extinction-distances',
packages=['extinction_distance',
'extinction_distance.support',
'extinction_distance.completeness',
'extinction_distance.distance',
'extinction_distance.images'],
cmdclass = {'test': PyTest},
)