Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling==1.31.0"]
requires = ["hatchling==1.32.0"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -32,7 +32,7 @@ dependencies = [
[project.optional-dependencies]
api = ["httpx>=0.28.1,<1"]
asgi = ["h11>=0.16,<1"]
realtime = ["httpx>=0.28.1,<1", "websockets>=16.1.1,<17"]
realtime = ["httpx>=0.28.1,<1", "websockets>=16.1.1,<18"]
wsgi = ["h11>=0.16,<1"]
examples = [
"aiohttp>=3.14.3,<4",
Expand All @@ -55,7 +55,7 @@ dev = [
"pytest-asyncio>=1.4,<2",
"ruff>=0.16,<1",
"trustme>=1.2,<2",
"websockets>=16.1.1,<17",
"websockets>=16.1.1,<18",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pathlib import Path

MAX_METADATA_BYTES = 1024 * 1024
MAX_METADATA_VERSION = (2, 4)
MAX_METADATA_VERSION = (2, 6)
METADATA_VERSION_PATTERN = re.compile(r"^(\d+)\.(\d+)$")


Expand Down
12 changes: 6 additions & 6 deletions tests/unit/test_distribution_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ def verify(directory: Path) -> subprocess.CompletedProcess[str]:
)


def test_accepts_matching_metadata_2_4(tmp_path: Path) -> None:
payload = metadata("2.4")
def test_accepts_matching_metadata_2_6(tmp_path: Path) -> None:
payload = metadata("2.6")
write_wheel(tmp_path, payload)
write_sdist(tmp_path, payload)
result = verify(tmp_path)
assert result.returncode == 0
assert result.stdout.strip() == (
"verified rstreamlabs-rstream 1.2.3 (metadata 2.4)"
"verified rstreamlabs-rstream 1.2.3 (metadata 2.6)"
)


def test_rejects_metadata_newer_than_publisher_support(tmp_path: Path) -> None:
payload = metadata("2.5")
def test_rejects_metadata_with_newer_major_version(tmp_path: Path) -> None:
payload = metadata("3.0")
write_wheel(tmp_path, payload)
write_sdist(tmp_path, payload)
result = verify(tmp_path)
assert result.returncode != 0
assert "unsupported Metadata-Version 2.5" in result.stderr
assert "unsupported Metadata-Version 3.0" in result.stderr


def test_rejects_wheel_and_sdist_version_mismatch(tmp_path: Path) -> None:
Expand Down