# toposort -- a topological sort of a dependency mapping, as a generator of sets # that can be processed in parallel. One pure-Python module. # # WHY IT IS HERE: xsdata's code generator (the "cli" extra) imports it, and # python-xsdata is packaged for python-ismrmrd (MITK task 16, raw MRI # reconstruction). With it, the xsdata command and its own test suite work. # # Class 1 under docs/PACKAGING-POLICY.md: Fedora ships no package by this source # name and nothing provides python3dist(toposort). Verified 2026-10-12 on f44 # and rawhide: # dnf repoquery --whatprovides 'python3dist(toposort)' -> empty %global pypi_name toposort Name: python-%{pypi_name} Version: 1.10 Release: 1%{?dist} Summary: Topological sort of a dependency mapping # pyproject.toml says "Apache License Version 2.0"; LICENSE.txt is Apache-2.0. License: Apache-2.0 URL: https://gitlab.com/ericvsmith/toposort Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: toposort implements a topological sort. Given a mapping of items to the sets of items they depend on, toposort() yields sets of items in dependency order, where every item in a set depends only on items in earlier sets, so each set can be processed in parallel. toposort_flatten() returns one sorted list.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # The legacy license = {text = ...} table writes no License-File. %pyproject_save_files -L %{pypi_name} %check %pyproject_check_import # Upstream's Makefile targets: the unittest module (it calls unittest.main() at # import, so it runs as a script, not under pytest) and the README doctests. %{py3_test_envvars} %{python3} test/test_toposort.py -v %{py3_test_envvars} %{python3} -m doctest README.md %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt NOTICE %doc README.md CHANGES.txt %changelog * Mon Oct 12 2026 Morgan Hough - 1.10-1 - Initial package: needed by xsdata's code generator.