Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pathlib2 for openSUSE:Factory
checked in at 2022-03-21 20:11:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pathlib2 (Old)
and /work/SRC/openSUSE:Factory/.python-pathlib2.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pathlib2"
Mon Mar 21 20:11:31 2022 rev:15 rq:963462 version:2.3.7.post1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pathlib2/python-pathlib2.changes
2021-08-18 08:57:15.498879919 +0200
+++
/work/SRC/openSUSE:Factory/.python-pathlib2.new.25692/python-pathlib2.changes
2022-03-21 20:11:40.852419597 +0100
@@ -1,0 +2,13 @@
+Sun Mar 20 09:08:41 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 2.3.7.post1
+ * This version will be the last release to support Python 2.7.
+ * Fix bug in samefile on Windows when file does not exist.
+ * Add newline parameter for write_text (see issue #64).
+ * Add many more type annotations.
+ * Continuous integration migrated to github actions.
+ * Project migrated to jazzband.
+- Clean up specfile from old cruft handled by python-rpm-macros
+- Skip python310 tests: test file imports not compatible
+
+-------------------------------------------------------------------
Old:
----
pathlib2-2.3.6.tar.gz
New:
----
pathlib2-2.3.7.post1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pathlib2.spec ++++++
--- /var/tmp/diff_new_pack.YsKkyN/_old 2022-03-21 20:11:41.440420184 +0100
+++ /var/tmp/diff_new_pack.YsKkyN/_new 2022-03-21 20:11:41.448420192 +0100
@@ -1,7 +1,7 @@
#
# spec file
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,37 +20,36 @@
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
+# the test suite on <= 2.3.7.post1 is not compatible with Python 3.10
+# it is already fixed in upstream's devel branch
+%define skip_python310 1
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define oldpython python
Name: python-pathlib2%{?psuffix}
-Version: 2.3.6
+Version: 2.3.7.post1
Release: 0
Summary: Object-oriented filesystem paths
License: MIT
Group: Development/Languages/Python
-URL: https://github.com/mcmtroffaes/pathlib2
+URL: https://github.com/jazzband/pathlib2
Source:
https://files.pythonhosted.org/packages/source/p/pathlib2/pathlib2-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
+BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
%if %{with test}
-BuildRequires: %{python_module mock}
-BuildRequires: %{python_module scandir}
-BuildRequires: %{python_module six}
+BuildRequires: %{python_module pathlib2 = %{version}}
BuildRequires: %{python_module testsuite}
%endif
%ifpython2
+Requires: python-mock
Requires: python-scandir
-%endif
-%ifpython2
-Provides: %{oldpython}-pathlib2 = %{version}
-Obsoletes: %{oldpython}-pathlib2 <= %{version}
+Requires: python-typing
%endif
%python_subpackages
@@ -63,6 +62,7 @@
%prep
%autosetup -n pathlib2-%{version}
+dos2unix CHANGELOG.rst README.rst
%build
%python_build
@@ -75,15 +75,17 @@
%if %{with test}
%check
-export PYTHONPATH="$PWD"
-%python_exec tests/test_pathlib2.py
+pushd tests
+%pyunittest -v
+popd
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE.rst
%doc CHANGELOG.rst README.rst
-%{python_sitelib}/*
+%{python_sitelib}/pathlib2
+%{python_sitelib}/pathlib2-%{version}*-info
%endif
%changelog