- update to 3.21.0:
* Improve performances of :meth:`zipfile.Path.open` for non-
reading modes. (1a1928d)
* Rely on cached_property to cache values on the instance.
* Rely on save_method_args to save method args.
* Make zipp.compat.overlay.zipfile hashable.
* Replaced SanitizedNames with a more surgical fix for infinite
loops, restoring support for names with special characters in
the archive. (python/cpython#123270)
* Made the zipfile compatibility overlay available as
zipp.compat.overlay.
* Also match directories in Path.glob.
OBS-URL: https://build.opensuse.org/request/show/1225379
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zipp?expand=0&rev=23
* Improve performances of :meth:`zipfile.Path.open` for non-
reading modes. (1a1928d)
* Rely on cached_property to cache values on the instance.
* Rely on save_method_args to save method args.
* Make zipp.compat.overlay.zipfile hashable.
* Replaced SanitizedNames with a more surgical fix for infinite
loops, restoring support for names with special characters in
the archive. (python/cpython#123270)
* Made the zipfile compatibility overlay available as
zipp.compat.overlay.
* Also match directories in Path.glob.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=48
- update to 3.17.0:
* Added ``CompleteDirs.inject`` classmethod to make available
for use elsewhere.
* Avoid matching path separators for '?' in glob.
* In ``Path.match``, Windows path separators are no longer
honored. The fact that they were was incidental and never
supported. (#92)
* Fixed name/suffix/suffixes/stem operations when no filename
is present and the Path is not at the root of the zipfile.
(#96)
* Reworked glob utilizing the namelist directly. (#101)
* Replaced the ``fnmatch.translate`` with a fresh glob-to-regex
translator for more correct matching behavior. (#98)
* Require Python 3.8 or later.
* Removed compatibility code.
- add python-rpm-macros buildrequires
* Remove news file intended only for CPython.
* refresh packaging
* When adding implicit dirs, ensure that ancestral directories
* Declared package as backport.
OBS-URL: https://build.opensuse.org/request/show/1129068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zipp?expand=0&rev=19
* Added ``CompleteDirs.inject`` classmethod to make available
for use elsewhere.
* Avoid matching path separators for '?' in glob.
* In ``Path.match``, Windows path separators are no longer
honored. The fact that they were was incidental and never
supported. (#92)
* Fixed name/suffix/suffixes/stem operations when no filename
is present and the Path is not at the root of the zipfile.
(#96)
* Reworked glob utilizing the namelist directly. (#101)
* Replaced the ``fnmatch.translate`` with a fresh glob-to-regex
translator for more correct matching behavior. (#98)
* Require Python 3.8 or later.
* Removed compatibility code.
- add python-rpm-macros buildrequires
* Remove news file intended only for CPython.
* refresh packaging
* When adding implicit dirs, ensure that ancestral directories
* Declared package as backport.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=38
- update to 3.15.0:
* gh-102209: ``test_implied_dirs_performance`` now tests
* measures the time complexity experimentally.
* Minor cleanup in tests, including #93.
* In tests, add a fallback when ``func_timeout`` isn't
available.
* gh-101566: In ``CompleteDirs``, override ``ZipFile.getinfo``
* to supply a ``ZipInfo`` for implied dirs.
* gh-101144: Honor ``encoding`` as positional parameter
* to ``Path.open()`` and ``Path.read_text()``.
* #85: Added support for new methods on ``Path``:
* ``match`` * ``glob`` and ``rglob`` * ``relative_to``
* ``is_symlink``
* Removed 'print' expression in test_pickle.
* bpo-43651: Apply ``io.text_encoding`` on Python 3.10 and
later.
* #81: ``Path`` objects are now pickleable if they've been
* constructed from pickleable objects. Any restored objects
* will re-construct the zip file with the original arguments.
OBS-URL: https://build.opensuse.org/request/show/1079595
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zipp?expand=0&rev=17
* gh-102209: ``test_implied_dirs_performance`` now tests
* measures the time complexity experimentally.
* Minor cleanup in tests, including #93.
* In tests, add a fallback when ``func_timeout`` isn't
available.
* gh-101566: In ``CompleteDirs``, override ``ZipFile.getinfo``
* to supply a ``ZipInfo`` for implied dirs.
* gh-101144: Honor ``encoding`` as positional parameter
* to ``Path.open()`` and ``Path.read_text()``.
* #85: Added support for new methods on ``Path``:
* ``match`` * ``glob`` and ``rglob`` * ``relative_to``
* ``is_symlink``
* Removed 'print' expression in test_pickle.
* bpo-43651: Apply ``io.text_encoding`` on Python 3.10 and
later.
* #81: ``Path`` objects are now pickleable if they've been
* constructed from pickleable objects. Any restored objects
* will re-construct the zip file with the original arguments.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=33
- update to 3.4.0:
#68 and bpo-42090: ``Path.joinpath`` now takes arbitrary
positional arguments and no longer accepts ``add`` as a
keyword argument.
Updated project metadata including badges.
bpo-42043: Add tests capturing subclassing requirements.
#9: ``Path`` objects now expose a ``.filename`` attribute
and rely on that to resolve ``.name`` and ``.parent`` when
the ``Path`` object is at the root of the zipfile.
OBS-URL: https://build.opensuse.org/request/show/850769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zipp?expand=0&rev=10
#68 and bpo-42090: ``Path.joinpath`` now takes arbitrary
positional arguments and no longer accepts ``add`` as a
keyword argument.
Updated project metadata including badges.
bpo-42043: Add tests capturing subclassing requirements.
#9: ``Path`` objects now expose a ``.filename`` attribute
and rely on that to resolve ``.name`` and ``.parent`` when
the ``Path`` object is at the root of the zipfile.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=20
* #57 and bpo-40564: Mutate the passed ZipFile object
type instead of making a copy. Prevents issues when
both the local copy and the caller's copy attempt to
close the same file handle.
* #56 and bpo-41035: ``Path._next`` now honors
subclasses.
* #55: ``Path.is_file()`` now returns False for non-existent names.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipp?expand=0&rev=18
- 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
- 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