-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
82 lines (68 loc) · 2.13 KB
/
setup.py
File metadata and controls
82 lines (68 loc) · 2.13 KB
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
75
76
77
78
79
80
81
82
# -*- coding: utf-8 -*-
"""Setup for Drastic CLI.
"""
import inspect
import os
from pip.req import parse_requirements
try:
from pip.download import PipSession
except ImportError:
# Old pip
pass
# Import Setuptools
# from ez_setup import use_setuptools
# use_setuptools()
from setuptools import setup, find_packages
# Import our own module here for version number
import cli
__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.md'), '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(
app=['cli/drastic.py'],
data_files=[],
options={'py2app': {}},
name='drastic-cli',
version=cli.__version__,
description='Drastic Command Line Interface',
packages=find_packages(),
install_requires=_install_requires,
long_description=_long_description,
author='Archive Analytics',
maintainer_email='jansen@umd.edu',
license="GNU AFFERO GENERAL PUBLIC LICENSE, Version 3",
url='https://github.com/UMD-DRASTIC/drastic-cli',
setup_requires=['setuptools-git'],
entry_points={
'console_scripts': [
"drastic = cli.drastic:main"
]
},
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3.5",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: System :: Archiving"
],
)