From a4d9cbd7c7a46c2a94559d7ede5c09a26adbed603a8e2c37d5c95fd12469371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Mar 2020 13:31:47 +0000 Subject: [PATCH] Accepting request 782924 from home:pgajdos:python - version update to 3.1.0 * #47: ``.open`` now raises ``FileNotFoundError`` and ``IsADirectoryError`` when appropriate. * #44: ``zipp.Path.open()`` now supports a compatible signature as ``pathlib.Path.open()``, accepting text (default) or binary modes and soliciting keyword parameters passed through to ``io.TextIOWrapper`` (encoding, newline, etc). The stream is opened in text-mode by default now. ``open`` no longer accepts ``pwd`` as a positional argument and does not accept the ``force_zip64`` parameter at all. This change is a backward-incompatible change for that single function. * #43: Restored performance of implicit dir computation. * #36: Rebuild package with minimum Python version declared both in package metadata and in the python tag. * #32: For read-only zip files, complexity of ``.exists`` and ``joinpath`` is now constant time instead of ``O(n)``, preventing quadratic time in common use-cases and rendering large zip files unusable for Path. Big thanks to Benjy Weinberger for the bug report and contributed fix (#33). OBS-URL: https://build.opensuse.org/request/show/782924 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=15 --- python-zipp.changes | 23 +++++++++++++++++++++++ python-zipp.spec | 13 ++++++++++--- zipp-0.6.0.tar.gz | 3 --- zipp-3.1.0.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 6 deletions(-) delete mode 100644 zipp-0.6.0.tar.gz create mode 100644 zipp-3.1.0.tar.gz diff --git a/python-zipp.changes b/python-zipp.changes index a3b3393..928cde3 100644 --- a/python-zipp.changes +++ b/python-zipp.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Mar 9 12:20:53 UTC 2020 - pgajdos@suse.com + +- version update to 3.1.0 + * #47: ``.open`` now raises ``FileNotFoundError`` and + ``IsADirectoryError`` when appropriate. + * #44: ``zipp.Path.open()`` now supports a compatible signature + as ``pathlib.Path.open()``, accepting text (default) or binary + modes and soliciting keyword parameters passed through to + ``io.TextIOWrapper`` (encoding, newline, etc). The stream is + opened in text-mode by default now. ``open`` no + longer accepts ``pwd`` as a positional argument and does not + accept the ``force_zip64`` parameter at all. This change is + a backward-incompatible change for that single function. + * #43: Restored performance of implicit dir computation. + * #36: Rebuild package with minimum Python version declared both + in package metadata and in the python tag. + * #32: For read-only zip files, complexity of ``.exists`` and + ``joinpath`` is now constant time instead of ``O(n)``, preventing + quadratic time in common use-cases and rendering large + zip files unusable for Path. Big thanks to Benjy Weinberger + for the bug report and contributed fix (#33). + ------------------------------------------------------------------- Thu Aug 29 14:07:59 UTC 2019 - Marketa Calabkova diff --git a/python-zipp.spec b/python-zipp.spec index 2299071..22aa51f 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -1,7 +1,7 @@ # # spec file for package python-zipp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -26,7 +27,7 @@ %bcond_with test %endif Name: python-zipp%{psuffix} -Version: 0.6.0 +Version: 3.1.0 Release: 0 Summary: Pathlib-compatible object wrapper for zip files License: MIT @@ -35,16 +36,18 @@ URL: https://github.com/jaraco/zipp Source: https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz BuildRequires: %{python_module setuptools_scm >= 1.15.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module toml} BuildRequires: fdupes BuildRequires: python-contextlib2 BuildRequires: python-rpm-macros BuildRequires: python-unittest2 +Requires: python-more-itertools BuildArch: noarch %if %{with test} +BuildRequires: %{python_module jaraco.itertools} BuildRequires: %{python_module more-itertools} BuildRequires: %{python_module pytest >= 3.5} %endif -Requires: python-more-itertools %python_subpackages %description @@ -66,6 +69,10 @@ rm -f pytest.ini %if %{with test} %check +# skip performance test (we do not have func_timeout sofar) +sed -i -e 's:import func_timeout::' \ + -e 's:@func_timeout.func_set_timeout(.):@unittest.skip("skip performance test"):' \ + test_zipp.py %pytest %endif diff --git a/zipp-0.6.0.tar.gz b/zipp-0.6.0.tar.gz deleted file mode 100644 index ce34f87..0000000 --- a/zipp-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e -size 10778 diff --git a/zipp-3.1.0.tar.gz b/zipp-3.1.0.tar.gz new file mode 100644 index 0000000..24f6caf --- /dev/null +++ b/zipp-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96 +size 14808