Update to more modern Python packaging

epel9
Fabio Valentini 2 years ago
parent 7f8e86fe66
commit 5924222885
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -21,29 +21,28 @@ provides a CLI interface (for implementing RPM macros and generators)
and a Python API (which rust2rpm is built upon). and a Python API (which rust2rpm is built upon).
%prep %prep
%autosetup -n cargo2rpm-%{version} -p1 %autosetup -p1
%generate_buildrequires %generate_buildrequires
%pyproject_buildrequires -t %pyproject_buildrequires %{?with_check:-t}
%build %build
%pyproject_wheel %pyproject_wheel
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files cargo2rpm
%check %check
%pyproject_check_import
%if %{with check} %if %{with check}
%tox %tox
%endif %endif
%files %files -f %{pyproject_files}
%license LICENSE
%doc README.md %doc README.md
%doc CHANGELOG.md %doc CHANGELOG.md
%{_bindir}/cargo2rpm %{_bindir}/cargo2rpm
%{python3_sitelib}/cargo2rpm-*.dist-info/
%{python3_sitelib}/cargo2rpm/
%changelog %changelog
%autochangelog %autochangelog

Loading…
Cancel
Save