-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (65 loc) · 2.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- coding: utf-8 -*-
"""Setup for Drastic Jobs.
"""
import inspect
import os
from pip.req import parse_requirements
try:
from pip.download import PipSession
except ImportError:
# Old pip
pass
from setuptools import setup, find_packages
# Import Setuptools
# from ez_setup import use_setuptools
# use_setuptools()
# Import our own module here for version number
import jobs
__copyright__ = "Copyright (C) 2016 University of Maryland"
__license__ = "GNU AFFERO GENERAL PUBLIC LICENSE, Version 3"
# Inspect to find current path
setuppath = inspect.getfile(inspect.currentframe())
setupdir = os.path.dirname(setuppath)
# Find longer description from README
#with open(os.path.join(setupdir, 'README.rst'), 'r') as fh:
# _long_description = fh.read()
# Requirements
with open(os.path.join(setupdir, 'requirements.txt'), 'r') as fh:
try:
raw_reqs = parse_requirements('requirements.txt', session=PipSession())
except NameError:
# Old pip
raw_reqs = parse_requirements('requirements.txt')
_install_requires = [
str(req.req)
for req
in raw_reqs
if req
]
setup(
name='drastic-jobs',
version=jobs.__version__,
description='Drastic Jobs',
packages=find_packages(),
install_requires=_install_requires,
long_description='',
author='[email protected]',
maintainer_email='[email protected]',
license="GNU AFFERO GENERAL PUBLIC LICENSE, Version 3",
url='https://github.com/UMD-DRASTIC/drastic-cli',
setup_requires=['setuptools-git'],
entry_points={
'console_scripts': [
# "ingest_httpftp = scripts:ingest_httpftp:main"
]
},
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: System :: Archiving"
],
)