Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
zipp: Autospec creation for update from version 3.1.0 to version 3.2.0
Browse files Browse the repository at this point in the history
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 (tox-dev/tox-venv#48 (comment)) 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.
  • Loading branch information
fenrus75 committed Sep 23, 2020
1 parent 4ae62e4 commit 79b1094
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion buildreq_cache
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
3.1.0
3.2.0
setuptools
setuptools_scm-python
5 changes: 4 additions & 1 deletion options.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15
16
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4002f19d959b7de827b39265518b184140da6d6d/zipp-3.1.0.tar.gz
c54fde681399584ef990308807231ea245711d2f/zipp-3.2.0.tar.gz
2 changes: 1 addition & 1 deletion versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.2.0
48 changes: 12 additions & 36 deletions zipp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
:target: `PyPI link`_

%package license
Summary: license components for the zipp package.
Expand Down Expand Up @@ -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
Expand All @@ -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 || :
Expand Down

0 comments on commit 79b1094

Please sign in to comment.