public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-exabgp] f45: Update to version 5.0.14 (resolves rhbz#2549946)
@ 2026-10-16 4:41 Gary Buhrmaster
0 siblings, 0 replies; only message in thread
From: Gary Buhrmaster @ 2026-10-16 4:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-exabgp
Branch : f45
Commit : 507a465da2e7cad80796524a3c1bf7786e747cc5
Author : Gary Buhrmaster <gary.buhrmaster@gmail.com>
Date : 2026-10-16T04:20:31+00:00
Stats : +9/-90 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-exabgp/c/507a465da2e7cad80796524a3c1bf7786e747cc5?branch=f45
Log:
Update to version 5.0.14 (resolves rhbz#2549946)
Remove patch for test harness
Add specific exclude for a unit test that does not work in mock
---
diff --git a/.gitignore b/.gitignore
index e3f26bd..1b77cc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@
/python-exabgp-5.0.11.tar.gz
/python-exabgp-5.0.12.tar.gz
/python-exabgp-5.0.13.tar.gz
+/python-exabgp-5.0.14.tar.gz
diff --git a/0001-pytest-fix.patch b/0001-pytest-fix.patch
deleted file mode 100644
index 1fb6a63..0000000
--- a/0001-pytest-fix.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-diff --git a/tests/unit/test_gate_exit_codes.py b/tests/unit/test_gate_exit_codes.py
-index 2434d4e68..30a548594 100644
---- a/tests/unit/test_gate_exit_codes.py
-+++ b/tests/unit/test_gate_exit_codes.py
-@@ -33,6 +33,12 @@ its exit code.
- compat_gate is deliberately not driven here. It needs a git tag and a subprocess
- per family, so exercising it costs minutes; its cannot-run paths were verified when
- they were written, and the three below are the ones a change to this tree can break.
-+
-+The success controls use a planted clean tree rather than this repository. Running
-+check_tests_run on the real tree made this unit test collect the fuzz and integration
-+suites in a nested pytest process. That made tests/unit require Hypothesis, even though
-+no unit test imports it. The 5.0 branch was excluded from the unit workflow, and the
-+workflow's full dependency set would have masked the leak even if it had run.
- """
-
- import shutil
-@@ -50,13 +56,37 @@ CANNOT_RUN = 2
- # Gates whose cannot-run path is reachable by giving them nothing to look at.
- GATES = ('check_tiger_style', 'check_tests_run', 'check_sweep_floors')
-
-+# Gates with a cheap success path which can be proved on a controlled tree.
-+CLEAN_GATES = ('check_tiger_style', 'check_tests_run')
-+
-+
-+def copy_gates(tree, gates):
-+ (tree / 'qa' / 'bin').mkdir(parents=True)
-+ for name in gates:
-+ shutil.copy(QA_BIN / name, tree / 'qa' / 'bin' / name)
-+
-
- @pytest.fixture
- def empty_tree(tmp_path):
- """A tree holding the gates and no source, so every gate is unable to run"""
-- (tmp_path / 'qa' / 'bin').mkdir(parents=True)
-- for name in GATES:
-- shutil.copy(QA_BIN / name, tmp_path / 'qa' / 'bin' / name)
-+ copy_gates(tmp_path, GATES)
-+ return tmp_path
-+
-+
-+@pytest.fixture
-+def clean_tree(tmp_path):
-+ """The smallest tree which gives the cheap gates a meaningful clean run."""
-+ copy_gates(tmp_path, CLEAN_GATES)
-+
-+ tests = tmp_path / 'tests'
-+ tests.mkdir()
-+ (tests / 'test_planted.py').write_text('def test_planted():\n pass\n')
-+
-+ source = tmp_path / 'src' / 'exabgp'
-+ source.mkdir(parents=True)
-+ for number in range(250):
-+ (source / f'module_{number}.py').touch()
-+
- return tmp_path
-
-
-@@ -108,15 +138,19 @@ class TestTheSetupIsRealRatherThanVacuous:
- assert not (empty_tree / 'src').exists()
- assert not (empty_tree / 'tests').exists()
-
-- def test_the_same_gates_exit_zero_on_the_real_tree(self) -> None:
-- """Otherwise exit 2 might be all these gates ever do
-+ @pytest.mark.parametrize('gate', CLEAN_GATES)
-+ def test_the_same_gates_exit_zero_on_a_clean_tree(self, gate, clean_tree) -> None:
-+ """Otherwise exit 2 might be all these gates ever do.
-
- A gate hardcoded to return 2 passes every assertion above. This is the half
- that says the cannot-run path is a path rather than the destination.
-
-+ The tree is planted rather than the repository itself. A unit test which asks
-+ check_tests_run to collect the whole repository silently makes optional fuzz
-+ dependencies mandatory for tests/unit.
-+
- check_sweep_floors is excluded from this one only: it drives pytest once per
- sweeping file, so a clean run costs about a minute, and CI runs it directly.
- """
-- for gate in ('check_tiger_style', 'check_tests_run'):
-- result = run(gate, ROOT)
-- assert result.returncode == 0, f'{gate}: {result.stdout}{result.stderr}'
-+ result = run(gate, clean_tree)
-+ assert result.returncode == 0, f'{gate}: {result.stdout}{result.stderr}'
-
diff --git a/python-exabgp.spec b/python-exabgp.spec
index 7001895..853b98b 100644
--- a/python-exabgp.spec
+++ b/python-exabgp.spec
@@ -1,5 +1,5 @@
Name: python-exabgp
-Version: 5.0.13
+Version: 5.0.14
Release: 1%{?dist}
Summary: The BGP swiss army knife of networking (Library)
@@ -11,9 +11,6 @@ Source2: exabgp.tmpfiles.exabgp.conf
Source3: exabgp.systemd.exabgp.service
Source4: exabgp.systemd.exabgp@.service
-# Post release fix for test harness
-Patch0001: 0001-pytest-fix.patch
-
BuildArch: noarch
%description
@@ -94,7 +91,7 @@ rm -rf %{buildroot}%{_usr}/etc
%check
%pyproject_check_import -t
-exabgp_log_enable=false %pytest --ignore=tests/fuzz --cov --cov-reset ./tests
+exabgp_log_enable=false %pytest --ignore=tests/fuzz --cov --cov-reset --deselect tests/unit/test_network_tcp.py::TestSocketCreation::test_a_refused_setsockopt_is_reported_as_itself --deselect=tests/unit/test_network_tcp.py::TestSocketCreation::test_a_real_interface_is_bound_with_a_nul_terminated_name ./tests
%pre -n exabgp
%sysusers_create_package exabgp %{SOURCE1}
@@ -128,6 +125,11 @@ exabgp_log_enable=false %pytest --ignore=tests/fuzz --cov --cov-reset ./tests
%{_tmpfilesdir}/exabgp.conf
%changelog
+* Fri Oct 16 2026 Gary Buhrmaster <gary.buhrmaster@gmail.com> - 5.0.14-1
+- Update to version 5.0.14 (resolves rhbz#2549946)
+ Remove patch for test harness
+ Add specific exclude for a unit test that does not work in mock
+
* Tue Aug 25 2026 Gary Buhrmaster <gary.buhrmaster@gmail.com> - 5.0.13-1
- Update to version 5.0.13 (resolves rhbz#2521279)
remove patch for PEP 639 compliance (fixed upstream in commit 9a35bf07)
diff --git a/sources b/sources
index 2a1a0d8..3f79030 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-exabgp-5.0.13.tar.gz) = db0e078b89d2f2eaa88c2f517672f8143fe3ec18a4bd6dddaa9d950fff235405ce8ed4c6136866372d86d39374a681c700e02e5aca88e5a5874da7dbf554bcd1
+SHA512 (python-exabgp-5.0.14.tar.gz) = cad095f1bf3f94011d0579289bc1b28df75077015745cdcb77c3c6a8c335d296ea8302d2e970ca405cae7a2e7436308f9f2de3812f5e8b2183a8d0ef717c2fc4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 4:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 4:41 [rpms/python-exabgp] f45: Update to version 5.0.14 (resolves rhbz#2549946) Gary Buhrmaster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox