From f666dd4e20cfecf0319122247befa579f9f3335f Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Sep 09 2020 10:45:05 +0000 Subject: Switch to pyproject rpm macros --- diff --git a/python-yarg.spec b/python-yarg.spec index c546f5c..2994bda 100644 --- a/python-yarg.spec +++ b/python-yarg.spec @@ -6,7 +6,7 @@ Yarg is an easy to use PyPI client built on top of Python's requests library. Name: python-%{srcname} Version: 0.1.9 -Release: 12%{?dist} +Release: 13%{?dist} Summary: An easy to use PyPI client License: MIT @@ -15,9 +15,7 @@ Source0: https://github.com/kura/yarg/archive/%{version}/%{srcname}/%{src BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(requests) -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(mock) +BuildRequires: pyproject-rpm-macros %description %_description @@ -29,27 +27,29 @@ Summary: %{summary} %prep %autosetup -n %{srcname}-%{version} -# Remove bundled egg-info -rm -rf %{srcname}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -r -t %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{srcname} %check -%{__python3} setup.py test +%tox -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %pyproject_files %license LICENSE-REQUESTS LICENSE %doc README.rst -# Ignore tests %exclude %{python3_sitelib}/tests -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %changelog +* Wed Sep 09 2020 Lumír Balhar - 0.1.9-13 +- Switch to pyproject rpm macros + * Wed Jul 29 2020 Fedora Release Engineering - 0.1.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild