-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
70 lines (58 loc) · 1.92 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
# -*- coding: utf8 -*-
"""
Flask-Z3950
-----------
Z39.50 integration for Flask applications.
"""
import re
import os
from setuptools import setup
version = re.search('^__version__\s*=\s*"(.*)"',
open('flask_z3950/__init__.py').read(),
re.M).group(1)
try:
here = os.path.dirname(__file__)
long_description = open(os.path.join(here, 'docs', 'readme.rst')).read()
except IOError:
long_description = ""
requirements = ["Flask>=0.7.0",
"lxml>=3.5.0, <4.0",
"ply>=3.8.0, <4.0",
"pymarc>=3.0.4, <4.0",
"mollyZ3950==2.04-molly1", # PyZ3950 on pypi is broken
]
setup_requirements = ["pytest-runner>=3.0.0, <4.0"]
test_requirements = ["mock",
"pytest>=3.2.5, <4.0",
"pytest-cov>=2.5.0, <3.0",
]
setup(
name="Flask-Z3950",
version=version,
author="Alexander Mendes",
author_email="alexanderhmendes@gmail.com",
description="Z39.50 integration for Flask applications.",
license="BSD",
url="https://github.com/alexandermendes/Flask-Z3950",
packages=['flask_z3950'],
long_description=long_description,
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=requirements,
setup_requires=setup_requirements,
tests_require=test_requirements,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: Z39.50",
],
test_suite="tests",
)