Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-zipp for openSUSE:Factory 
checked in at 2021-07-21 19:05:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zipp (Old)
 and      /work/SRC/openSUSE:Factory/.python-zipp.new.2632 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zipp"

Wed Jul 21 19:05:35 2021 rev:12 rq:906829 version:3.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zipp/python-zipp.changes  2021-03-12 
13:31:18.638156758 +0100
+++ /work/SRC/openSUSE:Factory/.python-zipp.new.2632/python-zipp.changes        
2021-07-21 19:05:44.683225252 +0200
@@ -1,0 +2,6 @@
+Sat Jul 17 13:36:17 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 3.5.0:
+  * Added ``.suffix``, ``.suffixes``, and ``.stem`` properties.
+
+-------------------------------------------------------------------

Old:
----
  zipp-3.4.1.tar.gz

New:
----
  zipp-3.5.0.tar.gz

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

Other differences:
------------------
++++++ python-zipp.spec ++++++
--- /var/tmp/diff_new_pack.ttakCb/_old  2021-07-21 19:05:45.243226225 +0200
+++ /var/tmp/diff_new_pack.ttakCb/_new  2021-07-21 19:05:45.243226225 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package python-zipp
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -27,7 +27,7 @@
 %bcond_with test
 %endif
 Name:           python-zipp%{psuffix}
-Version:        3.4.1
+Version:        3.5.0
 Release:        0
 Summary:        Pathlib-compatible object wrapper for zip files
 License:        MIT

++++++ zipp-3.4.1.tar.gz -> zipp-3.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/.coveragerc new/zipp-3.5.0/.coveragerc
--- old/zipp-3.4.1/.coveragerc  2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/.coveragerc  2021-07-03 01:51:21.000000000 +0200
@@ -1,5 +1,7 @@
 [run]
