Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit python-jaraco.itertools for openSUSE:Factory
Hello community,

here is the log from the commit of package python-jaraco.itertools for
openSUSE:Factory checked in at 2019-04-08 20:53:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.itertools (Old)
and /work/SRC/openSUSE:Factory/.python-jaraco.itertools.new.3908 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jaraco.itertools"

Mon Apr 8 20:53:04 2019 rev:3 rq:691788 version:4.4.2

Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jaraco.itertools/python-jaraco.itertools.changes
2019-03-04 09:21:28.716589068 +0100
+++
/work/SRC/openSUSE:Factory/.python-jaraco.itertools.new.3908/python-jaraco.itertools.changes
2019-04-08 20:53:07.586550315 +0200
@@ -1,0 +2,6 @@
+Fri Apr 5 11:25:30 UTC 2019 - Tomáš Chvátal <tchvatal@xxxxxxxx>
+
+- Update to 4.4.2:
+ * Fixed RuntimeError in takewhile_peek on later Pythons where StopIteration
is no longer allowed in a generator.
+
+-------------------------------------------------------------------

Old:
----
jaraco.itertools-4.4.1.tar.gz

New:
----
jaraco.itertools-4.4.2.tar.gz

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

Other differences:
------------------
++++++ python-jaraco.itertools.spec ++++++
--- /var/tmp/diff_new_pack.dR9tWJ/_old 2019-04-08 20:53:08.162550738 +0200
+++ /var/tmp/diff_new_pack.dR9tWJ/_new 2019-04-08 20:53:08.166550741 +0200
@@ -18,12 +18,12 @@

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jaraco.itertools
-Version: 4.4.1
+Version: 4.4.2
Release: 0
Summary: Tools to work with iterables
License: MIT
Group: Development/Languages/Python
-Url: https://github.com/jaraco/jaraco.itertools
+URL: https://github.com/jaraco/jaraco.itertools
Source0:
https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
BuildRequires: %{python_module inflect}
BuildRequires: %{python_module jaraco.base >= 6.1}
@@ -39,7 +39,6 @@
Requires: python-more-itertools >= 4.0.0
Requires: python-six
BuildArch: noarch
-
%python_subpackages

%description
@@ -64,9 +63,7 @@
}

%check
-%{python_expand py.test-%{$python_bin_suffix} \
- --ignore=_build.python2 --ignore=_build.python3
-}
+%pytest

%files %{python_files}
%license LICENSE

++++++ jaraco.itertools-4.4.1.tar.gz -> jaraco.itertools-4.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/.flake8
new/jaraco.itertools-4.4.2/.flake8
--- old/jaraco.itertools-4.4.1/.flake8 2019-01-10 18:16:14.000000000 +0100
+++ new/jaraco.itertools-4.4.2/.flake8 2019-03-28 15:53:29.000000000 +0100
@@ -2,6 +2,8 @@
ignore =
# Allow tabs for indentation
W191
+ # Workaround for https://github.com/PyCQA/pycodestyle/issues/836
+ E117
# W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
W503
# W504 has issues
https://github.com/OCA/maintainer-quality-tools/issues/545
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/.travis.yml
new/jaraco.itertools-4.4.2/.travis.yml
--- old/jaraco.itertools-4.4.1/.travis.yml 2019-01-10 18:16:14.000000000
+0100
+++ new/jaraco.itertools-4.4.2/.travis.yml 2019-03-28 15:53:29.000000000
+0100
@@ -1,5 +1,4 @@
dist: xenial
-sudo: false
language: python

python:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/CHANGES.rst
new/jaraco.itertools-4.4.2/CHANGES.rst
--- old/jaraco.itertools-4.4.1/CHANGES.rst 2019-01-10 18:16:14.000000000
+0100
+++ new/jaraco.itertools-4.4.2/CHANGES.rst 2019-03-28 15:59:09.000000000
+0100
@@ -1,3 +1,9 @@
+4.4.2
+=====
+
+Fixed RuntimeError in takewhile_peek on later Pythons where
+StopIteration is no longer allowed in a generator.
+
4.4.1
=====

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/PKG-INFO
new/jaraco.itertools-4.4.2/PKG-INFO
--- old/jaraco.itertools-4.4.1/PKG-INFO 2019-01-10 18:16:34.000000000 +0100
+++ new/jaraco.itertools-4.4.2/PKG-INFO 2019-03-28 16:57:43.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jaraco.itertools
-Version: 4.4.1
+Version: 4.4.2
Summary: jaraco.itertools
Home-page: https://github.com/jaraco/jaraco.itertools
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/jaraco/itertools.py
new/jaraco.itertools-4.4.2/jaraco/itertools.py
--- old/jaraco.itertools-4.4.1/jaraco/itertools.py 2019-01-10
18:16:14.000000000 +0100
+++ new/jaraco.itertools-4.4.2/jaraco/itertools.py 2019-03-28
15:57:16.000000000 +0100
@@ -41,7 +41,11 @@
if partial:
num_rows += 1
# break the seq into num_columns of length num_rows
- result = more_itertools.grouper(num_rows, seq)
+ try:
+ result = more_itertools.grouper(seq, num_rows)
+ except TypeError:
+ # more_itertools before 6.x
+ result = more_itertools.grouper(num_rows, seq)
# result is now a list of columns... transpose it to return a list
# of rows
return zip(*result)
@@ -691,11 +695,32 @@

>>> list(items)
[4, 5, 6, 7, 8, 9]
+
+ >>> empty = takewhile_peek(is_small, Peekable([]))
+ >>> list(empty)
+ []
+
+ >>> items = Peekable([3])
+ >>> small_items = takewhile_peek(is_small, items)
+ >>> list(small_items)
+ [3]
+ >>> list(items)
+ []
+
+ >>> items = Peekable([4])
+ >>> small_items = takewhile_peek(is_small, items)
+ >>> list(small_items)
+ []
+ >>> list(items)
+ [4]
"""
while True:
- if not predicate(iterable.peek()):
+ try:
+ if not predicate(iterable.peek()):
+ break
+ yield next(iterable)
+ except StopIteration:
break
- yield next(iterable)


def first(iterable, *args):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.itertools-4.4.1/jaraco.itertools.egg-info/PKG-INFO
new/jaraco.itertools-4.4.2/jaraco.itertools.egg-info/PKG-INFO
--- old/jaraco.itertools-4.4.1/jaraco.itertools.egg-info/PKG-INFO
2019-01-10 18:16:33.000000000 +0100
+++ new/jaraco.itertools-4.4.2/jaraco.itertools.egg-info/PKG-INFO
2019-03-28 16:57:42.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jaraco.itertools
-Version: 4.4.1
+Version: 4.4.2
Summary: jaraco.itertools
Home-page: https://github.com/jaraco/jaraco.itertools
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.itertools-4.4.1/skeleton.md
new/jaraco.itertools-4.4.2/skeleton.md
--- old/jaraco.itertools-4.4.1/skeleton.md 2019-01-10 18:16:14.000000000
+0100
+++ new/jaraco.itertools-4.4.2/skeleton.md 2019-03-28 15:53:29.000000000
+0100
@@ -10,6 +10,8 @@

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


< Previous Next >
This Thread
  • No further messages