forked from mgckind/easyaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (40 loc) · 1.34 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
import sys
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
prjdir = os.path.dirname(__file__)
__version__ = ''
def read(filename):
return open(os.path.join(prjdir, filename)).read()
exec(open('easyaccess/version.py').read())
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
os.system("python setup.py bdist_wheel --universal upload ")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (__version__, __version__))
print(" git push --tags")
sys.exit()
extra_link_args = []
libraries = []
library_dirs = []
include_dirs = []
try:
pkgs = find_packages()
except NameError:
pkgs = ['easyaccess', 'easyaccess.eautils', 'tests']
setup(
name='easyaccess',
version=__version__,
author='Matias Carrasco Kind',
author_email='[email protected]',
scripts=['bin/easyaccess'],
packages=pkgs,
license='LICENSE.txt',
description='Easy access to the DES DB. Enhanced command line SQL interpreter client for DES',
long_description=read('README.md'),
url='https://github.com/mgckind/easyaccess',
install_requires=['pandas >= 0.14', 'termcolor', 'fitsio == 1.0.5', 'setuptools',
'cx_Oracle', 'numpy', 'future >= 0.15.0', 'requests'],
)