-omit = .tox/*
+omit =
+       # leading `*/` for pytest-dev/pytest-cov#456
+       */.tox/*
 
 [report]
 show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/.github/dependabot.yml 
new/zipp-3.5.0/.github/dependabot.yml
--- old/zipp-3.4.1/.github/dependabot.yml       1970-01-01 01:00:00.000000000 
+0100
+++ new/zipp-3.5.0/.github/dependabot.yml       2021-07-03 01:51:21.000000000 
+0200
@@ -0,0 +1,8 @@
+version: 2
+updates:
+  - package-ecosystem: "pip"
+    directory: "/"
+    schedule:
+      interval: "daily"
+    allow:
+      - dependency-type: "all"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/.github/workflows/automerge.yml 
new/zipp-3.5.0/.github/workflows/automerge.yml
--- old/zipp-3.4.1/.github/workflows/automerge.yml      2021-03-05 
03:41:41.000000000 +0100
+++ new/zipp-3.5.0/.github/workflows/automerge.yml      1970-01-01 
01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-name: automerge
-on:
-  pull_request:
-    types:
-      - labeled
-      - unlabeled
-      - synchronize
-      - opened
-      - edited
-      - ready_for_review
-      - reopened
-      - unlocked
-  pull_request_review:
-    types:
-      - submitted
-  check_suite:
-    types:
-      - completed
-  status: {}
-jobs:
-  automerge:
-    runs-on: ubuntu-latest
-    steps:
-      - name: automerge
-        uses: "pascalgn/automerge-action@v0.12.0"
-        env:
-          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/.github/workflows/main.yml 
new/zipp-3.5.0/.github/workflows/main.yml
--- old/zipp-3.4.1/.github/workflows/main.yml   2021-03-05 03:41:41.000000000 
+0100
+++ new/zipp-3.5.0/.github/workflows/main.yml   2021-07-03 01:51:21.000000000 
+0200
@@ -6,7 +6,10 @@
   test:
     strategy:
       matrix:
-        python: [3.6, 3.8, 3.9]
+        python:
+        - 3.6
+        - 3.9
+        - 3.10.0-alpha - 3.10.99
         platform: [ubuntu-latest, macos-latest, windows-latest]
     runs-on: ${{ matrix.platform }}
     steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/CHANGES.rst new/zipp-3.5.0/CHANGES.rst
--- old/zipp-3.4.1/CHANGES.rst  2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/CHANGES.rst  2021-07-03 01:51:21.000000000 +0200
@@ -1,3 +1,14 @@
+v3.5.0
+======
+
+#74 and bpo-44095: Added ``.suffix``, ``.suffixes``,
+and ``.stem`` properties.
+
+v3.4.2
+======
+
+Refresh package metadata.
+
 v3.4.1
 ======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/zipp-3.4.1/Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
 
new/zipp-3.5.0/Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
--- 
old/zipp-3.4.1/Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/zipp-3.5.0/Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
    2021-07-03 01:51:21.000000000 +0200
@@ -0,0 +1,2 @@
+:class:`zipfile.Path` now supports :attr:`zipfile.Path.stem`,
+:attr:`zipfile.Path.suffixes`, and :attr:`zipfile.Path.suffix` attributes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/PKG-INFO new/zipp-3.5.0/PKG-INFO
--- old/zipp-3.4.1/PKG-INFO     2021-03-05 03:42:05.687941300 +0100
+++ new/zipp-3.5.0/PKG-INFO     2021-07-03 01:51:39.542740600 +0200
@@ -1,34 +1,11 @@
 Metadata-Version: 2.1
 Name: zipp
-Version: 3.4.1
+Version: 3.5.0
 Summary: Backport of pathlib-compatible object wrapper for zip files
 Home-page: https://github.com/jaraco/zipp
 Author: Jason R. Coombs
 Author-email: jar...@jaraco.com
 License: UNKNOWN
-Description: .. image:: https://img.shields.io/pypi/v/zipp.svg
-           :target: `PyPI link`_
-        
-        .. image:: https://img.shields.io/pypi/pyversions/zipp.svg
-           :target: `PyPI link`_
-        
-        .. _PyPI link: https://pypi.org/project/zipp
-        
-        .. image:: https://github.com/jaraco/zipp/workflows/tests/badge.svg
-           :target: 
https://github.com/jaraco/zipp/actions?query=workflow%3A%22tests%22
-           :alt: tests
-        
-        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
-           :target: https://github.com/psf/black
-           :alt: Code style: Black
-        
-        .. .. image:: 
https://readthedocs.org/projects/zipp/badge/?version=latest
-        ..    :target: https://zipp.readthedocs.io/en/latest/?badge=latest
-        
-        
-        A pathlib-compatible Zipfile object wrapper. A backport of the
-        `Path object 
<https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
@@ -38,3 +15,32 @@
 Requires-Python: >=3.6
 Provides-Extra: testing
 Provides-Extra: docs
+License-File: LICENSE
+
+.. image:: https://img.shields.io/pypi/v/zipp.svg
+   :target: `PyPI link`_
+
+.. image:: https://img.shields.io/pypi/pyversions/zipp.svg
+   :target: `PyPI link`_
+
+.. _PyPI link: https://pypi.org/project/zipp
+
+.. image:: https://github.com/jaraco/zipp/workflows/tests/badge.svg
+   :target: https://github.com/jaraco/zipp/actions?query=workflow%3A%22tests%22
+   :alt: tests
+
+.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+   :target: https://github.com/psf/black
+   :alt: Code style: Black
+
+.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest
+..    :target: https://skeleton.readthedocs.io/en/latest/?badge=latest
+
+.. image:: https://img.shields.io/badge/skeleton-2021-informational
+   :target: https://blog.jaraco.com/skeleton
+
+
+A pathlib-compatible Zipfile object wrapper. Official backport of the standard 
library
+`Path object <https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/README.rst new/zipp-3.5.0/README.rst
--- old/zipp-3.4.1/README.rst   2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/README.rst   2021-07-03 01:51:21.000000000 +0200
@@ -14,9 +14,12 @@
    :target: https://github.com/psf/black
    :alt: Code style: Black
 
-.. .. image:: https://readthedocs.org/projects/zipp/badge/?version=latest
-..    :target: https://zipp.readthedocs.io/en/latest/?badge=latest
+.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest
+..    :target: https://skeleton.readthedocs.io/en/latest/?badge=latest
 
+.. image:: https://img.shields.io/badge/skeleton-2021-informational
+   :target: https://blog.jaraco.com/skeleton
 
-A pathlib-compatible Zipfile object wrapper. A backport of the
+
+A pathlib-compatible Zipfile object wrapper. Official backport of the standard 
library
 `Path object <https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/docs/conf.py new/zipp-3.5.0/docs/conf.py
--- old/zipp-3.4.1/docs/conf.py 2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/docs/conf.py 2021-07-03 01:51:21.000000000 +0200
@@ -28,3 +28,6 @@
         ],
     )
 }
+
+# Be strict about any broken references:
+nitpicky = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/pytest.ini new/zipp-3.5.0/pytest.ini
--- old/zipp-3.4.1/pytest.ini   2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/pytest.ini   2021-07-03 01:51:21.000000000 +0200
@@ -5,3 +5,7 @@
 # workaround for warning pytest-dev/pytest#6178
 junit_family=xunit2
 filterwarnings=
+       # Suppress deprecation warning in flake8
+       ignore:SelectableGroups dict interface is deprecated::flake8
+       # Suppress deprecation warning in pypa/packaging#433
+       ignore:The distutils package is deprecated::packaging.tags
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/setup.cfg new/zipp-3.5.0/setup.cfg
--- old/zipp-3.4.1/setup.cfg    2021-03-05 03:42:05.687941300 +0100
+++ new/zipp-3.5.0/setup.cfg    2021-07-03 01:51:39.542740600 +0200
@@ -20,7 +20,6 @@
 include_package_data = true
 python_requires = >=3.6
 install_requires = 
-setup_requires = setuptools_scm[toml] >= 3.4.1
 
 [options.packages.find]
 exclude = 
@@ -32,12 +31,12 @@
 [options.extras_require]
 testing = 
        pytest >= 4.6
-       pytest-checkdocs >= 1.2.3
+       pytest-checkdocs >= 2.4
        pytest-flake8
-       pytest-black >= 0.3.7; python_implementation != "PyPy"
+       pytest-black >= 0.3.7; python_implementation != "PyPy" and 
python_version < "3.10"
        pytest-cov
