From 79b1094e5e624f04aba5354b7ebd10a8ff97497f Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Wed, 23 Sep 2020 16:35:28 +0000 Subject: [PATCH] zipp: Autospec creation for update from version 3.1.0 to version 3.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jason R. Coombs (35): Update to bionic for Travis. Correct comment about IPv6 workaround. Suppress warnings in pytest-flake8, pytest-black, and pytest-checkdocs. Prefer pytest-black to pytest-black-multipy Test against Windows and Mac Define a default pool_vm_image Remove tox-venv and tox-pip-version. Tox-venv is discouraged (https://github.com/tox-dev/tox-venv/issues/48#issuecomment-620227405) and tox-pip-version was only there to support tox-venv. venv is dead; long live virtualenv. Remove more references to tox-venv Add workaround for warning emitted when junitxml is used. Ref pytest-dev/pytest#6178. Include mypy for type checking during tests. Ensure virtualenv is upgraded when installing tox. Fixes jaraco/path#188. Run tests on prereleases of Python on Windows. Fixes jaraco/skeleton#17. Add workaround for python/mypy#8627. Fixes jaraco/skeleton#18. Add 'refresh.svg' demonstrating an example of refreshing a project with the latest skeleton. Ref #7. Move workaround for python/mypy#8627 to tox.ini, as adding it to setup.cfg prevents releases to PyPI. Fixes jaraco/skeleton#19. Update comment to reflect correct class name. Remove workaround for python/mypy#8627. Ref jaraco/skeleton#18. Add test capturing issue reported in bpo-40564 Create Github releases when releasing the package. Fixes jaraco/skeleton#23. Moved refresh.svg to another branch. Reference the animation from the docs. Ref jaraco/skeleton#7. Add the env var mapping too. Disable pytest-black and pytest-mypy on PyPy. Fixes jaraco/skeleton#22. Ref pytest-dev/pytest#7675. Bump black and blacken-docs to latest stable versions. Instead of creating a copy of a any zipfile passed to Path, simply augment the behavior by replacing the class with a subclass. Use enabled plugin configuration to enable mypy and black when the plugin is present. Ref jaraco/skeleton#22. Also enable flake8 and cov when the plugins are present. Add a docstring explaining how the source zipfile is mutated. Update changelog. Restore running under pytest (still unittest compatibility). ⚫ Fade to black. Add unit test for iterdir on file. Add unit test for invalid args to open binary. Add unit test capturing expectation that a subclass type should be retained during traversal. Ref #56. Path subclasses now retain their type during traversal. Ref #56. Add test capturing missed expectation when is_file is invoked on a name not in the zipfile. Ref #55. Correct behavior of is_file to return False for non-existent files. Also fix two broken tests. Fixes #55. --- Makefile | 2 +- buildreq_cache | 2 +- options.conf | 5 ++++- release | 2 +- upstream | 2 +- versions | 2 +- zipp.spec | 48 ++++++++++++------------------------------------ 7 files changed, 21 insertions(+), 42 deletions(-) diff --git a/Makefile b/Makefile index 04f7c01..d7f9079 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKG_NAME := zipp -URL = https://files.pythonhosted.org/packages/ce/8c/2c5f7dc1b418f659d36c04dec9446612fc7b45c8095cc7369dd772513055/zipp-3.1.0.tar.gz +URL = https://files.pythonhosted.org/packages/30/a3/a67b64feac23b22c71ca2a4084387a6f205dc7cb4f0c67c755d6a4b29a7f/zipp-3.2.0.tar.gz ARCHIVES = include ../common/Makefile.common diff --git a/buildreq_cache b/buildreq_cache index 84d759c..ec4b4f1 100644 --- a/buildreq_cache +++ b/buildreq_cache @@ -1,3 +1,3 @@ -3.1.0 +3.2.0 setuptools setuptools_scm-python \ No newline at end of file diff --git a/options.conf b/options.conf index 8f748d9..319d916 100644 --- a/options.conf +++ b/options.conf @@ -1,9 +1,10 @@ [package] name = zipp -url = https://files.pythonhosted.org/packages/ce/8c/2c5f7dc1b418f659d36c04dec9446612fc7b45c8095cc7369dd772513055/zipp-3.1.0.tar.gz +url = https://files.pythonhosted.org/packages/30/a3/a67b64feac23b22c71ca2a4084387a6f205dc7cb4f0c67c755d6a4b29a7f/zipp-3.2.0.tar.gz archives = giturl = https://github.com/jaraco/zipp.git domain = +alias = [autospec] # build 32 bit libraries @@ -38,6 +39,8 @@ no_autostart = false nodebug = false # disable stripping binaries nostrip = false +# configure build also for openmpi +openmpi = false # optimize build for size over speed optimize_size = false # set profile for pgo diff --git a/release b/release index 60d3b2f..b6a7d89 100644 --- a/release +++ b/release @@ -1 +1 @@ -15 +16 diff --git a/upstream b/upstream index d9b93cd..348e511 100644 --- a/upstream +++ b/upstream @@ -1 +1 @@ -4002f19d959b7de827b39265518b184140da6d6d/zipp-3.1.0.tar.gz +c54fde681399584ef990308807231ea245711d2f/zipp-3.2.0.tar.gz diff --git a/versions b/versions index fd2a018..944880f 100644 --- a/versions +++ b/versions @@ -1 +1 @@ -3.1.0 +3.2.0 diff --git a/zipp.spec b/zipp.spec index 65a9844..8b6b06f 100644 --- a/zipp.spec +++ b/zipp.spec @@ -3,10 +3,10 @@ # Generated by: autospec.py # Name : zipp -Version : 3.1.0 -Release : 15 -URL : https://files.pythonhosted.org/packages/ce/8c/2c5f7dc1b418f659d36c04dec9446612fc7b45c8095cc7369dd772513055/zipp-3.1.0.tar.gz -Source0 : https://files.pythonhosted.org/packages/ce/8c/2c5f7dc1b418f659d36c04dec9446612fc7b45c8095cc7369dd772513055/zipp-3.1.0.tar.gz +Version : 3.2.0 +Release : 16 +URL : https://files.pythonhosted.org/packages/30/a3/a67b64feac23b22c71ca2a4084387a6f205dc7cb4f0c67c755d6a4b29a7f/zipp-3.2.0.tar.gz +Source0 : https://files.pythonhosted.org/packages/30/a3/a67b64feac23b22c71ca2a4084387a6f205dc7cb4f0c67c755d6a4b29a7f/zipp-3.2.0.tar.gz Summary : Backport of pathlib-compatible object wrapper for zip files Group : Development/Tools License : MIT @@ -24,32 +24,9 @@ BuildRequires : virtualenv %description .. image:: https://img.shields.io/pypi/v/zipp.svg - :target: `PyPI link`_ - +:target: `PyPI link`_ .. image:: https://img.shields.io/pypi/pyversions/zipp.svg - :target: `PyPI link`_ - -.. _PyPI link: https://pypi.org/project/zipp - -.. image:: https://dev.azure.com/jaraco/zipp/_apis/build/status/jaraco.zipp?branchName=master - :target: https://dev.azure.com/jaraco/zipp/_build/latest?definitionId=1&branchName=master - -.. image:: https://img.shields.io/travis/jaraco/zipp/master.svg - :target: https://travis-ci.org/jaraco/zipp - -.. image:: https://img.shields.io/badge/code%20style-black-000000.svg - :target: https://github.com/psf/black - :alt: Code style: Black - -.. image:: https://img.shields.io/appveyor/ci/jaraco/zipp/master.svg - :target: https://ci.appveyor.com/project/jaraco/zipp/branch/master - -.. .. 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 `_. +:target: `PyPI link`_ %package license Summary: license components for the zipp package. @@ -79,23 +56,22 @@ python3 components for the zipp package. %prep -%setup -q -n zipp-3.1.0 -cd %{_builddir}/zipp-3.1.0 +%setup -q -n zipp-3.2.0 +cd %{_builddir}/zipp-3.2.0 %build export http_proxy=http://127.0.0.1:9/ export https_proxy=http://127.0.0.1:9/ export no_proxy=localhost,127.0.0.1,0.0.0.0 export LANG=C.UTF-8 -export SOURCE_DATE_EPOCH=1583254152 -# -Werror is for werrorists +export SOURCE_DATE_EPOCH=1600878924 export GCC_IGNORE_WERROR=1 export AR=gcc-ar export RANLIB=gcc-ranlib export NM=gcc-nm export CFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=4 " -export FCFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=4 " -export FFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=4 " +export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 " +export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 " export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=4 " export MAKEFLAGS=%{?_smp_mflags} python3 setup.py build @@ -104,7 +80,7 @@ python3 setup.py build export MAKEFLAGS=%{?_smp_mflags} rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/package-licenses/zipp -cp %{_builddir}/zipp-3.1.0/LICENSE %{buildroot}/usr/share/package-licenses/zipp/8e6689d37f82d5617b7f7f7232c94024d41066d1 +cp %{_builddir}/zipp-3.2.0/LICENSE %{buildroot}/usr/share/package-licenses/zipp/8e6689d37f82d5617b7f7f7232c94024d41066d1 python3 -tt setup.py build install --root=%{buildroot} echo ----[ mark ]---- cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :