linux-mirror-bench 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. linux_mirror_bench-0.3.1/.release-please-config.json +15 -0
  2. linux_mirror_bench-0.3.1/.release-please-manifest.json +3 -0
  3. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/CHANGELOG.md +7 -0
  4. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/PKG-INFO +1 -1
  5. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/pyproject.toml +1 -1
  6. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/fedora.py +3 -3
  7. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/display.py +1 -1
  8. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/distro.py +3 -1
  9. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_display.py +9 -1
  10. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_distro.py +5 -0
  11. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/uv.lock +1 -1
  12. linux_mirror_bench-0.3.0/.release-please-config.json +0 -7
  13. linux_mirror_bench-0.3.0/.release-please-manifest.json +0 -3
  14. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.dockerignore +0 -0
  15. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.editorconfig +0 -0
  16. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  17. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  18. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  19. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  20. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/dependabot.yml +0 -0
  21. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/workflows/ci.yml +0 -0
  22. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/workflows/integration.yml +0 -0
  23. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/workflows/release-please.yml +0 -0
  24. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.github/workflows/release.yml +0 -0
  25. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.gitignore +0 -0
  26. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.markdownlint.yaml +0 -0
  27. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.pre-commit-config.yaml +0 -0
  28. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.tool-versions +0 -0
  29. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/.yamllint.yaml +0 -0
  30. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/AGENTS.md +0 -0
  31. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/CODEOWNERS +0 -0
  32. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/CONTRIBUTING.md +0 -0
  33. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/Dockerfile +0 -0
  34. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/LICENSE +0 -0
  35. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/Makefile +0 -0
  36. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/README.md +0 -0
  37. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/SECURITY.md +0 -0
  38. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/__init__.py +0 -0
  39. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/__main__.py +0 -0
  40. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/__init__.py +0 -0
  41. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/h3.py +0 -0
  42. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/h3_quic.py +0 -0
  43. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/probe.py +0 -0
  44. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/scorer.py +0 -0
  45. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/tls.py +0 -0
  46. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/benchmark/transport.py +0 -0
  47. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/cli.py +0 -0
  48. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/__init__.py +0 -0
  49. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/arch.py +0 -0
  50. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/base.py +0 -0
  51. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/debian.py +0 -0
  52. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/mint.py +0 -0
  53. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/discovery/ubuntu.py +0 -0
  54. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/src/mirror_bench/models.py +0 -0
  55. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/__init__.py +0 -0
  56. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/conftest.py +0 -0
  57. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/fixtures/arch_status.json +0 -0
  58. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/fixtures/debian_masterlist.txt +0 -0
  59. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/fixtures/fedora_mirrorlist.txt +0 -0
  60. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/fixtures/mint_mirrors.html +0 -0
  61. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/fixtures/ubuntu_mirrors.txt +0 -0
  62. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_cli.py +0 -0
  63. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_discovery.py +0 -0
  64. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_h3.py +0 -0
  65. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_integration.py +0 -0
  66. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_probe.py +0 -0
  67. {linux_mirror_bench-0.3.0 → linux_mirror_bench-0.3.1}/tests/test_scorer.py +0 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "release-type": "python",
3
+ "bump-minor-pre-major": true,
4
+ "packages": {
5
+ ".": {
6
+ "extra-files": [
7
+ {
8
+ "type": "toml",
9
+ "path": "uv.lock",
10
+ "jsonpath": "$.package[?(@.name.value=='linux-mirror-bench')].version"
11
+ }
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.3.1"
3
+ }
@@ -5,6 +5,13 @@ All notable changes to this project are documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
  this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.1](https://github.com/MysticRyuujin/mirror-bench/compare/v0.3.0...v0.3.1) (2026-11-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * show the release in the table title for Fedora and Arch ([#21](https://github.com/MysticRyuujin/mirror-bench/issues/21)) ([946c66f](https://github.com/MysticRyuujin/mirror-bench/commit/946c66f97f2a1c20f8d748d2c37eb5e798b321b4))
14
+
8
15
  ## [0.3.0](https://github.com/MysticRyuujin/mirror-bench/compare/v0.2.0...v0.3.0) (2026-11-13)
9
16
 
10
17
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: linux-mirror-bench
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Cross-distribution Linux package mirror benchmarking tool
5
5
  Project-URL: Homepage, https://github.com/MysticRyuujin/mirror-bench
6
6
  Project-URL: Issues, https://github.com/MysticRyuujin/mirror-bench/issues
@@ -7,7 +7,7 @@ build-backend = "hatchling.build"
7
7
  # neighbors hit PyPI's similarity check. The installed command + import module
8
8
  # are still `mirror-bench` / `mirror_bench` via [project.scripts] below.
9
9
  name = "linux-mirror-bench"
10
- version = "0.3.0"
10
+ version = "0.3.1"
11
11
  description = "Cross-distribution Linux package mirror benchmarking tool"
12
12
  readme = "README.md"
13
13
  license = { text = "AGPL-3.0-or-later" }
@@ -27,6 +27,7 @@ from mirror_bench.discovery.base import (
27
27
  host_of,
28
28
  with_https_candidates,
29
29
  )
30
+ from mirror_bench.distro import DEFAULT_FEDORA_RELEASE
30
31
  from mirror_bench.models import HostInfo, Mirror
31
32
 
32
33
  if TYPE_CHECKING:
@@ -34,7 +35,6 @@ if TYPE_CHECKING:
34
35
 
35
36
  _MIRRORLIST = "https://mirrors.fedoraproject.org/mirrorlist"
36
37
 
37
- _DEFAULT_RELEASE = "45"
38
38
  _REVISION_RE = re.compile(rb"<revision>(\d+)</revision>")
39
39
  _RELEASE_TREE_RE = re.compile(r"/releases/[^/]+/Everything/[^/]+/os/\Z")
40
40
 
@@ -78,7 +78,7 @@ class FedoraDiscoverer(MirrorDiscoverer):
78
78
  host: HostInfo,
79
79
  countries: tuple[str, ...] = (),
80
80
  ) -> list[Mirror]:
81
- repo = f"fedora-{host.release_version or _DEFAULT_RELEASE}"
81
+ repo = f"fedora-{host.release_version or DEFAULT_FEDORA_RELEASE}"
82
82
  base_params: dict[str, str] = {"repo": repo, "arch": host.arch}
83
83
 
84
84
  if countries:
@@ -92,7 +92,7 @@ class FedoraDiscoverer(MirrorDiscoverer):
92
92
  # mirror stopped syncing. The updates tree is rewritten on each push.
93
93
  # Mirror URLs end in releases/<ver>/Everything/<arch>/os/; the updates
94
94
  # tree is a sibling of releases/.
95
- release = host.release_version or _DEFAULT_RELEASE
95
+ release = host.release_version or DEFAULT_FEDORA_RELEASE
96
96
  return (
97
97
  f"../../../../../updates/{release}/Everything/{host.arch}"
98
98
  "/repodata/repomd.xml"
@@ -29,7 +29,7 @@ def render_bench(
29
29
  console.print("[yellow]No mirrors returned usable probes.[/yellow]")
30
30
  return
31
31
 
32
- release = host.codename or host.release_version or "?"
32
+ release = host.codename or host.release_version or "rolling"
33
33
  n = len(scores_list)
34
34
  table = Table(
35
35
  title=f"mirror-bench — {host.base_distro_id} ({release}) — top {n}",
@@ -30,6 +30,8 @@ _ALIASES: dict[str, str] = {
30
30
  "nobara": "fedora",
31
31
  }
32
32
 
33
+ DEFAULT_FEDORA_RELEASE = "45"
34
+
33
35
  DEFAULT_CODENAMES: dict[str, str] = {
34
36
  "ubuntu": "noble",
35
37
  "debian": "trixie",
@@ -99,7 +101,7 @@ def from_override(distro: str, release: str | None = None) -> HostInfo:
99
101
  release_version = None
100
102
  elif base == "fedora":
101
103
  codename = None
102
- release_version = release # discoverer defaults to current stable if None
104
+ release_version = release or DEFAULT_FEDORA_RELEASE
103
105
  else: # arch: no release concept
104
106
  codename = None
105
107
  release_version = None
@@ -5,7 +5,7 @@ import io
5
5
  import json
6
6
  from dataclasses import replace
7
7
 
8
- from mirror_bench import display
8
+ from mirror_bench import display, distro
9
9
  from mirror_bench.benchmark.scorer import score_results
10
10
  from mirror_bench.models import Score, Weights
11
11
  from tests.conftest import make_host
@@ -159,3 +159,11 @@ def test_age_column_and_fields() -> None:
159
159
  rows = {r["host"]: r for r in csv.DictReader(io.StringIO(buf.getvalue()))}
160
160
  assert rows["day.example.org"]["sync_age_s"] == "82800"
161
161
  assert rows["unknown.example.org"]["sync_age_s"] == ""
162
+
163
+
164
+ def test_table_title_names_the_release() -> None:
165
+ scores = score_results([make_probe()], None, Weights())
166
+ fedora = distro.from_override("fedora")
167
+ assert "fedora (45)" in display.table_to_string(scores, fedora)
168
+ arch = distro.from_override("arch")
169
+ assert "arch (rolling)" in display.table_to_string(scores, arch)
@@ -19,6 +19,11 @@ def test_from_override_release_for_apt_sets_codename() -> None:
19
19
  assert host.release_version is None
20
20
 
21
21
 
22
+ def test_from_override_fedora_without_release_uses_the_default() -> None:
23
+ host = distro.from_override("fedora")
24
+ assert host.release_version == distro.DEFAULT_FEDORA_RELEASE
25
+
26
+
22
27
  def test_from_override_release_for_fedora_sets_version() -> None:
23
28
  host = distro.from_override("fedora", release="42")
24
29
  assert host.codename is None
@@ -339,7 +339,7 @@ wheels = [
339
339
 
340
340
  [[package]]
341
341
  name = "linux-mirror-bench"
342
- version = "0.2.0"
342
+ version = "0.3.1"
343
343
  source = { editable = "." }
344
344
  dependencies = [
345
345
  { name = "httpx", extra = ["http2"] },
@@ -1,7 +0,0 @@
1
- {
2
- "release-type": "python",
3
- "bump-minor-pre-major": true,
4
- "packages": {
5
- ".": {}
6
- }
7
- }
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.3.0"
3
- }