pyrsistent
Advanced tools
@@ -1,1 +0,1 @@ | ||
| __version__ = '0.17.4rc1' | ||
| __version__ = '0.18.0' |
+13
-3
| Revision history | ||
| ---------------- | ||
| 0.17.4, 2021-06-DD | ||
| * Release wheels... | ||
| * ... | ||
| 0.18.0, 2021-06-28 | ||
| * Fix #209 Update freeze recurse into pyrsistent data structures and thaw to recurse into lists and dicts, | ||
| Thanks @phil-arh for this! | ||
| NB! This is a backwards incompatible change! To keep the old behaviour pass `strict=False` to freeze and thaw. | ||
| * Fix #226, stop using deprecated exception.message. Thanks @hexagonrecursion for this! | ||
| * Fix #211, add union operator to persistent maps. Thanks @bowbahdoe for this! | ||
| * Fix #194, declare build dependencies through pyproject.toml. Thanks @jaraco for this! | ||
| * Officially drop Python 3.5 support. | ||
| * Fix #223, release wheels for all major platforms. Thanks @johnthagen for helping out with this! | ||
| * Fix #221, KeyError obscured by TypeError if key is a tuple. Thanks @ganwell for this! | ||
| * Fix LICENSE file name spelling. Thanks @ndowens and @barentsen for this! | ||
| * Fix #216, add abstractmethod decorator for CheckedType and ABCMeta for _CheckedTypeMeta. Thanks @ss18 for this! | ||
| * Fix #228, rename example classes in tests to avoid name clashes with pytest. | ||
@@ -7,0 +17,0 @@ 0.17.3, 2020-09-13 |
+15
-5
| Metadata-Version: 2.1 | ||
| Name: pyrsistent | ||
| Version: 0.17.4rc1 | ||
| Version: 0.18.0 | ||
| Summary: Persistent/Functional/Immutable data structures | ||
@@ -698,2 +698,14 @@ Home-page: http://github.com/tobgu/pyrsistent/ | ||
| Andrey Bienkowski https://github.com/hexagonrecursion | ||
| Ethan McCue https://github.com/bowbahdoe | ||
| Jason R. Coombs https://github.com/jaraco | ||
| Nathan https://github.com/ndowens | ||
| Geert Barentsen https://github.com/barentsen | ||
| phil-arh https://github.com/phil-arh | ||
| Contributing | ||
@@ -719,9 +731,7 @@ ------------ | ||
| * Update CHANGES.txt | ||
| * Update README with any new contributors and potential info needed. | ||
| * Update README.rst with any new contributors and potential info needed. | ||
| * Update _pyrsistent_version.py | ||
| * `rm -rf dist/* && python setup.py sdist` | ||
| * (`twine upload -r testpypi dist/*`), if testing the distribution on testpypi | ||
| * `twine upload dist/*` | ||
| * Commit and tag with new version: `git add -u . && git commit -m 'Prepare version vX.Y.Z' && git tag -a vX.Y.Z -m 'vX.Y.Z'` | ||
| * Push commit and tags: `git push && git push --tags` | ||
| * Build new release using Github actions | ||
@@ -728,0 +738,0 @@ Project status |
| Metadata-Version: 2.1 | ||
| Name: pyrsistent | ||
| Version: 0.17.4rc1 | ||
| Version: 0.18.0 | ||
| Summary: Persistent/Functional/Immutable data structures | ||
@@ -698,2 +698,14 @@ Home-page: http://github.com/tobgu/pyrsistent/ | ||
| Andrey Bienkowski https://github.com/hexagonrecursion | ||
| Ethan McCue https://github.com/bowbahdoe | ||
| Jason R. Coombs https://github.com/jaraco | ||
| Nathan https://github.com/ndowens | ||
| Geert Barentsen https://github.com/barentsen | ||
| phil-arh https://github.com/phil-arh | ||
| Contributing | ||
@@ -719,9 +731,7 @@ ------------ | ||
| * Update CHANGES.txt | ||
| * Update README with any new contributors and potential info needed. | ||
| * Update README.rst with any new contributors and potential info needed. | ||
| * Update _pyrsistent_version.py | ||
| * `rm -rf dist/* && python setup.py sdist` | ||
| * (`twine upload -r testpypi dist/*`), if testing the distribution on testpypi | ||
| * `twine upload dist/*` | ||
| * Commit and tag with new version: `git add -u . && git commit -m 'Prepare version vX.Y.Z' && git tag -a vX.Y.Z -m 'vX.Y.Z'` | ||
| * Push commit and tags: `git push && git push --tags` | ||
| * Build new release using Github actions | ||
@@ -728,0 +738,0 @@ Project status |
+14
-4
@@ -690,2 +690,14 @@ Pyrsistent | ||
| Andrey Bienkowski https://github.com/hexagonrecursion | ||
| Ethan McCue https://github.com/bowbahdoe | ||
| Jason R. Coombs https://github.com/jaraco | ||
| Nathan https://github.com/ndowens | ||
| Geert Barentsen https://github.com/barentsen | ||
| phil-arh https://github.com/phil-arh | ||
| Contributing | ||
@@ -711,9 +723,7 @@ ------------ | ||
| * Update CHANGES.txt | ||
| * Update README with any new contributors and potential info needed. | ||
| * Update README.rst with any new contributors and potential info needed. | ||
| * Update _pyrsistent_version.py | ||
| * `rm -rf dist/* && python setup.py sdist` | ||
| * (`twine upload -r testpypi dist/*`), if testing the distribution on testpypi | ||
| * `twine upload dist/*` | ||
| * Commit and tag with new version: `git add -u . && git commit -m 'Prepare version vX.Y.Z' && git tag -a vX.Y.Z -m 'vX.Y.Z'` | ||
| * Push commit and tags: `git push && git push --tags` | ||
| * Build new release using Github actions | ||
@@ -720,0 +730,0 @@ Project status |
+14
-4
@@ -690,2 +690,14 @@ Pyrsistent | ||
| Andrey Bienkowski https://github.com/hexagonrecursion | ||
| Ethan McCue https://github.com/bowbahdoe | ||
| Jason R. Coombs https://github.com/jaraco | ||
| Nathan https://github.com/ndowens | ||
| Geert Barentsen https://github.com/barentsen | ||
| phil-arh https://github.com/phil-arh | ||
| Contributing | ||
@@ -711,9 +723,7 @@ ------------ | ||
| * Update CHANGES.txt | ||
| * Update README with any new contributors and potential info needed. | ||
| * Update README.rst with any new contributors and potential info needed. | ||
| * Update _pyrsistent_version.py | ||
| * `rm -rf dist/* && python setup.py sdist` | ||
| * (`twine upload -r testpypi dist/*`), if testing the distribution on testpypi | ||
| * `twine upload dist/*` | ||
| * Commit and tag with new version: `git add -u . && git commit -m 'Prepare version vX.Y.Z' && git tag -a vX.Y.Z -m 'vX.Y.Z'` | ||
| * Push commit and tags: `git push && git push --tags` | ||
| * Build new release using Github actions | ||
@@ -720,0 +730,0 @@ Project status |
@@ -6,3 +6,3 @@ from enum import Enum | ||
| class TestEnum(Enum): | ||
| class ExampleEnum(Enum): | ||
| x = 1 | ||
@@ -13,5 +13,5 @@ y = 2 | ||
| def test_enum(): | ||
| f = field(type=TestEnum) | ||
| f = field(type=ExampleEnum) | ||
| assert TestEnum in f.type | ||
| assert ExampleEnum in f.type | ||
| assert len(f.type) == 1 | ||
@@ -22,5 +22,5 @@ | ||
| def test_pvector_field_enum_type(): | ||
| f = pvector_field(TestEnum) | ||
| f = pvector_field(ExampleEnum) | ||
| assert len(f.type) == 1 | ||
| assert TestEnum is list(f.type)[0].__type__ | ||
| assert ExampleEnum is list(f.type)[0].__type__ |
@@ -19,3 +19,3 @@ """ | ||
| class TestObject(object): | ||
| class RefCountTracker: | ||
| """ | ||
@@ -49,3 +49,3 @@ An object that might catch reference count errors sometimes. | ||
| # Pairs of a list and corresponding pvector: | ||
| PVectorAndLists = st.lists(st.builds(TestObject)).map( | ||
| PVectorAndLists = st.lists(st.builds(RefCountTracker)).map( | ||
| lambda l: (l, pvector(l))) | ||
@@ -109,3 +109,3 @@ | ||
| l, pv = former | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| l2 = l[:] | ||
@@ -152,3 +152,3 @@ l2.append(obj) | ||
| i = data.draw(st.sampled_from(range(len(l)))) | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| l2[i] = obj | ||
@@ -167,3 +167,3 @@ return l2, pv.set(i, obj) | ||
| i = data.draw(st.sampled_from(range(len(l)))) | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| l2[i] = obj | ||
@@ -244,3 +244,3 @@ return l2, pv.transform([i], obj) | ||
| """ | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| item.current_list.append(obj) | ||
@@ -276,3 +276,3 @@ item.current_evolver.append(obj) | ||
| i = data.draw(st.sampled_from(range(len(item.current_list)))) | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| item.current_list[i] = obj | ||
@@ -288,3 +288,3 @@ item.current_evolver[i] = obj | ||
| i = data.draw(st.sampled_from(range(len(item.current_list)))) | ||
| obj = TestObject() | ||
| obj = RefCountTracker() | ||
| item.current_list[i] = obj | ||
@@ -291,0 +291,0 @@ item.current_evolver.set(i, obj) |
@@ -224,3 +224,3 @@ import pickle | ||
| class TestEnum(Enum): | ||
| class ExampleEnum(Enum): | ||
| x = 1 | ||
@@ -230,6 +230,6 @@ y = 2 | ||
| class RecordContainingEnum(PRecord): | ||
| enum_field = field(type=TestEnum) | ||
| enum_field = field(type=ExampleEnum) | ||
| r = RecordContainingEnum(enum_field=TestEnum.x) | ||
| assert r.enum_field == TestEnum.x | ||
| r = RecordContainingEnum(enum_field=ExampleEnum.x) | ||
| assert r.enum_field == ExampleEnum.x | ||
@@ -236,0 +236,0 @@ def test_type_specification_must_be_a_type(): |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
461662
0.4%