-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
executable file
·68 lines (60 loc) · 1.86 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
from eulexistdb import __version__
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: XML',
]
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
# test reqs does *not* include django to allow testing without django
# and against multiple versions of django
test_requirements = [
'sphinx',
'nose',
'coverage',
'tox',
'mock'
]
# unittest2 should only be included for py2.6
if sys.version_info < (2, 7):
# optional testrunner in testutil
test_requirements.append('unittest2')
dev_requirements = test_requirements + ['Django', 'django-debug-toolbar']
setup(
name='eulexistdb',
version=__version__,
author='Emory University Libraries',
author_email='[email protected]',
url='https://github.com/emory-libraries/eulexistdb',
license='Apache License, Version 2.0',
packages=find_packages(),
install_requires=[
'requests',
'eulxml>=1.1.2',
],
extras_require={
'django': ['Django'],
'dev': dev_requirements,
'test': test_requirements
},
description='Idiomatic access to the eXist-db XML Database using XPath and XQuery',
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
keywords='eXist-db XQuery',
include_package_data=True,
package_data={'eulexistdb': ['eulexistdb/templates/eulexistdb/*.html']},
)