From 4e815433c5bad754f66cb97da95c27a34f4c7ea4 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 25 Jan 2023 01:26:52 -0800 Subject: [PATCH] Build with modern pyproject macros, fixes #2164207 This uses the pyproject macros to build with flit, instead of using setuptools or distutils. As well as being simpler, cleaner and more modern, this also solves #2164207, which was triggered by a build using distutils because setuptools dropped out of the dep chain. --- python-ptyprocess.spec | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/python-ptyprocess.spec b/python-ptyprocess.spec index 7886a5a..74d009c 100644 --- a/python-ptyprocess.spec +++ b/python-ptyprocess.spec @@ -4,7 +4,7 @@ Name: python-ptyprocess Version: 0.7.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run a subprocess in a pseudo terminal License: ISC @@ -20,7 +20,7 @@ process and its pty. %package -n python3-ptyprocess Summary: Run a subprocess in a pseudo terminal %{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: python3-pytest %endif @@ -32,24 +32,29 @@ process and its pty. %prep %autosetup -n ptyprocess-%{version} +%generate_buildrequires +%pyproject_buildrequires -t + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files ptyprocess %if %{with tests} %check %{__python3} -m pytest -v %endif -%files -n python3-ptyprocess +%files -n python3-ptyprocess -f %{pyproject_files} %license LICENSE %doc README.rst -%{python3_sitelib}/ptyprocess/ -%{python3_sitelib}/ptyprocess-*.egg-info %changelog +* Tue Jan 24 2023 Adam Williamson - 0.7.0-3 +- Build with modern pyproject macros, fixes #2164207 + * Fri Jan 20 2023 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild