Name: python-pdm-build-locked Version: 0.3.5 Release: %autorelease Summary: pdm plugin to add locked packages as additional optional dependency groups to the distribution metadata License: MIT URL: https://pdm-build-locked.readthedocs.io/ VCS: git:https://github.com/pdm-project/pdm-build-locked.git Source: https://github.com/pdm-project/pdm-build-locked/archive/%{version}/pdm-build-locked-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: pdm-build-locked is a pdm plugin to add locked packages as additional optional dependency groups to the distribution metadata.} %description %_description %package -n python3-pdm-build-locked Summary: %{summary} %description -n python3-pdm-build-locked %_description %prep %autosetup -p1 -n pdm-build-locked-%{version} # Set version in pyproject.toml file # https://backend.pdm-project.org/metadata/ sed -i '/source = "scm"/a fallback_version = "%{version}"' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L pdm_build_locked %check %pyproject_check_import %pytest %files -n python3-pdm-build-locked -f %{pyproject_files} %license LICENSE %doc README.rst %changelog %autochangelog