2015-12-23 20:05:15 +03:00
|
|
|
import os
|
2016-09-23 00:25:09 +03:00
|
|
|
|
2015-12-23 20:05:15 +03:00
|
|
|
from setuptools import find_packages, setup
|
2016-09-23 00:25:09 +03:00
|
|
|
|
2015-12-23 20:05:15 +03:00
|
|
|
from daphne import __version__
|
|
|
|
|
|
|
|
# We use the README as the long_description
|
|
|
|
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
|
2016-09-23 00:25:09 +03:00
|
|
|
with open(readme_path) as fp:
|
|
|
|
long_description = fp.read()
|
2015-12-23 20:05:15 +03:00
|
|
|
|
|
|
|
setup(
|
2017-11-26 00:40:15 +03:00
|
|
|
name="daphne",
|
2015-12-23 20:05:15 +03:00
|
|
|
version=__version__,
|
2017-11-26 00:40:15 +03:00
|
|
|
url="https://github.com/django/daphne",
|
|
|
|
author="Django Software Foundation",
|
|
|
|
author_email="foundation@djangoproject.com",
|
|
|
|
description="Django ASGI (HTTP/WebSocket) server",
|
2016-09-23 00:25:09 +03:00
|
|
|
long_description=long_description,
|
2017-11-26 00:40:15 +03:00
|
|
|
license="BSD",
|
2015-12-23 20:05:15 +03:00
|
|
|
zip_safe=False,
|
2017-11-26 00:40:15 +03:00
|
|
|
package_dir={"twisted": "daphne/twisted"},
|
|
|
|
packages=find_packages() + ["twisted.plugins"],
|
2015-12-23 20:05:15 +03:00
|
|
|
include_package_data=True,
|
2020-10-28 22:26:26 +03:00
|
|
|
install_requires=["twisted[tls]>=18.7", "autobahn>=0.18", "asgiref>=3.2.10,<4"],
|
2021-04-07 21:11:21 +03:00
|
|
|
python_requires=">=3.6",
|
2018-08-27 05:27:32 +03:00
|
|
|
setup_requires=["pytest-runner"],
|
2019-02-01 04:43:23 +03:00
|
|
|
extras_require={
|
2019-10-10 06:05:08 +03:00
|
|
|
"tests": ["hypothesis==4.23", "pytest~=3.10", "pytest-asyncio~=0.8"]
|
2019-02-01 04:43:23 +03:00
|
|
|
},
|
2018-08-27 05:27:32 +03:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": ["daphne = daphne.cli:CommandLineInterface.entrypoint"]
|
2017-11-26 05:35:12 +03:00
|
|
|
},
|
2016-09-23 00:25:09 +03:00
|
|
|
classifiers=[
|
2017-11-26 00:40:15 +03:00
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
2018-07-22 19:45:59 +03:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2019-11-20 22:41:07 +03:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2020-10-21 17:38:03 +03:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2017-11-26 00:40:15 +03:00
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
2016-09-23 00:25:09 +03:00
|
|
|
],
|
2015-12-23 20:05:15 +03:00
|
|
|
)
|