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.
This commit is contained in:
parent
353f73ad61
commit
4e815433c5
@ -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 <awilliam@redhat.com> - 0.7.0-3
|
||||
- Build with modern pyproject macros, fixes #2164207
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user