forked from radio-astro-tools/spectral-cube
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·41 lines (34 loc) · 1.26 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
#!/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 agpy 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)
# We have to set the version number here rather than import it, otherwise
# running setup.py requires all spectral_cube dependencis to be installed.
VERSION = "0.1.dev"
setup(name='spectral_cube',
version=VERSION,
description='Spectral Cube object',
long_description=long_description,
author='Chris Beaumont, Adam Leroy, Adam Ginsburg, Erik Rosolowsky, and Tom Robitaille',
author_email='adam.g.ginsburg@gmail.com',
url='https://github.com/radio_tools/spectral_cube',
packages=['spectral_cube', 'spectral_cube.io', 'spectral_cube.tests'],
cmdclass = {'test': PyTest},
)