Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyftpdlib for 
openSUSE:Factory checked in at 2023-09-22 21:47:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyftpdlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyftpdlib.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyftpdlib"

Fri Sep 22 21:47:01 2023 rev:20 rq:1112115 version:1.5.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyftpdlib/python-pyftpdlib.changes        
2023-04-22 21:58:40.952578687 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyftpdlib.new.1770/python-pyftpdlib.changes  
    2023-09-22 21:47:42.157488772 +0200
@@ -1,0 +2,9 @@
+Tue Sep 19 05:14:22 UTC 2023 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-312.patch, support Python 3.12+
+- Stop using greedy globs in %files
+- Switch to autosetup and pyproject macros
+- Remove Python 2 leftovers
+- Enable running the tests again
+
+-------------------------------------------------------------------

New:
----
  support-python-312.patch

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

Other differences:
------------------
++++++ python-pyftpdlib.spec ++++++
--- /var/tmp/diff_new_pack.Y761Oi/_old  2023-09-22 21:47:43.173525658 +0200
+++ /var/tmp/diff_new_pack.Y761Oi/_new  2023-09-22 21:47:43.173525658 +0200
@@ -17,23 +17,24 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without python2
 %{?sle15_python_module_pythons}
 Name:           python-pyftpdlib
 Version:        1.5.7
 Release:        0
 Summary:        Asynchronous FTP server library for Python
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/giampaolo/pyftpdlib/
 Source:         
https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
 Source1:        keycert.pem
+# PATCH-FIX-UPSTREAM gh#giampaolo/pyftpdlib#605
+Patch0:         support-python-312.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pyOpenSSL}
 BuildRequires:  %{python_module pysendfile}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pyOpenSSL
@@ -41,13 +42,6 @@
 Requires(postun):update-alternatives
 Recommends:     python-pysendfile
 BuildArch:      noarch
-%if %{with python2}
-BuildRequires:  python-ipaddress
-BuildRequires:  python-mock
-%endif
-%ifpython2
-Requires:       python-ipaddress
-%endif
 %python_subpackages
 
 %description
@@ -55,49 +49,40 @@
 write very asynchronous FTP servers with Python.
 
 %prep
-%setup -q -n pyftpdlib-%{version}
+%autosetup -p1 -n pyftpdlib-%{version}
 sed -i '1 {/env python/ d}' pyftpdlib/test/*.py pyftpdlib/_compat.py
 cp %{SOURCE1} pyftpdlib/test
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/ftpbench
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 # Note: Do not remove tests. Other packages import them
 
 %check
-## # Tests reported as randomly failing in 2016 against v1.5.0:
-## # https://github.com/giampaolo/pyftpdlib/issues/386
-## # If they re-occur, please update the issue with backtraces,
-## # and disable only related tests.
-## donttest="(TestFtpStoreDataTLSMixin and test_rest_on_stor)"
-## donttest+=" or (TestFtpStoreDataTLSMixin and test_stor_ascii)"
-## # https://github.com/giampaolo/pyftpdlib/issues/550
-## donttest+=" or test_masquerade_address"
-## ignorebuild="--ignore build"
-## %%{python_expand # expand to python flavor, not to the binary name, then 
strip the trailing _
-## builddir=_build.$python_
-## ignorebuild+=" --ignore ${builddir%%_}"
-## }
-## cat > pytest.ini <<EOF
-## [pytest]
-## addopts =
-##   -rs -v
-##   -k "not ($donttest)"
-##   $ignorebuild
-## EOF
-## %%{python_expand # pytest macro does not work. The tests parse CLI args and 
fail if there are any unknown program args
-## export PYTHONPATH=%%{buildroot}%%{$python_sitelib}
-## export PYTHONDONTWRITEBYTECODE=1
-## # gh#giampaolo/pyftpdlib#540
-## export PYTEST_ADDOPTS="-k 'not (TestFtpListingCmdsTLSMixin or 
TestConfigurableOptions or TestFtpStoreDataTLSMixin)'"
-## # gh#giampaolo/pyftpdlib#478
-## export TZ=GMT+1
-## $python -m pytest
-## }
+ignorebuild="--ignore build"
+%{python_expand # expand to python flavor, not to the binary name, then strip 
the trailing _
+builddir=_build.$python_
+ignorebuild+=" --ignore ${builddir%%_}"
+}
+cat > pytest.ini <<EOF
+[pytest]
+addopts =
+  -rs -v
+  $ignorebuild
+EOF
+%{python_expand # pytest macro does not work. The tests parse CLI args and 
fail if there are any unknown program args
+export PYTHONPATH=%%{buildroot}%%{$python_sitelib}
+export PYTHONDONTWRITEBYTECODE=1
+# gh#giampaolo/pyftpdlib#540
+##export PYTEST_ADDOPTS="-k 'not (TestFtpListingCmdsTLSMixin or 
TestConfigurableOptions or TestFtpStoreDataTLSMixin)'"
+# gh#giampaolo/pyftpdlib#478
+export TZ=GMT+1
+$python -m pytest
+}
 
 %post
 %python_install_alternative ftpbench
@@ -109,5 +94,6 @@
 %license LICENSE
 %doc README.rst
 %python_alternative %{_bindir}/ftpbench
-%{python_sitelib}/*
+%{python_sitelib}/pyftpdlib
+%{python_sitelib}/pyftpdlib-%{version}.dist-info
 

++++++ support-python-312.patch ++++++
++++ 897 lines (skipped)

Reply via email to