Compare commits

..

No commits in common. "main" and "4.2.0" have entirely different histories.
main ... 4.2.0

6 changed files with 16 additions and 40 deletions

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py39-plus]
@ -14,7 +14,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
rev: 7.2.0
hooks:
- id: flake8
additional_dependencies:

View File

@ -1,11 +1,3 @@
4.2.1 (2025-07-02)
------------------
* Fixed a packaging error in 4.2.0.
* Removed --nostatic and --insecure args to runserver command when staticfiles
app is not installed.
4.2.0 (2025-05-16)
------------------

View File

@ -1,6 +1,6 @@
import sys
__version__ = "4.2.1"
__version__ = "4.2.0"
# Windows on Python 3.8+ uses ProactorEventLoop, which is not compatible with

View File

@ -73,7 +73,6 @@ class Command(RunserverCommand):
"seconds (default: 5)"
),
)
if apps.is_installed("django.contrib.staticfiles"):
parser.add_argument(
"--nostatic",
action="store_false",

View File

@ -55,7 +55,7 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = { daphne = "daphne", twisted = "daphne/twisted" }
packages = ["daphne"]
[tool.setuptools.dynamic]
version = { attr = "daphne.__version__" }

View File

@ -1,15 +0,0 @@
import sys
from pathlib import Path
def test_fd_endpoint_plugin_installed():
# Find the site-packages directory
for path in sys.path:
if "site-packages" in path:
site_packages = Path(path)
break
else:
raise AssertionError("Could not find site-packages in sys.path")
plugin_path = site_packages / "twisted" / "plugins" / "fd_endpoint.py"
assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"