Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-power for openSUSE:Factory checked in at 2025-05-12 18:09:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-power (Old) and /work/SRC/openSUSE:Factory/.python-power.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-power" Mon May 12 18:09:51 2025 rev:4 rq:1276872 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-power/python-power.changes 2019-10-31 22:45:28.673861040 +0100 +++ /work/SRC/openSUSE:Factory/.python-power.new.30101/python-power.changes 2025-05-12 18:09:52.952780200 +0200 @@ -1,0 +2,5 @@ +Mon May 12 02:43:59 UTC 2025 - Steve Kowalik <[email protected]> + +- Switch to pyproject and pyunittest macros. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-power.spec ++++++ --- /var/tmp/diff_new_pack.I8wzWJ/_old 2025-05-12 18:09:53.548805305 +0200 +++ /var/tmp/diff_new_pack.I8wzWJ/_new 2025-05-12 18:09:53.548805305 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-power # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-power Version: 1.4 Release: 0 Summary: System power status information in Python License: MIT -Group: Development/Languages/Python URL: https://github.com/Kentzo/Power Source: https://files.pythonhosted.org/packages/source/p/power/power-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,18 +41,18 @@ mv power/tests.py tests/ %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # tests.py can be run directly, but those tests expect user to alter power state during tests cd tests -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python -m unittest tests +%pyunittest tests %files %{python_files} %{python_sitelib}/power/ -%{python_sitelib}/power-%{version}-py*.egg-info +%{python_sitelib}/power-%{version}.dist-info
