Name: python-pdm Version: 2.25.4 Release: %autorelease Summary: A modern Python package and dependency manager supporting the latest PEP standards License: MIT URL: https://pdm-project.org VCS: git:https://github.com/pdm-project/pdm.git Source: https://github.com/pdm-project/pdm/archive/%{version}/pdm-%{version}.tar.gz Patch: relax-dep-requirements.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: PDM is meant to be a next generation Python package management tool. It was originally built for personal use. If you feel you are going well with Pipenv or Poetry and don't want to introduce another package manager, just stick to it. But if you are missing something that is not present in those tools, you can probably find some goodness in pdm.} %description %_description %package -n python3-pdm Summary: %{summary} %description -n python3-pdm %_description %pyproject_extras_subpkg -n python3-pdm cookiecutter,copier,keyring,msgpack,template %prep %autosetup -p1 -n pdm-%{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 -x all,cookiecutter,copier,keyring,locked,msgpack,pytest,template %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pdm %check %pyproject_check_import %pytest %files -n python3-pdm -f %{pyproject_files} %changelog %autochangelog