-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
70 lines (62 loc) · 1.72 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
import os
from setuptools import setup, find_packages
tests_require = [
"pytest",
"pytest-cov",
"testfixtures",
"webtest",
"mock",
"python-coveralls",
"flake8",
"pylint",
"mypy",
]
here = os.path.dirname(__file__)
readme = None
changes = None
def _read(name):
try:
return open(os.path.join(here, name)).read()
except Exception:
return ""
readme = _read("README.rst")
changes = _read("CHANGES.txt")
points = {
"paste.app_factory": [
"url=webdispatch.paster:make_urldispatch_application",
],
}
setup(
name="WebDispatch",
author="Atsushi Odagiri",
author_email="[email protected]",
description="dispatch request on wsgi application.",
long_description=readme + "\n" + changes,
test_suite="webdispatch",
license="MIT",
install_requires=[
"typing; python_version < '3.5'",
],
tests_require=tests_require,
extras_require={
"testing": tests_require,
"dev": tests_require + ["towncrier"],
},
url='http://github.com/aodag/WebDispatch',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
entry_points=points,
)