pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-more-itertools py-more-itertools: update to 7...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/370122bba875
branches:  trunk
changeset: 417780:370122bba875
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Nov 15 14:22:30 2019 +0000

description:
py-more-itertools: update to 7.2.0.

7.2.0
-----

* New itertools
    * :func:`distinct_combinations`
    * :func:`set_partitions` (thanks to kbarrett)
    * :func:`filter_except`
    * :func:`map_except`

7.1.0
-----

* New itertools
    * :func:`ichunked` (thanks davebelais and youtux)
    * :func:`only` (thanks jaraco)

* Changes to existing itertools:
    * :func:`numeric_range` now supports ranges specified by
      ``datetime.datetime`` and ``datetime.timedelta`` objects (thanks to MSeifert04 for tests).
    * :func:`difference` now supports an *initial* keyword argument.


* Other changes
    * Various documentation fixes (thanks raimon49, pylang)

7.0.0
-----

* New itertools:
    * :func:`time_limited`
    * :func:`partitions` (thanks to rominf and Saluev)
    * :func:`substrings_indexes` (thanks to rominf)

* Changes to existing itertools:
    * :func:`collapse` now treats ``bytes`` objects the same as ``str`` objects. (thanks to Sweenpet)

The major version update is due to the change in the default behavior of
:func:`collapse`. It now treats ``bytes`` objects the same as ``str`` objects.
This aligns its behavior with :func:`always_iterable`.

.. code-block:: python

    >>> from more_itertools import collapse
    >>> iterable = [[1, 2], b'345', [6]]
    >>> print(list(collapse(iterable)))
    [1, 2, b'345', 6]

6.0.0
-----

* Major changes:
    * Python 2.7 is no longer supported. The 5.0.0 release will be the last
      version targeting Python 2.7.
    * All future releases will target the active versions of Python 3.
      As of 2019, those are Python 3.4 and above.
    * The ``six`` library is no longer a dependency.
    * The :func:`accumulate` function is no longer part of this library. You
      may import a better version from the standard ``itertools`` module.

* Changes to existing itertools:
    * The order of the parameters in :func:`grouper` have changed to match
      the latest recipe in the itertools documentation. Use of the old order
      will be supported in this release, but emit a  ``DeprecationWarning``.
      The legacy behavior will be dropped in a future release. (thanks to jaraco)
    * :func:`distinct_permutations` was improved (thanks to jferard - see also `permutations with unique values <https://stackoverflow.com/questions/6284396/permutations-with-unique-values>`_ at 
StackOverflow.)
    * An unused parameter was removed from :func:`substrings`. (thanks to pylang)

* Other changes:
    * The docs for :func:`unique_everseen` were improved. (thanks to jferard and MSeifert04)
    * Several Python 2-isms were removed. (thanks to jaraco, MSeifert04, and hugovk)

diffstat:

 devel/py-more-itertools/DESCR    |   4 ++--
 devel/py-more-itertools/Makefile |   6 +++---
 devel/py-more-itertools/PLIST    |   3 +--
 devel/py-more-itertools/distinfo |  10 +++++-----
 4 files changed, 11 insertions(+), 12 deletions(-)

diffs (57 lines):

diff -r b5b38f87cb33 -r 370122bba875 devel/py-more-itertools/DESCR
--- a/devel/py-more-itertools/DESCR     Fri Nov 15 14:22:15 2019 +0000
+++ b/devel/py-more-itertools/DESCR     Fri Nov 15 14:22:30 2019 +0000
@@ -1,2 +1,2 @@
-A collection of several routines not found in itertools, meant to operate on
-itertables.
+A collection of several routines not found in itertools, meant to
+operate on itertables.
diff -r b5b38f87cb33 -r 370122bba875 devel/py-more-itertools/Makefile
--- a/devel/py-more-itertools/Makefile  Fri Nov 15 14:22:15 2019 +0000
+++ b/devel/py-more-itertools/Makefile  Fri Nov 15 14:22:30 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2019/01/22 09:45:22 adam Exp $
+# $NetBSD: Makefile,v 1.11 2019/11/15 14:22:30 wiz Exp $
 
-DISTNAME=      more-itertools-5.0.0
+DISTNAME=      more-itertools-7.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/more-itertools/}
@@ -10,7 +10,7 @@
 COMMENT=       More routines for operating on iterables, beyond itertools
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-six>=1.0.0:../../lang/py-six
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 USE_LANGUAGES= # none
 
diff -r b5b38f87cb33 -r 370122bba875 devel/py-more-itertools/PLIST
--- a/devel/py-more-itertools/PLIST     Fri Nov 15 14:22:15 2019 +0000
+++ b/devel/py-more-itertools/PLIST     Fri Nov 15 14:22:30 2019 +0000
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.3 2017/10/13 07:58:57 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/11/15 14:22:30 wiz Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/more_itertools/__init__.py
 ${PYSITELIB}/more_itertools/__init__.pyc
diff -r b5b38f87cb33 -r 370122bba875 devel/py-more-itertools/distinfo
--- a/devel/py-more-itertools/distinfo  Fri Nov 15 14:22:15 2019 +0000
+++ b/devel/py-more-itertools/distinfo  Fri Nov 15 14:22:30 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2019/01/22 09:45:22 adam Exp $
+$NetBSD: distinfo,v 1.9 2019/11/15 14:22:30 wiz Exp $
 
-SHA1 (more-itertools-5.0.0.tar.gz) = a5c9330ecc3e86b45f6d675ac7405a9d55d0582f
-RMD160 (more-itertools-5.0.0.tar.gz) = d577e4f1ab2f842de4b462f27be160b89285f696
-SHA512 (more-itertools-5.0.0.tar.gz) = f72c8d6c75799c39708443ba75862801ddd3fc0382c9eee7ed24ecf04cbc7d9ff6a8e35b6fff1eaccf45ddd470c2cc8959532eca32c2ff50b0a12588727c68b4
-Size (more-itertools-5.0.0.tar.gz) = 67359 bytes
+SHA1 (more-itertools-7.2.0.tar.gz) = 99d97115bb2fa07a9d253986c8c3172550042143
+RMD160 (more-itertools-7.2.0.tar.gz) = 6670cda718be6be8f3ed1c993341eeb91d8a7d0d
+SHA512 (more-itertools-7.2.0.tar.gz) = 840b535bf5f2fc3cf9c4c0106f977f0b178049b95e5ccb6cf51b5e68d0a6afd77a577bb0d0af25ea8cdf4b7dd2ce9691754ba6c773a196f8b10dba5d7683c6b0
+Size (more-itertools-7.2.0.tar.gz) = 73429 bytes



Home | Main Index | Thread Index | Old Index