forked from mgckind/easyaccess
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
57 lines (49 loc) · 1.46 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
54
55
56
57
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'),
long_description_content_type='text/markdown',
url='https://github.com/des-labs/easyaccess',
install_requires=[
'pandas >= 0.14',
'termcolor',
'fitsio == 1.1.8',
'cx_Oracle == 8.0.1',
'numpy >= 1.19.2',
'future >= 0.15.0',
'requests',
'setuptools',
],
)