%global srcname toposort Name: python-%{srcname} Version: 1.10 Release: 15%{?dist} Summary: Topological sort of a dependency graph, in dependency order License: Apache-2.0 URL: https://gitlab.com/ericvsmith/toposort Source: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # %%check BuildRequires: python3-pytest %global _description %{expand: toposort sorts a dependency graph: given a mapping from each item to the set of items it depends on, it yields the items in dependency order, as sets of items that have no dependency on each other and may therefore be processed together. A circular dependency raises rather than being silently dropped. One module, no dependencies. Packaged here because AMICI's model import needs it to order the assignments it generates.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcname} %check # test/test_toposort.py calls unittest.main() at module level, unguarded: the # file is meant to be run, not collected. Under pytest the import raises # SystemExit and nothing runs at all. This is what upstream's Makefile does, # including the README doctest. %{py3_test_envvars} %{python3} -m test.test_toposort %{py3_test_envvars} %{python3} -m doctest README.md %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md CHANGES.txt %license LICENSE.txt NOTICE %changelog * Mon Oct 05 2026 Morgan Hough - 1.10-15 - Release 15, not a rebuild: Fedora's fedora-obsolete-packages obsoletes python3-toposort < 1.10-14. A system test installing the published stack found that 1.10-1 is below that threshold, so dnf treats it as obsoleted and `dnf install python3-toposort` returns 0 having installed NOTHING (neither this package nor the obsoleter); anything requiring it fails with "conflicting requests". Reproduced on a stock f45 chroot and a real f44 host, with python3-box as a control that installs normally. Release 15 is above the threshold, so it is not obsoleted. - Correction to the -1 entry: "Net-new to Fedora" was wrong. The obsoletes entry exists because Fedora shipped this package and later retired it. No published biofedora package requires it. - Nothing in the package changed. * Fri Sep 25 2026 Morgan Hough - 1.10-1 - Initial package: toposort 1.10. Net-new to Fedora; one module, no dependencies. Packaged as an AMICI prerequisite. - %%check runs the suite as unittest rather than pytest: upstream's test file calls unittest.main() at module level, so pytest's import of it exits the session before anything runs.