forked from emory-libraries/eulxml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·72 lines (62 loc) · 1.82 KB
/
setup.py
File metadata and controls
executable file
·72 lines (62 loc) · 1.82 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
#!/usr/bin/env python
from distutils.command.build_py import build_py
import os
from setuptools import setup, find_packages
import eulxml
class build_py_with_ply(build_py):
'''Use ply to generate parsetab and lextab modules.'''
def run(self, *args, **kwargs):
# importing this forces ply to generate parsetab/lextab
import eulxml.xpath.core
build_py.run(self, *args, **kwargs)
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
setup(
cmdclass={'build_py': build_py_with_ply},
name='eulxml',
version=eulxml.__version__,
author='Emory University Libraries',
author_email='libsysdev-l@listserv.cc.emory.edu',
url='https://github.com/emory-libraries/eulxml',
license='Apache License, Version 2.0',
packages=find_packages(),
setup_requires=[
'ply',
],
install_requires=[
'ply',
'lxml',
],
extras_require={
'django': ['Django'],
'rdf': ['rdflib>=3.0'],
'dev': [
'sphinx',
'coverage',
'Django',
'rdflib>=3.0',
'mock',
'nose',
'unittest2', # for python 2.6
]
},
description='XPath-based XML data binding, with Django form support',
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
)