Accepting request 784549 from devel:languages:python

- Drop not-removed py2 dependencies

- 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/784549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zipp?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2020-04-19 19:40:01 +00:00 committed by Git OBS Bridge
commit 7cb7b5d05f
4 changed files with 41 additions and 9 deletions

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Fri Mar 13 07:52:03 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Drop not-removed py2 dependencies
-------------------------------------------------------------------
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 <mcalabkova@suse.com>

View File

@ -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,15 @@ 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 +66,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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e
size 10778

3
zipp-3.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96
size 14808