-       pytest-mypy; python_implementation != "PyPy"
-       pytest-enabler
+       pytest-mypy; python_implementation != "PyPy" and python_version < "3.10"
+       pytest-enabler >= 1.0.1
        
        jaraco.itertools
        func-timeout
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/skeleton.md new/zipp-3.5.0/skeleton.md
--- old/zipp-3.4.1/skeleton.md  2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/skeleton.md  1970-01-01 01:00:00.000000000 +0100
@@ -1,166 +0,0 @@
-# Overview
-
-This project is merged with [skeleton](https://github.com/jaraco/skeleton). 
What is skeleton? It's the scaffolding of a Python project jaraco [introduced 
in his blog](https://blog.jaraco.com/a-project-skeleton-for-python-projects/). 
It seeks to provide a means to re-use techniques and inherit advances when 
managing projects for distribution.
-
-## An SCM-Managed Approach
-
-While maintaining dozens of projects in PyPI, jaraco derives best practices 
for project distribution and publishes them in the [skeleton 
repo](https://github.com/jaraco/skeleton), a Git repo capturing the evolution 
and culmination of these best practices.
-
-It's intended to be used by a new or existing project to adopt these practices 
and honed and proven techniques. Adopters are encouraged to use the project 
directly and maintain a small deviation from the technique, make their own fork 
for more substantial changes unique to their environment or preferences, or 
simply adopt the skeleton once and abandon it thereafter.
-
-The primary advantage to using an SCM for maintaining these techniques is that 
those tools help facilitate the merge between the template and its adopting 
projects.
-
-Another advantage to using an SCM-managed approach is that tools like GitHub 
recognize that a change in the skeleton is the _same change_ across all 
projects that merge with that skeleton. Without the ancestry, with a 
traditional copy/paste approach, a [commit like 
this](https://github.com/jaraco/skeleton/commit/12eed1326e1bc26ce256e7b3f8cd8d3a5beab2d5)
 would produce notifications in the upstream project issue for each and every 
application, but because it's centralized, GitHub provides just the one 
notification when the change is added to the skeleton.
-
-# Usage
-
-## new projects
-
-To use skeleton for a new project, simply pull the skeleton into a new project:
-
-```
-$ git init my-new-project
-$ cd my-new-project
-$ git pull gh://jaraco/skeleton
-```
-
-Now customize the project to suit your individual project needs.
-
-## existing projects
-
-If you have an existing project, you can still incorporate the skeleton by 
merging it into the codebase.
-
-```
-$ git merge skeleton --allow-unrelated-histories
-```
-
-The `--allow-unrelated-histories` is necessary because the history from the 
skeleton was previously unrelated to the existing codebase. Resolve any merge 
conflicts and commit to the master, and now the project is based on the shared 
skeleton.
-
-## Updating
-
-Whenever a change is needed or desired for the general technique for 
packaging, it can be made in the skeleton project and then merged into each of 
the derived projects as needed, recommended before each release. As a result, 
features and best practices for packaging are centrally maintained and readily 
trickle into a whole suite of packages. This technique lowers the amount of 
tedious work necessary to create or maintain a project, and coupled with other 
techniques like continuous integration and deployment, lowers the cost of 
creating and maintaining refined Python projects to just a few, familiar Git 
operations.
-
-For example, here's a session of the [path 
project](https://pypi.org/project/path) pulling non-conflicting changes from 
the skeleton:
-
-<img 
src="https://raw.githubusercontent.com/jaraco/skeleton/gh-pages/docs/refresh.svg";>
-
-Thereafter, the target project can make whatever customizations it deems 
relevant to the scaffolding. The project may even at some point decide that the 
divergence is too great to merit renewed merging with the original skeleton. 
This approach applies maximal guidance while creating minimal constraints.
-
-## Periodic Collapse
-
-In late 2020, this project 
[introduced](https://github.com/jaraco/skeleton/issues/27) the idea of a 
periodic but infrequent (O(years)) collapse of commits to limit the number of 
commits a new consumer will need to accept to adopt the skeleton.
-
-The full history of commits is collapsed into a single commit and that commit 
becomes the new mainline head.
-
-When one of these collapse operations happens, any project that previously 
pulled from the skeleton will no longer have a related history with that new 
main branch. For those projects, the skeleton provides a "handoff" branch that 
reconciles the two branches. Any project that has previously merged with the 
skeleton but now gets an error "fatal: refusing to merge unrelated histories" 
should instead use the handoff branch once to incorporate the new main branch.
-
-```
-$ git pull https://github.com/jaraco/skeleton 2020-handoff
-```
-
-This handoff needs to be pulled just once and thereafter the project can pull 
from the main head.
-
-The archive and handoff branches from prior collapses are indicate here:
-
-| refresh | archive         | handoff      |
-|---------|-----------------|--------------|
-| 2020-12 | archive/2020-12 | 2020-handoff |
-
-# Features
-
-The features/techniques employed by the skeleton include:
-
-- PEP 517/518-based build relying on Setuptools as the build tool
-- Setuptools declarative configuration using setup.cfg
-- tox for running tests
-- A README.rst as reStructuredText with some popular badges, but with Read the 
Docs and AppVeyor badges commented out
-- A CHANGES.rst file intended for publishing release notes about the project
-- Use of [Black](https://black.readthedocs.io/en/stable/) for code formatting 
(disabled on unsupported Python 3.5 and earlier)
-- Integrated type checking through [mypy](https://github.com/python/mypy/).
-
-## Packaging Conventions
-
-A pyproject.toml is included to enable PEP 517 and PEP 518 compatibility and 
declares the requirements necessary to build the project on Setuptools (a 
minimum version compatible with setup.cfg declarative config).
-
-The setup.cfg file implements the following features:
-
-- Assumes universal wheel for release
-- Advertises the project's LICENSE file (MIT by default)
-- Reads the README.rst file into the long description
-- Some common Trove classifiers
-- Includes all packages discovered in the repo
-- Data files in the package are also included (not just Python files)
-- Declares the required Python versions
-- Declares install requirements (empty by default)
-- Declares setup requirements for legacy environments
-- Supplies two 'extras':
-  - testing: requirements for running tests
-  - docs: requirements for building docs
-  - these extras split the declaration into "upstream" (requirements as 
declared by the skeleton) and "local" (those specific to the local project); 
these markers help avoid merge conflicts
-- Placeholder for defining entry points
-
-Additionally, the setup.py file declares `use_scm_version` which relies on 
[setuptools_scm](https://pypi.org/project/setuptools_scm) to do two things:
-
-- derive the project version from SCM tags
-- ensure that all files committed to the repo are automatically included in 
releases
-
-## Running Tests
-
-The skeleton assumes the developer has [tox](https://pypi.org/project/tox) 
installed. The developer is expected to run `tox` to run tests on the current 
Python version using [pytest](https://pypi.org/project/pytest).
-
-Other environments (invoked with `tox -e {name}`) supplied include:
-
-  - a `docs` environment to build the documentation
-  - a `release` environment to publish the package to PyPI
-
-A pytest.ini is included to define common options around running tests. In 
particular:
-
-- rely on default test discovery in the current directory
-- avoid recursing into common directories not containing tests
-- run doctests on modules and invoke Flake8 tests
-- in doctests, allow Unicode literals and regular literals to match, allowing 
for doctests to run on Python 2 and 3. Also enable ELLIPSES, a default that 
would be undone by supplying the prior option.
-- filters out known warnings caused by libraries/functionality included by the 
skeleton
-
-Relies on a .flake8 file to correct some default behaviors:
-
-- disable mutually incompatible rules W503 and W504
-- support for Black format
-
-## Continuous Integration
-
-The project is pre-configured to run Continuous Integration tests.
-
-### Github Actions
-
-[Github Actions](https://docs.github.com/en/free-pro-team@latest/actions) are 
the preferred provider as they provide free, fast, multi-platform services with 
straightforward configuration. Configured in `.github/workflows`.
-
-Features include:
-- test against multiple Python versions
-- run on late (and updated) platform versions
-- automated releases of tagged commits
-- [automatic merging of 
PRs](https://github.com/marketplace/actions/merge-pull-requests) (requires 
[protecting branches with required status 
checks](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/enabling-required-status-checks),
 [not possible through 
API](https://github.community/t/set-all-status-checks-to-be-required-as-branch-protection-using-the-github-api/119493))
-
-
-### Continuous Deployments
-
-In addition to running tests, an additional publish stage is configured to 
automatically release tagged commits to PyPI using [API 
tokens](https://pypi.org/help/#apitoken). The release process expects an 
authorized token to be configured with each Github project (or org) 
`PYPI_TOKEN` 
[secret](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets).
 Example:
-
-```
-pip-run -q jaraco.develop -- -m jaraco.develop.add-github-secrets
-```
-
-## Building Documentation
-
-Documentation is automatically built by [Read the 
Docs](https://readthedocs.org) when the project is registered with it, by way 
of the .readthedocs.yml file. To test the docs build manually, a tox env may be 
invoked as `tox -e docs`. Both techniques rely on the dependencies declared in 
`setup.cfg/options.extras_require.docs`.
-
-In addition to building the Sphinx docs scaffolded in `docs/`, the docs build 
a `history.html` file that first injects release dates and hyperlinks into the 
CHANGES.rst before incorporating it as history in the docs.
-
-## Cutting releases
-
-By default, tagged commits are released through the continuous integration 
deploy stage.
-
-Releases may also be cut manually by invoking the tox environment `release` 
with the PyPI token set as the TWINE_PASSWORD:
-
-```
-TWINE_PASSWORD={token} tox -e release
-```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/test_zipp.py new/zipp-3.5.0/test_zipp.py
--- old/zipp-3.4.1/test_zipp.py 2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/test_zipp.py 2021-07-03 01:51:21.000000000 +0200
@@ -328,6 +328,64 @@
         assert root.name == 'alpharep.zip' == root.filename.name
 
     @pass_alpharep
+    def test_suffix(self, alpharep):
+        """
+        The suffix of the root should be the suffix of the zipfile.
+        The suffix of each nested file is the final component's last suffix, 
if any.
+        Includes the leading period, just like pathlib.Path.
+        """
+        root = zipp.Path(alpharep)
+        assert root.suffix == '.zip' == root.filename.suffix
+
+        b = root / "b.txt"
+        assert b.suffix == ".txt"
+
+        c = root / "c" / "filename.tar.gz"
+        assert c.suffix == ".gz"
+
+        d = root / "d"
+        assert d.suffix == ""
+
+    @pass_alpharep
+    def test_suffixes(self, alpharep):
+        """
+        The suffix of the root should be the suffix of the zipfile.
+        The suffix of each nested file is the final component's last suffix, 
if any.
+        Includes the leading period, just like pathlib.Path.
+        """
+        root = zipp.Path(alpharep)
+        assert root.suffixes == ['.zip'] == root.filename.suffixes
+
+        b = root / 'b.txt'
+        assert b.suffixes == ['.txt']
+
+        c = root / 'c' / 'filename.tar.gz'
+        assert c.suffixes == ['.tar', '.gz']
+
+        d = root / 'd'
+        assert d.suffixes == []
+
+        e = root / '.hgrc'
+        assert e.suffixes == []
+
+    @pass_alpharep
+    def test_stem(self, alpharep):
+        """
+        The final path component, without its suffix
+        """
+        root = zipp.Path(alpharep)
+        assert root.stem == 'alpharep' == root.filename.stem
+
+        b = root / "b.txt"
+        assert b.stem == "b"
+
+        c = root / "c" / "filename.tar.gz"
+        assert c.stem == "filename.tar"
+
+        d = root / "d"
+        assert d.stem == "d"
+
+    @pass_alpharep
     def test_root_parent(self, alpharep):
         root = zipp.Path(alpharep)
         assert root.parent == pathlib.Path('.')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/tox.ini new/zipp-3.5.0/tox.ini
--- old/zipp-3.4.1/tox.ini      2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/tox.ini      2021-07-03 01:51:21.000000000 +0200
@@ -21,14 +21,13 @@
        testing
 changedir = docs
 commands =
-       python -m sphinx . {toxinidir}/build/html
+       python -m sphinx -W --keep-going . {toxinidir}/build/html
 
 [testenv:release]
 skip_install = True
 deps =
        build
-       twine[keyring]>=1.13
-       path
+       twine>=3
        jaraco.develop>=7.1
 passenv =
        TWINE_PASSWORD
@@ -36,7 +35,7 @@
 setenv =
        TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
 commands =
-       python -c "import path; path.Path('dist').rmtree_p()"
+       python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
        python -m build
        python -m twine upload dist/*
        python -m jaraco.develop.create-github-release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/zipp.egg-info/PKG-INFO 
new/zipp-3.5.0/zipp.egg-info/PKG-INFO
--- old/zipp-3.4.1/zipp.egg-info/PKG-INFO       2021-03-05 03:42:05.000000000 
+0100
+++ new/zipp-3.5.0/zipp.egg-info/PKG-INFO       2021-07-03 01:51:39.000000000 
+0200
@@ -1,34 +1,11 @@
 Metadata-Version: 2.1
 Name: zipp
-Version: 3.4.1
+Version: 3.5.0
 Summary: Backport of pathlib-compatible object wrapper for zip files
 Home-page: https://github.com/jaraco/zipp
 Author: Jason R. Coombs
 Author-email: jar...@jaraco.com
 License: UNKNOWN
-Description: .. image:: https://img.shields.io/pypi/v/zipp.svg
-           :target: `PyPI link`_
-        
-        .. image:: https://img.shields.io/pypi/pyversions/zipp.svg
-           :target: `PyPI link`_
-        
-        .. _PyPI link: https://pypi.org/project/zipp
-        
-        .. image:: https://github.com/jaraco/zipp/workflows/tests/badge.svg
-           :target: 
https://github.com/jaraco/zipp/actions?query=workflow%3A%22tests%22
-           :alt: tests
-        
-        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
-           :target: https://github.com/psf/black
-           :alt: Code style: Black
-        
-        .. .. image:: 
https://readthedocs.org/projects/zipp/badge/?version=latest
-        ..    :target: https://zipp.readthedocs.io/en/latest/?badge=latest
-        
-        
-        A pathlib-compatible Zipfile object wrapper. A backport of the
-        `Path object 
<https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
@@ -38,3 +15,32 @@
 Requires-Python: >=3.6
 Provides-Extra: testing
 Provides-Extra: docs
+License-File: LICENSE
+
+.. image:: https://img.shields.io/pypi/v/zipp.svg
+   :target: `PyPI link`_
+
+.. image:: https://img.shields.io/pypi/pyversions/zipp.svg
+   :target: `PyPI link`_
+
+.. _PyPI link: https://pypi.org/project/zipp
+
+.. image:: https://github.com/jaraco/zipp/workflows/tests/badge.svg
+   :target: https://github.com/jaraco/zipp/actions?query=workflow%3A%22tests%22
+   :alt: tests
+
+.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+   :target: https://github.com/psf/black
+   :alt: Code style: Black
+
+.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest
+..    :target: https://skeleton.readthedocs.io/en/latest/?badge=latest
+
+.. image:: https://img.shields.io/badge/skeleton-2021-informational
+   :target: https://blog.jaraco.com/skeleton
+
+
+A pathlib-compatible Zipfile object wrapper. Official backport of the standard 
library
+`Path object <https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/zipp.egg-info/SOURCES.txt 
new/zipp-3.5.0/zipp.egg-info/SOURCES.txt
--- old/zipp-3.4.1/zipp.egg-info/SOURCES.txt    2021-03-05 03:42:05.000000000 
+0100
+++ new/zipp-3.5.0/zipp.egg-info/SOURCES.txt    2021-07-03 01:51:39.000000000 
+0200
@@ -12,12 +12,12 @@
 pytest.ini
 setup.cfg
 setup.py
-skeleton.md
 test_zipp.py
 tox.ini
 zipp.py
-.github/workflows/automerge.yml
+.github/dependabot.yml
 .github/workflows/main.yml
+Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
 docs/conf.py
 docs/history.rst
 docs/index.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/zipp.egg-info/requires.txt 
new/zipp-3.5.0/zipp.egg-info/requires.txt
--- old/zipp-3.4.1/zipp.egg-info/requires.txt   2021-03-05 03:42:05.000000000 
+0100
+++ new/zipp-3.5.0/zipp.egg-info/requires.txt   2021-07-03 01:51:39.000000000 
+0200
@@ -6,13 +6,13 @@
 
 [testing]
 pytest>=4.6
-pytest-checkdocs>=1.2.3
+pytest-checkdocs>=2.4
 pytest-flake8
 pytest-cov
-pytest-enabler
+pytest-enabler>=1.0.1
 jaraco.itertools
 func-timeout
 
-[testing:platform_python_implementation != "PyPy"]
+[testing:platform_python_implementation != "PyPy" and python_version < "3.10"]
 pytest-black>=0.3.7
 pytest-mypy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/zipp.egg-info/top_level.txt 
new/zipp-3.5.0/zipp.egg-info/top_level.txt
--- old/zipp-3.4.1/zipp.egg-info/top_level.txt  2021-03-05 03:42:05.000000000 
+0100
+++ new/zipp-3.5.0/zipp.egg-info/top_level.txt  2021-07-03 01:51:39.000000000 
+0200
@@ -1 +1,2 @@
+Misc
 zipp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zipp-3.4.1/zipp.py new/zipp-3.5.0/zipp.py
--- old/zipp-3.4.1/zipp.py      2021-03-05 03:41:41.000000000 +0100
+++ new/zipp-3.5.0/zipp.py      2021-07-03 01:51:21.000000000 +0200
@@ -260,6 +260,18 @@
         return pathlib.Path(self.at).name or self.filename.name
 
     @property
+    def suffix(self):
+        return pathlib.Path(self.at).suffix or self.filename.suffix
+
+    @property
+    def suffixes(self):
+        return pathlib.Path(self.at).suffixes or self.filename.suffixes
+
+    @property
+    def stem(self):
+        return pathlib.Path(self.at).stem or self.filename.stem
+
+    @property
     def filename(self):
         return pathlib.Path(self.root.filename).joinpath(self.at)
 

Reply via email to