-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
executable file
·91 lines (80 loc) · 2.53 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
import eulfedora
LONG_DESCRIPTION = None
try:
# read the description if it's there
with open('README.rst') as desc_f:
LONG_DESCRIPTION = desc_f.read()
except:
pass
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
]
requirements = [
'eulxml>=1.0.1',
'rdflib>=3.0',
'python-dateutil',
'requests==2.20',
'requests-toolbelt>=0.6.0',
'pycryptodome',
'pypdf2',
'six',
]
if sys.version_info < (2, 7):
requirements.append('argparse')
test_requirements = [
'sphinx',
'nose',
'coverage',
'mock',
'pyPdf',
'tox',
'progressbar2'
]
dev_requirements = test_requirements + ['Django']
if sys.version_info < (3, 0):
requirements.append('progressbar2')
# unittest2 should only be included for py2.6
if sys.version_info < (2, 7):
dev_requirements.append('unittest2')
setup(
name='eulfedora',
version=eulfedora.__version__,
author='Emory University Libraries',
author_email='[email protected]',
url='https://github.com/emory-libraries/eulfedora',
license='Apache License, Version 2.0',
packages=find_packages(),
install_requires=requirements,
# indexdata utils are optional. They include things like PDF text stripping (pyPdf).
# Be sure to include the below in your own pip dependencies file if you need to use
# the built in indexer utility support.
extras_require={
'indexdata_util': ['pypdf2'],
'django': ['Django'],
'dev': dev_requirements,
'test': test_requirements,
},
description='Idiomatic access to digital objects in a Fedora Commons repository',
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
scripts=['scripts/fedora-checksums', 'scripts/validate-checksums',
'scripts/repo-cp'],
include_package_data=True,
package_data={'eulfedora': ['eulfedora/templates/eulfedora/*.html']},
)