Name: python-unearth Version: 0.17.5 Release: %autorelease Summary: A utility to fetch and download python packages License: MIT URL: https://github.com/frostming/unearth VCS: git:%{url}.git Source: %{url}/archive/%{version}/unearth-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Test dependencies BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-httpserver) BuildRequires: python3dist(flask) # Not packaged #BuildRequires: python3dist(requests-wsgi-adapter) # Python < 3.13 #BuildRequires: python3dist(trustme) BuildRequires: python3dist(pytest-mock) %global _description %{expand: A utility to fetch and download python packages.} %description %_description %package -n python3-unearth Summary: %{summary} %description -n python3-unearth %_description %pyproject_extras_subpkg -n python3-unearth keyring,legacy %prep %autosetup -p1 -n unearth-%{version} # Set version in pyproject.toml file # https://backend.pdm-project.org/metadata/ sed -i '/source = "scm"/a fallback_version = "%{version}"' pyproject.toml rm pdm.lock %generate_buildrequires %pyproject_buildrequires -x keyring,legacy %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L unearth %check %pyproject_check_import %pytest %files -n python3-unearth -f %{pyproject_files} %license LICENSE %changelog %autochangelog