forked from keflavich/image_registration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (34 loc) · 1.22 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.rst') 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)
execfile('image_registration/version.py')
setup(name='image_registration',
version=__version__,
description='Image Registration Tools for extended images in astronomy.',
long_description=long_description,
author='Adam Ginsburg',
author_email='[email protected]',
url='https://github.com/keflavich/image_registration',
packages=['image_registration', 'image_registration/fft_tools',
'image_registration/tests','image_registration/FITS_tools'],
cmdclass = {'test': PyTest},
requires=['pytest','FITS_tools'],
)