Skip to content

Commit 7efc98b

Browse files
committed
Drop setup.{cfg,py} and RHEL 9 support
Only support pyproject.toml and PEP-517 build tools (PyPA build). Move spec to PyPA build. Drop support for RHEL/CentOS 9. Its ancient pybuild version is too broken. But the old setup.py is being deprecated in Fedora now. https://bugzilla.redhat.com/show_bug.cgi?id=2377609
1 parent 95b904e commit 7efc98b

File tree

4 files changed

+8
-42
lines changed

4 files changed

+8
-42
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- docker.io/ubuntu:latest
1818
- registry.fedoraproject.org/fedora:latest
1919
- registry.fedoraproject.org/fedora:rawhide
20-
- quay.io/centos/centos:stream9
2120
- quay.io/centos/centos:stream10-development
2221

2322
timeout-minutes: 30

packaging/python-dbusmock.spec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ BuildArch: noarch
1313
BuildRequires: git
1414
BuildRequires: python3-dbus
1515
BuildRequires: python3-devel
16+
BuildRequires: python3dist(setuptools-scm)
17+
BuildRequires: python3dist(wheel)
1618
BuildRequires: python3-setuptools
1719
BuildRequires: python3-gobject
1820
BuildRequires: python3-pytest
@@ -37,18 +39,21 @@ Requires: python3-dbus, python3-gobject, dbus-x11
3739
%autosetup -n python_%{modname}-%{version}
3840
rm -rf python-%{modname}.egg-info
3941

42+
%generate_buildrequires
43+
%pyproject_buildrequires
4044

4145
%build
42-
%py3_build
46+
%pyproject_wheel
4347

4448
%install
45-
%py3_install
49+
%pyproject_install
4650

4751
%check
4852
%{__python3} -m unittest -v
4953

5054
%files -n python3-dbusmock
55+
/usr/lib/python*
56+
5157
%doc README.md COPYING
52-
%{python3_sitelib}/*%{modname}*
5358

5459
%changelog

setup.cfg

Lines changed: 0 additions & 31 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)