Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory 
checked in at 2023-05-13 17:17:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old)
 and      /work/SRC/openSUSE:Factory/.python-py2pack.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-py2pack"

Sat May 13 17:17:29 2023 rev:55 rq:1086634 version:0.8.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes    
2023-03-08 14:52:38.058696209 +0100
+++ /work/SRC/openSUSE:Factory/.python-py2pack.new.1533/python-py2pack.changes  
2023-05-13 17:17:42.634405039 +0200
@@ -1,0 +2,8 @@
+Thu May 11 18:32:06 UTC 2023 - Ben Greiner <[email protected]>
+
+- Replace build_sphinx setuptools hook with direct sphinx-build
+  call -- fixes boo#1211051
+- Move to PEP517 macros for buildin py2pack
+- Remove shebang from __init__.py
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.RmgOeS/_old  2023-05-13 17:17:43.058407478 +0200
+++ /var/tmp/diff_new_pack.RmgOeS/_new  2023-05-13 17:17:43.066407525 +0200
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-py2pack
 Version:        0.8.7
 Release:        0
@@ -28,8 +27,10 @@
 BuildRequires:  %{python_module Jinja2}
 BuildRequires:  %{python_module metaextract}
 BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pypi-search}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 # SECTION doc requirements
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-sphinxcontrib-programoutput
@@ -63,15 +64,29 @@
 
 %prep
 %setup -q -n py2pack-%{version}
+# remove shebang
+sed -i '1{/#!/d}' py2pack/__init__.py
 
 %build
-%python_build
-python3 setup.py build_sphinx
+%pyproject_wheel
+
+# build docs, cli.rst needs py2pack as executable
+mkdir -p build/directbin/
+cat <<EOF > build/directbin/py2pack
+#!%{__python3}
+import sys
+import py2pack
+sys.exit(py2pack.main())
+EOF
+chmod +x build/directbin/py2pack
+export PATH="$PWD/build/directbin/:$PATH"
+export PYTHONPATH=$PWD
+sphinx-build -b html doc/source doc/build/html
 # remove the sphinx-build leftovers
 rm -rf doc/build/html/.{doctrees,buildinfo}
 
 %install
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/py2pack
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
@@ -83,7 +98,7 @@
 
 %files %{python_files}
 %python_alternative %{_bindir}/py2pack
-%{python_sitelib}/py2pack-%{version}-py*.egg-info
+%{python_sitelib}/py2pack-%{version}.dist-info
 %{python_sitelib}/py2pack/
 
 %files -n %{name}-doc

Reply via email to