Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-autopage for openSUSE:Factory
checked in at 2022-11-22 16:09:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopage (Old)
and /work/SRC/openSUSE:Factory/.python-autopage.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autopage"
Tue Nov 22 16:09:43 2022 rev:5 rq:1037088 version:0.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopage/python-autopage.changes
2022-08-07 18:33:45.173121997 +0200
+++
/work/SRC/openSUSE:Factory/.python-autopage.new.1597/python-autopage.changes
2022-11-22 16:09:45.189899072 +0100
@@ -1,0 +2,9 @@
+Mon Nov 21 12:23:06 UTC 2022 - Daniel Garcia <[email protected]>
+
+- Do not distribute tests with the package
+- Build using %pyproject macros
+- Remove python_module macro definition
+- More specific python_sitelib in %files
+- Remove duplicate files with %fdupes
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-autopage.spec ++++++
--- /var/tmp/diff_new_pack.gcxW6G/_old 2022-11-22 16:09:45.837902365 +0100
+++ /var/tmp/diff_new_pack.gcxW6G/_new 2022-11-22 16:09:45.841902385 +0100
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-autopage
Version: 0.5.1
@@ -27,6 +26,7 @@
Source:
https://files.pythonhosted.org/packages/source/a/autopage/autopage-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -42,16 +42,16 @@
in a pager (like `less`)
%prep
-%setup -q -n autopage-%{version}
-
-# workaround broken python_build macros
-echo "import setuptools; setuptools.setup()" > setup.py
+%autosetup -p1 -n autopage-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+# Do not distribute tests with the package
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/autopage/tests
%check
unset LESS
@@ -61,6 +61,7 @@
%files %{python_files}
%doc README.md
%license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/autopage
+%{python_sitelib}/autopage-%{version}*-info
%changelog