mirror of
https://github.com/django/daphne.git
synced 2025-03-23 02:54:21 +03:00
pyproject upgrade
This commit is contained in:
parent
32ac73e1a0
commit
891fbdd736
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -5,6 +5,10 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|
28
.gitignore
vendored
28
.gitignore
vendored
|
@ -1,15 +1,35 @@
|
||||||
|
# Intellij
|
||||||
.idea/
|
.idea/
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
|
||||||
|
# Python binary files
|
||||||
*.pyc
|
*.pyc
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
|
# Wheel builds
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
/.tox
|
|
||||||
.hypothesis
|
|
||||||
.cache
|
|
||||||
.eggs
|
.eggs
|
||||||
|
|
||||||
|
# Tox
|
||||||
|
/.tox
|
||||||
|
|
||||||
|
# Hypothesis
|
||||||
|
.hypothesis
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
.cache
|
||||||
|
.pytest_cache/
|
||||||
|
|
||||||
|
# Tests
|
||||||
test_layer*
|
test_layer*
|
||||||
test_consumer*
|
test_consumer*
|
||||||
|
|
||||||
.python-version
|
.python-version
|
||||||
.pytest_cache/
|
|
||||||
|
# Vscode
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
# pytest-cov code coverage
|
||||||
|
.coverage
|
||||||
|
.coverage.**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.19.0
|
rev: v3.19.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
|
|
|
@ -1,3 +1,96 @@
|
||||||
[build-system]
|
[project]
|
||||||
requires = ["setuptools"]
|
name = "daphne"
|
||||||
build-backend = "setuptools.build_meta"
|
dynamic = ["version"]
|
||||||
|
description = "Django ASGI (HTTP/WebSocket) server"
|
||||||
|
requires-python = ">=3.9"
|
||||||
|
authors = [
|
||||||
|
{ name = "Django Software Foundation", email = "foundation@djangoproject.com" },
|
||||||
|
]
|
||||||
|
|
||||||
|
license = { text = "BSD" }
|
||||||
|
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.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
]
|
||||||
|
|
||||||
|
dependencies = ["asgiref>=3.5.2,<4", "autobahn>=22.4.2", "twisted[tls]>=22.4"]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
tests = [
|
||||||
|
"django",
|
||||||
|
"hypothesis",
|
||||||
|
"pytest",
|
||||||
|
"pytest-asyncio",
|
||||||
|
"pytest-cov",
|
||||||
|
"black",
|
||||||
|
"tox",
|
||||||
|
"flake8",
|
||||||
|
"flake8-bugbear",
|
||||||
|
"mypy",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
homepage = "https://github.com/django/daphne"
|
||||||
|
documentation = "https://channels.readthedocs.io"
|
||||||
|
repository = "https://github.com/django/daphne.git"
|
||||||
|
changelog = "https://github.com/django/daphne/blob/main/CHANGELOG.txt"
|
||||||
|
issues = "https://github.com/django/daphne/issues"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
daphne = "daphne.cli:CommandLineInterface.entrypoint"
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = ["daphne"]
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = { attr = "daphne.__version__" }
|
||||||
|
readme = { file = "README.rst", content-type = "text/x-rst" }
|
||||||
|
|
||||||
|
[tool.flake8]
|
||||||
|
exclude = [
|
||||||
|
"venv/*",
|
||||||
|
"tox/*",
|
||||||
|
"docs/*",
|
||||||
|
"testproject/*",
|
||||||
|
"js_client/*",
|
||||||
|
".eggs/*",
|
||||||
|
]
|
||||||
|
extend-ignore = ["E123", "E128", "E266", "E402", "W503", "E731", "W601", "B036"]
|
||||||
|
max-line-length = 120
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
|
||||||
|
[tool.pytest]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
asyncio_mode = "strict"
|
||||||
|
filterwarnings = ["ignore::pytest.PytestDeprecationWarning"]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
omit = ["tests/*"]
|
||||||
|
concurrency = ["multiprocessing"]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
show_missing = "true"
|
||||||
|
skip_covered = "true"
|
||||||
|
|
||||||
|
[tool.coverage.html]
|
||||||
|
directory = "reports/coverage_html_report"
|
||||||
|
|
||||||
|
[tool.tox]
|
||||||
|
envlist = ["py39", "py310", "py311", "py312", "py313"]
|
||||||
|
|
||||||
|
[tool.tox.testenv]
|
||||||
|
extras = ["tests"]
|
||||||
|
commands = ["pytest -v {posargs}"]
|
||||||
|
|
59
setup.cfg
59
setup.cfg
|
@ -1,59 +0,0 @@
|
||||||
[metadata]
|
|
||||||
name = daphne
|
|
||||||
version = attr: daphne.__version__
|
|
||||||
url = https://github.com/django/daphne
|
|
||||||
author = Django Software Foundation
|
|
||||||
author_email = foundation@djangoproject.com
|
|
||||||
description = Django ASGI (HTTP/WebSocket) server
|
|
||||||
long_description = file: README.rst
|
|
||||||
long_description_content_type = text/x-rst
|
|
||||||
license = BSD
|
|
||||||
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.9
|
|
||||||
Programming Language :: Python :: 3.10
|
|
||||||
Programming Language :: Python :: 3.11
|
|
||||||
Programming Language :: Python :: 3.12
|
|
||||||
Programming Language :: Python :: 3.13
|
|
||||||
Topic :: Internet :: WWW/HTTP
|
|
||||||
|
|
||||||
[options]
|
|
||||||
package_dir =
|
|
||||||
daphne=daphne
|
|
||||||
twisted=daphne/twisted
|
|
||||||
include_package_data = True
|
|
||||||
install_requires =
|
|
||||||
asgiref>=3.5.2,<4
|
|
||||||
autobahn>=22.4.2
|
|
||||||
twisted[tls]>=22.4
|
|
||||||
python_requires = >=3.9
|
|
||||||
zip_safe = False
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
console_scripts =
|
|
||||||
daphne = daphne.cli:CommandLineInterface.entrypoint
|
|
||||||
|
|
||||||
[options.extras_require]
|
|
||||||
tests =
|
|
||||||
django
|
|
||||||
hypothesis
|
|
||||||
pytest
|
|
||||||
pytest-asyncio
|
|
||||||
|
|
||||||
[flake8]
|
|
||||||
exclude = venv/*,tox/*,docs/*,testproject/*,js_client/*,.eggs/*
|
|
||||||
extend-ignore = E123, E128, E266, E402, W503, E731, W601, B036
|
|
||||||
max-line-length = 120
|
|
||||||
|
|
||||||
[isort]
|
|
||||||
profile = black
|
|
||||||
|
|
||||||
[tool:pytest]
|
|
||||||
testpaths = tests
|
|
||||||
asyncio_mode = strict
|
|
Loading…
Reference in New Issue
Block a user