public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-bidict] rawhide: Update to 0.24.0 (close RHBZ#2523223)
@ 2026-08-25 7:52 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-25 7:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-bidict
Branch : rawhide
Commit : bd81334681f5243b13bf85929d743522bddd64ee
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-25T08:42:33+01:00
Stats : +25/-19 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-bidict/c/bd81334681f5243b13bf85929d743522bddd64ee?branch=rawhide
Log:
Update to 0.24.0 (close RHBZ#2523223)
https://bidict.readthedocs.io/en/v0.24.0/changelog.html
There is at least one breaking change, the removal of `bidict.metadata`.
---
diff --git a/python-bidict.spec b/python-bidict.spec
index b5ef504..5045fa6 100644
--- a/python-bidict.spec
+++ b/python-bidict.spec
@@ -1,30 +1,19 @@
Name: python-bidict
-Version: 0.23.1
+Version: 0.24.0
Release: %autorelease
Summary: Bidirectional mapping library for Python
License: MPL-2.0
URL: https://bidict.readthedocs.io
-Source: https://github.com/jab/bidict/archive/v%{version}/bidict-%{version}.tar.gz
+%global forgeurl https://github.com/jab/bidict
+Source: %{forgeurl}/archive/v%{version}/bidict-%{version}.tar.gz
BuildSystem: pyproject
+BuildOption(generate_buildrequires): --dependency-groups test
BuildOption(install): --assert-license bidict
BuildArch: noarch
-# In 0.23.1, test dependencies are in dev-deps/test.in. Later, they are moved
-# to a test dependency group in pyproject.toml. In either case, we must curate
-# them: we don’t want benchmarks, coverage analysis, linters, etc, and
-# pytest-sphinx, while perhaps potentially useful, is not packaged. See
-# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters.
-BuildRequires: %{py3_dist pytest}
-BuildRequires: %{py3_dist hypothesis}
-BuildRequires: %{py3_dist pytest-xdist}
-BuildRequires: %{py3_dist typing-extensions}
-# The sortedcontainers dependency is mentioned in documentation, but does not
-# appear in a doctest that we actually run. The sortedcollections dependency is
-# used for only one doctest, which we ignore.
-
%global common_description %{expand:
The bidirectional mapping library for Python.}
@@ -38,8 +27,20 @@ Summary: %{summary}
%prep -a
-# Since we have omitted pytest-benchmark, this would not be recognized.
-sed --regexp-extended --in-place '/--benchmark/d' pytest.ini
+# We must work with what we have, and compatibility is good in practice.
+%pyproject_patch_dependency uv_build:drop_upper
+
+# We have no use for benchmarking
+%pyproject_patch_dependency pytest-benchmark:ignore
+# Not packaged; potentially useful, but we can get by without it
+%pyproject_patch_dependency pytest-sphinx:ignore
+# Not packaged; used for only one doctest, which we ignore
+%pyproject_patch_dependency sortedcollections:ignore
+# Mentioned in documentation, but doesn’t appear in an actual doctest
+%pyproject_patch_dependency sortedcontainers:ignore
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
+%pyproject_patch_dependency coverage:ignore
+%pyproject_patch_dependency ty:ignore
%check -a
@@ -48,7 +49,12 @@ sed --regexp-extended --in-place '/--benchmark/d' pytest.ini
# is otherwise not needed in Fedora at all.
ignore="${ignore-} --ignore=docs/extending.rst"
-%pytest ${ignore-}
+# Python 3.15.0rc1:
+# test_remove_fails_clean_when_a_backing_mapping_refuses[popitem-bidict] fails
+# https://github.com/jab/bidict/issues/407
+k="${k-}${k+ and }not test_remove_fails_clean_when_a_backing_mapping_refuses[popitem-bidict]"
+
+%pytest ${ignore-} -k "${k-}"
%files -n python3-bidict -f %{pyproject_files}
diff --git a/sources b/sources
index a939d58..97b890c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (bidict-0.23.1.tar.gz) = 795e29b61c1717dd34807c60ce598fc6a142decebd0545378bdc728f397e2050f52cf11212075ba60e22553031e9727fcbaae26891f531219075f6f58e457d05
+SHA512 (bidict-0.24.0.tar.gz) = 1ed5a958e267af7db8618bcbd2b925201348b7e10e9541e4c4462f0ac5a4a1386d1ff3a629acafaae3c8d87af636c817ee0b4cbeabf70ed86f6aa0407892b163
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-25 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-25 7:52 [rpms/python-bidict] rawhide: Update to 0.24.0 (close RHBZ#2523223) Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox