aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pyrsistent/py2
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/pyrsistent/py2
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/pyrsistent/py2')
-rw-r--r--contrib/python/pyrsistent/py2/LICENCE.mit22
-rw-r--r--contrib/python/pyrsistent/py2/patches/01-fix-tests.patch97
2 files changed, 119 insertions, 0 deletions
diff --git a/contrib/python/pyrsistent/py2/LICENCE.mit b/contrib/python/pyrsistent/py2/LICENCE.mit
new file mode 100644
index 0000000000..6609e4c05a
--- /dev/null
+++ b/contrib/python/pyrsistent/py2/LICENCE.mit
@@ -0,0 +1,22 @@
+Copyright (c) 2019 Tobias Gustafsson
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/contrib/python/pyrsistent/py2/patches/01-fix-tests.patch b/contrib/python/pyrsistent/py2/patches/01-fix-tests.patch
new file mode 100644
index 0000000000..788c9ea90d
--- /dev/null
+++ b/contrib/python/pyrsistent/py2/patches/01-fix-tests.patch
@@ -0,0 +1,97 @@
+--- contrib/python/pyrsistent/py2/tests/checked_map_test.py (index)
++++ contrib/python/pyrsistent/py2/tests/checked_map_test.py (working tree)
+@@ -125,10 +125,9 @@ def test_pickling():
+ class FloatVector(CheckedPVector):
+ __type__ = float
+
+-
+ class VectorToSetMap(CheckedPMap):
+- __key_type__ = 'checked_map_test.FloatVector'
+- __value_type__ = 'checked_map_test.FloatSet'
++ __key_type__ = '__tests__.checked_map_test.FloatVector'
++ __value_type__ = '__tests__.checked_map_test.FloatSet'
+
+
+ def test_type_check_with_string_specification():
+--- contrib/python/pyrsistent/py2/tests/checked_vector_test.py (index)
++++ contrib/python/pyrsistent/py2/tests/checked_vector_test.py (working tree)
+@@ -184,7 +184,7 @@ def test_multiple_optional_types():
+
+
+ class NaturalsVectorStr(CheckedPVector):
+- __type__ = 'checked_vector_test.Naturals'
++ __type__ = '__tests__.checked_vector_test.Naturals'
+
+
+ def test_check_with_string_specification():
+--- contrib/python/pyrsistent/py2/tests/class_test.py (index)
++++ contrib/python/pyrsistent/py2/tests/class_test.py (working tree)
+@@ -272,8 +272,8 @@ class Numbers(CheckedPVector):
+
+
+ class LinkedList(PClass):
+- value = field(type='class_test.Numbers')
+- next = field(type=optional('class_test.LinkedList'))
++ value = field(type='__tests__.class_test.Numbers')
++ next = field(type=optional('__tests__.class_test.LinkedList'))
+
+
+ def test_string_as_type_specifier():
+--- contrib/python/pyrsistent/py2/tests/record_test.py (index)
++++ contrib/python/pyrsistent/py2/tests/record_test.py (working tree)
+@@ -512,7 +512,7 @@ def test_pset_field_name_string_type():
+ The created set class name is based on the type of items specified by name
+ """
+ class Record(PRecord):
+- value = pset_field("record_test.Something")
++ value = pset_field("__tests__.record_test.Something")
+ assert Record().value.__class__.__name__ == "SomethingPSet"
+
+
+@@ -522,7 +522,7 @@ def test_pset_multiple_string_types_field_name():
+ items in the set specified by name
+ """
+ class Record(PRecord):
+- value = pset_field(("record_test.Something", "record_test.Another"))
++ value = pset_field(("__tests__.record_test.Something", "__tests__.record_test.Another"))
+
+ assert Record().value.__class__.__name__ == "SomethingAnotherPSet"
+
+@@ -649,7 +649,7 @@ def test_pvector_field_name_string_type():
+ specified by name.
+ """
+ class Record(PRecord):
+- value = pvector_field("record_test.Something")
++ value = pvector_field("__tests__.record_test.Something")
+ assert Record().value.__class__.__name__ == "SomethingPVector"
+
+ def test_pvector_multiple_string_types_field_name():
+@@ -658,7 +658,7 @@ def test_pvector_multiple_string_types_field_name():
+ items in the vector.
+ """
+ class Record(PRecord):
+- value = pvector_field(("record_test.Something", "record_test.Another"))
++ value = pvector_field(("__tests__.record_test.Something", "__tests__.record_test.Another"))
+
+ assert Record().value.__class__.__name__ == "SomethingAnotherPVector"
+
+@@ -800,7 +800,7 @@ def test_pmap_field_name_string_type():
+ specified by name.
+ """
+ class Record(PRecord):
+- value = pmap_field("record_test.Something", "record_test.Another")
++ value = pmap_field("__tests__.record_test.Something", "__tests__.record_test.Another")
+ assert Record().value.__class__.__name__ == "SomethingToAnotherPMap"
+
+ def test_pmap_field_name_multiple_string_types():
+@@ -809,8 +809,8 @@ def test_pmap_field_name_multiple_string_types():
+ including when there are multiple supported types.
+ """
+ class Record(PRecord):
+- value = pmap_field(("record_test.Something", "record_test.Another"), int)
+- value2 = pmap_field(str, ("record_test.Something", "record_test.Another"))
++ value = pmap_field(("__tests__.record_test.Something", "__tests__.record_test.Another"), int)
++ value2 = pmap_field(str, ("__tests__.record_test.Something", "__tests__.record_test.Another"))
+ assert ((Record().value.__class__.__name__,
+ Record().value2.__class__.__name__) ==
+ ("SomethingAnotherToIntPMap", "StrToSomethingAnotherPMap"))