Hello community,
here is the log from the commit of package python-pyrsistent for
openSUSE:Factory checked in at 2020-07-21 15:40:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyrsistent (Old)
and /work/SRC/openSUSE:Factory/.python-pyrsistent.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyrsistent"
Tue Jul 21 15:40:30 2020 rev:7 rq:821441 version:0.16.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyrsistent/python-pyrsistent.changes
2020-03-08 22:21:46.251989848 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyrsistent.new.3592/python-pyrsistent.changes
2020-07-21 15:41:00.007574804 +0200
@@ -1,0 +2,9 @@
+Fri Jul 17 07:40:53 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 0.16.0:
+ * No major updates but Python 2 support no longer guaranteed.
+ * Fix #192, 'ignore_extra' for 'pvector_field'. Thanks @ss18 for this!
+ * Fix #191, include LICENCE in distribution. Thanks @johnthagen for this!
+ * Fix #190, minor MyPy errors. Thanks @Qhesz for this!
+
+-------------------------------------------------------------------
Old:
----
pyrsistent-0.15.7.tar.gz
New:
----
pyrsistent-0.16.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyrsistent.spec ++++++
--- /var/tmp/diff_new_pack.J1lYt3/_old 2020-07-21 15:41:03.247579076 +0200
+++ /var/tmp/diff_new_pack.J1lYt3/_new 2020-07-21 15:41:03.247579076 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyrsistent
-Version: 0.15.7
+Version: 0.16.0
Release: 0
Summary: Persistent, Functional, Immutable data structures
License: MIT
++++++ pyrsistent-0.15.7.tar.gz -> pyrsistent-0.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/CHANGES.txt
new/pyrsistent-0.16.0/CHANGES.txt
--- old/pyrsistent-0.15.7/CHANGES.txt 2020-01-07 21:02:19.000000000 +0100
+++ new/pyrsistent-0.16.0/CHANGES.txt 2020-03-24 20:45:19.000000000 +0100
@@ -1,5 +1,11 @@
Revision history
----------------
+0.16.0, 2020-03-24
+ * No major updates but Python 2 support no longer guaranteed.
+ * Fix #192, 'ignore_extra' for 'pvector_field'. Thanks @ss18 for this!
+ * Fix #191, include LICENCE in distribution. Thanks @johnthagen for this!
+ * Fix #190, minor MyPy errors. Thanks @Qhesz for this!
+
0.15.7, 2020-01-07
* NOTE! This is the last version of Pyrsistent that officially supports
Python 2.X!
* Fix #186, type errors with more recent versions of MyPy. Thanks @qhesz for
this!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/PKG-INFO
new/pyrsistent-0.16.0/PKG-INFO
--- old/pyrsistent-0.15.7/PKG-INFO 2020-01-07 21:02:38.000000000 +0100
+++ new/pyrsistent-0.16.0/PKG-INFO 2020-03-24 20:46:32.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pyrsistent
-Version: 0.15.7
+Version: 0.16.0
Summary: Persistent/Functional/Immutable data structures
Home-page: http://github.com/tobgu/pyrsistent/
Author: Tobias Gustafsson
@@ -690,6 +690,8 @@
Kerry Olesen https://github.com/qhesz
+ johnthagen https://github.com/johnthagen
+
Contributing
------------
@@ -734,7 +736,6 @@
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/README new/pyrsistent-0.16.0/README
--- old/pyrsistent-0.15.7/README 2020-01-07 20:54:03.000000000 +0100
+++ new/pyrsistent-0.16.0/README 2020-03-24 20:45:19.000000000 +0100
@@ -682,6 +682,8 @@
Kerry Olesen https://github.com/qhesz
+johnthagen https://github.com/johnthagen
+
Contributing
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/README.rst
new/pyrsistent-0.16.0/README.rst
--- old/pyrsistent-0.15.7/README.rst 2020-01-07 20:54:03.000000000 +0100
+++ new/pyrsistent-0.16.0/README.rst 2020-03-24 20:45:19.000000000 +0100
@@ -682,6 +682,8 @@
Kerry Olesen https://github.com/qhesz
+johnthagen https://github.com/johnthagen
+
Contributing
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/_pyrsistent_version.py
new/pyrsistent-0.16.0/_pyrsistent_version.py
--- old/pyrsistent-0.15.7/_pyrsistent_version.py 2020-01-07
20:56:59.000000000 +0100
+++ new/pyrsistent-0.16.0/_pyrsistent_version.py 2020-03-24
20:45:19.000000000 +0100
@@ -1 +1 @@
-__version__ = '0.15.7'
+__version__ = '0.16.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/pyrsistent/_checked_types.py
new/pyrsistent-0.16.0/pyrsistent/_checked_types.py
--- old/pyrsistent-0.15.7/pyrsistent/_checked_types.py 2019-10-27
21:31:27.000000000 +0100
+++ new/pyrsistent-0.16.0/pyrsistent/_checked_types.py 2020-01-23
22:10:43.000000000 +0100
@@ -274,7 +274,7 @@
A CheckedPVector is a PVector which allows specifying type and invariant
checks.
>>> class Positives(CheckedPVector):
- ... __type__ = (long, int)
+ ... __type__ = (int, float)
... __invariant__ = lambda n: (n >= 0, 'Negative')
...
>>> Positives([1, 2, 3])
@@ -361,7 +361,7 @@
A CheckedPSet is a PSet which allows specifying type and invariant checks.
>>> class Positives(CheckedPSet):
- ... __type__ = (long, int)
+ ... __type__ = (int, float)
... __invariant__ = lambda n: (n >= 0, 'Negative')
...
>>> Positives([1, 2, 3])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/pyrsistent/_field_common.py
new/pyrsistent-0.16.0/pyrsistent/_field_common.py
--- old/pyrsistent-0.15.7/pyrsistent/_field_common.py 2019-10-27
21:31:27.000000000 +0100
+++ new/pyrsistent-0.16.0/pyrsistent/_field_common.py 2020-03-24
20:34:57.000000000 +0100
@@ -225,11 +225,11 @@
TheType = _make_seq_field_type(checked_class, item_type)
if optional:
- def factory(argument):
+ def factory(argument, _factory_fields=None, ignore_extra=False):
if argument is None:
return None
else:
- return TheType.create(argument)
+ return TheType.create(argument,
_factory_fields=_factory_fields, ignore_extra=ignore_extra)
else:
factory = TheType.create
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/pyrsistent/_helpers.py
new/pyrsistent-0.16.0/pyrsistent/_helpers.py
--- old/pyrsistent-0.15.7/pyrsistent/_helpers.py 2018-07-07
15:53:48.000000000 +0200
+++ new/pyrsistent-0.16.0/pyrsistent/_helpers.py 2020-01-23
22:12:35.000000000 +0100
@@ -50,7 +50,7 @@
>>> from pyrsistent import s, m, v
>>> thaw(s(1, 2))
- set([1, 2])
+ {1, 2}
>>> thaw(v(1, m(a=3)))
[1, {'a': 3}]
>>> thaw((1, v()))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/pyrsistent/_pmap.py
new/pyrsistent-0.16.0/pyrsistent/_pmap.py
--- old/pyrsistent-0.15.7/pyrsistent/_pmap.py 2019-10-27 21:31:23.000000000
+0100
+++ new/pyrsistent-0.16.0/pyrsistent/_pmap.py 2020-01-23 22:24:56.000000000
+0100
@@ -33,9 +33,9 @@
>>> m2 = m1.set('c', 3)
>>> m3 = m2.remove('a')
>>> m1
- pmap({'a': 1, 'b': 3})
+ pmap({'b': 3, 'a': 1})
>>> m2
- pmap({'a': 1, 'c': 3, 'b': 3})
+ pmap({'c': 3, 'b': 3, 'a': 1})
>>> m3
pmap({'c': 3, 'b': 3})
>>> m3['c']
@@ -173,11 +173,11 @@
>>> m2 = m1.set('a', 3)
>>> m3 = m1.set('c' ,4)
>>> m1
- pmap({'a': 1, 'b': 2})
+ pmap({'b': 2, 'a': 1})
>>> m2
- pmap({'a': 3, 'b': 2})
+ pmap({'b': 2, 'a': 3})
>>> m3
- pmap({'a': 1, 'c': 4, 'b': 2})
+ pmap({'c': 4, 'b': 2, 'a': 1})
"""
return self.evolver().set(key, val).persistent()
@@ -215,7 +215,7 @@
>>> m1 = m(a=1, b=2)
>>> m1.update(m(a=2, c=3), {'a': 17, 'd': 35})
- pmap({'a': 17, 'c': 3, 'b': 2, 'd': 35})
+ pmap({'c': 3, 'b': 2, 'a': 17, 'd': 35})
"""
return self.update_with(lambda l, r: r, *maps)
@@ -227,7 +227,7 @@
>>> from operator import add
>>> m1 = m(a=1, b=2)
>>> m1.update_with(add, m(a=2))
- pmap({'a': 3, 'b': 2})
+ pmap({'b': 2, 'a': 3})
The reverse behaviour of the regular merge. Keep the leftmost element
instead of the rightmost.
@@ -381,7 +381,7 @@
The underlying pmap remains the same:
>>> m1
- pmap({'a': 1, 'b': 2})
+ pmap({'b': 2, 'a': 1})
The changes are kept in the evolver. An updated pmap can be created
using the
persistent() function on the evolver.
@@ -442,7 +442,7 @@
will be inserted into the map eventually since it will reduce the number
of reallocations required.
>>> pmap({'a': 13, 'b': 14})
- pmap({'a': 13, 'b': 14})
+ pmap({'b': 14, 'a': 13})
"""
if not initial:
return _EMPTY_PMAP
@@ -455,6 +455,6 @@
Creates a new persitent map. Inserts all key value arguments into the
newly created map.
>>> m(a=13, b=14)
- pmap({'a': 13, 'b': 14})
+ pmap({'b': 14, 'a': 13})
"""
return pmap(kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/pyrsistent.egg-info/PKG-INFO
new/pyrsistent-0.16.0/pyrsistent.egg-info/PKG-INFO
--- old/pyrsistent-0.15.7/pyrsistent.egg-info/PKG-INFO 2020-01-07
21:02:38.000000000 +0100
+++ new/pyrsistent-0.16.0/pyrsistent.egg-info/PKG-INFO 2020-03-24
20:46:32.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pyrsistent
-Version: 0.15.7
+Version: 0.16.0
Summary: Persistent/Functional/Immutable data structures
Home-page: http://github.com/tobgu/pyrsistent/
Author: Tobias Gustafsson
@@ -690,6 +690,8 @@
Kerry Olesen https://github.com/qhesz
+ johnthagen https://github.com/johnthagen
+
Contributing
------------
@@ -734,7 +736,6 @@
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/setup.py
new/pyrsistent-0.16.0/setup.py
--- old/pyrsistent-0.15.7/setup.py 2019-07-04 21:52:49.000000000 +0200
+++ new/pyrsistent-0.16.0/setup.py 2020-01-23 21:48:31.000000000 +0100
@@ -58,12 +58,12 @@
author_email='[email protected]',
url='http://github.com/tobgu/pyrsistent/',
license='MIT',
+ license_files=['LICENCE.mit'],
py_modules=['_pyrsistent_version'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
- 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyrsistent-0.15.7/tests/record_test.py
new/pyrsistent-0.16.0/tests/record_test.py
--- old/pyrsistent-0.15.7/tests/record_test.py 2019-10-27 21:31:27.000000000
+0100
+++ new/pyrsistent-0.16.0/tests/record_test.py 2020-03-24 20:34:57.000000000
+0100
@@ -58,6 +58,21 @@
assert h
+def test_ignore_extra_for_pvector_field():
+ class HierarchyA(PRecord):
+ points = pvector_field(ARecord, optional=False)
+
+ class HierarchyB(PRecord):
+ points = pvector_field(ARecord, optional=True)
+
+ point_object = {'x': 1, 'y': 'foo', 'extra_field': 69}
+
+ h = HierarchyA.create({'points': [point_object]}, ignore_extra=True)
+ assert h
+ h = HierarchyB.create({'points': [point_object]}, ignore_extra=True)
+ assert h
+
+
def test_create():
r = ARecord(x=1, y='foo')
assert r.x == 1