mirror of
https://github.com/django/daphne.git
synced 2024-11-21 15:36:33 +03:00
2b13b74ce2
* Made daphne installable as a Django app. * Added system check to ensure daphne is installed before django.contrib.staticfiles. * Moved runserver command from Channels. * Added changelog entry for runserver command.
47 lines
1.6 KiB
Python
Executable File
47 lines
1.6 KiB
Python
Executable File
import os
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
from daphne import __version__
|
|
|
|
# We use the README as the long_description
|
|
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
|
|
with open(readme_path) as fp:
|
|
long_description = fp.read()
|
|
|
|
setup(
|
|
name="daphne",
|
|
version=__version__,
|
|
url="https://github.com/django/daphne",
|
|
author="Django Software Foundation",
|
|
author_email="foundation@djangoproject.com",
|
|
description="Django ASGI (HTTP/WebSocket) server",
|
|
long_description=long_description,
|
|
license="BSD",
|
|
zip_safe=False,
|
|
package_dir={"twisted": "daphne/twisted"},
|
|
packages=find_packages() + ["twisted.plugins"],
|
|
include_package_data=True,
|
|
install_requires=["twisted[tls]>=22.4", "autobahn>=22.4.2", "asgiref>=3.5.2,<4"],
|
|
python_requires=">=3.7",
|
|
setup_requires=["pytest-runner"],
|
|
extras_require={"tests": ["hypothesis", "pytest", "pytest-asyncio", "django"]},
|
|
entry_points={
|
|
"console_scripts": ["daphne = daphne.cli:CommandLineInterface.entrypoint"]
|
|
},
|
|
classifiers=[
|
|
"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.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
],
|
|
)
|