%global pypi_name footsteps # Upstream tags this release "1.9" while setup.cfg says version = 0.1.9. The tag # name and the version disagree; setup.cfg is authoritative and is what the # wheel declares, so Version: follows it and the Source URL follows the tag. %global upstream_tag 1.9 Name: python-footsteps Version: 0.1.9 Release: 1%{?dist} Summary: Minimal experiment logging that numbers each run's output directory # setup.cfg carries the MIT classifier and LICENSE is the MIT text. PyPI's # metadata reports no licence at all, which is why this was read from the file # rather than taken from the index. License: MIT URL: https://github.com/HastingsGreer/footsteps # NOT %%{pypi_source}: PyPI has only a wheel for 0.1.9, no sdist, and Fedora # builds from source. This is the GitHub tag tarball instead. Source0: %{url}/archive/%{upstream_tag}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: footsteps gives an experiment a numbered output directory and records where its artefacts went, so successive runs do not overwrite each other. It is a few dozen lines with no dependencies.} %description %{_description} %package -n python3-footsteps Summary: %{summary} %description -n python3-footsteps %{_description} %prep # The GitHub archive unpacks as -, which is footsteps-1.9 and not # footsteps-0.1.9, because of the tag/version mismatch noted above. %autosetup -n %{pypi_name}-%{upstream_tag} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files footsteps %check %pyproject_check_import %files -n python3-footsteps -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Tue Sep 29 2026 Morgan Hough - 0.1.9-1 - Initial package: footsteps 0.1.9. - Packaged as a prerequisite for python-icon-registration, which declares it as a hard dependency. icon-registration in turn is the sole dependency of unigradicon, and both are in the dependency set of Project-MONAI/monai-physio. - Built from the GitHub tag, not PyPI: 0.1.9 publishes a wheel only, with no sdist, and Fedora builds from source. - Two upstream inconsistencies recorded here so the next person does not trip on them. The git tag is "1.9" while setup.cfg says 0.1.9, so the archive unpacks as footsteps-1.9 and %%autosetup needs -n accordingly. And PyPI reports no licence, while setup.cfg carries the MIT classifier and LICENSE is the MIT text -- the licence here was read from the file, as house practice requires, rather than taken from the index. - Pure Python, noarch, no dependencies at all, python_requires >=3.7 with no upper bound.