Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-fs"

Fri Sep 22 21:47:02 2023 rev:16 rq:1112131 version:2.4.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fs/python-fs.changes      2023-04-22 
22:01:42.549664389 +0200
+++ /work/SRC/openSUSE:Factory/.python-fs.new.1770/python-fs.changes    
2023-09-22 21:47:43.309530595 +0200
@@ -1,0 +2,9 @@
+Tue Sep 19 06:10:10 UTC 2023 - Steve Kowalik <[email protected]>
+
+- Switch to autosetup and pyproject macros
+- Add patch support-python-312.patch, don't call a removed assertion
+  function
+- Skip some recalcitrant tests
+- Clean up some old Python 3 version requirements
+
+-------------------------------------------------------------------

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

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

Other differences:
------------------
++++++ python-fs.spec ++++++
--- /var/tmp/diff_new_pack.R2IcRk/_old  2023-09-22 21:47:44.361568787 +0200
+++ /var/tmp/diff_new_pack.R2IcRk/_new  2023-09-22 21:47:44.361568787 +0200
@@ -17,20 +17,19 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without python2
 %{?sle15_python_module_pythons}
 Name:           python-fs
 Version:        2.4.16
 Release:        0
 Summary:        Python's filesystem abstraction layer
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/PyFilesystem/pyfilesystem2
 Source:         
https://files.pythonhosted.org/packages/source/f/fs/fs-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#PyFilesystem/pyfilesystem2#570
+Patch0:         support-python-312.patch
 BuildRequires:  %{python_module appdirs >= 1.4.3}
-BuildRequires:  %{python_module enum34 >= 1.1.6 if %python-base < 3.4}
 BuildRequires:  %{python_module parameterized}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pyftpdlib}
 BuildRequires:  %{python_module pysendfile}
@@ -39,7 +38,7 @@
 BuildRequires:  %{python_module scandir >= 1.5}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six >= 1.10.0}
-BuildRequires:  %{python_module typing >= 3.6 if %python-base < 3.6}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-appdirs >= 1.4.3
@@ -49,23 +48,6 @@
 Requires:       python-six >= 1.10.0
 Recommends:     python-pyftpdlib
 BuildArch:      noarch
-%if %{with python2}
-BuildRequires:  python-backports.os >= 0.1
-BuildRequires:  python-mock
-%endif
-%ifpython2
-Requires:       python-backports.os >= 0.1
-%endif
-%if %{python_version_nodots} < 34
-Requires:       python-enum34 >= 1.1.6
-Recommends:     python-pysendfile
-%endif
-%if %{python_version_nodots} < 35
-Recommends:     python-scandir >= 1.5
-%endif
-%if %{python_version_nodots} < 36
-Requires:       python-typing >= 3.6
-%endif
 %python_subpackages
 
 %description
@@ -76,23 +58,23 @@
 any of the supported filesystems (zip, ftp, S3 etc.).
 
 %prep
-%setup -q -n fs-%{version}
+%autosetup -p1 -n fs-%{version}
 sed -i -e '/install_requires/,/bdist_wheel/ s:~=:>=:g' setup.cfg
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF-8
-%pytest
+%pytest -k 'not (TestFTPFS and test_create or TestReadZipFSMem and test_seek)'
 
 %files %{python_files}
 %doc README.md
 %license LICENSE
 %{python_sitelib}/fs
-%{python_sitelib}/fs-%{version}*-info
+%{python_sitelib}/fs-%{version}.dist-info
 

++++++ support-python-312.patch ++++++
>From f6f260f97df29500a531baf1b370c3e4e4f3dc76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <[email protected]>
Date: Thu, 23 Mar 2023 13:23:12 +0100
Subject: [PATCH] Replace TestCase method aliases removed in Python 3.12

Fixes: #568
---
 CHANGELOG.md    | 2 ++
 CONTRIBUTORS.md | 1 +
 fs/test.py      | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

Index: fs-2.4.16/fs/test.py
===================================================================
--- fs-2.4.16.orig/fs/test.py
+++ fs-2.4.16/fs/test.py
@@ -1082,7 +1082,7 @@ class FSTestCases(object):
         self.fs.makedirs("foo/bar/baz/")
 
         error_msg = "resource 'foo/bar/egg/test.txt' not found"
-        assertRaisesRegex = getattr(self, "assertRaisesRegex", 
self.assertRaisesRegexp)
+        assertRaisesRegex = getattr(self, "assertRaisesRegex", 
self.assertRaisesRegex)
         with assertRaisesRegex(errors.ResourceNotFound, error_msg):
             self.fs.remove("foo/bar/egg/test.txt")
 

Reply via email to