-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
53 lines (48 loc) · 1.79 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
# -*- coding: utf-8 -*-
"""
setup
~~~~
A Dispatcher extension for Sanic which also acts as a Sanic-to-WSGI adapter
:copyright: (c) 2017-2021 by Ashley Sommer (based on DispatcherMiddleware in Workzeug).
:license: MIT, see LICENSE for more details.
"""
from setuptools import setup
from os.path import join, dirname
with open(join(dirname(__file__), 'sanic_dispatcher/version.py'), 'r',
encoding='latin-1') as f:
exec(f.read())
with open(join(dirname(__file__), 'requirements.txt'), 'r') as f:
install_requires = f.read().split("\n")
setup(
name='Sanic-Dispatcher',
version=__version__,
url='https://github.com/ashleysommer/sanic-dispatcher',
license='MIT',
author='Ashley Sommer',
author_email='[email protected]',
description="Multi-application dispatcher based on DispatcherMiddleware from the Werkzeug Project.",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
packages=['sanic_dispatcher'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=install_requires,
tests_require=[
'nose'
],
test_suite='nose.collector',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)