aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/future
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/future
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/future')
-rw-r--r--contrib/python/future/py2/.yandex_meta/yamaker.yaml20
-rw-r--r--contrib/python/future/py2/patches/02-fix-issue1690840.patch24
-rw-r--r--contrib/python/future/py2/patches/04-unknown.patch11
-rw-r--r--contrib/python/future/py3/.yandex_meta/yamaker.yaml8
-rw-r--r--contrib/python/future/py3/patches/02-fix-issue1690840.patch24
-rw-r--r--contrib/python/future/py3/patches/04-unknown.patch11
-rw-r--r--contrib/python/future/py3/patches/06-support-python-3.11.patch11
7 files changed, 109 insertions, 0 deletions
diff --git a/contrib/python/future/py2/.yandex_meta/yamaker.yaml b/contrib/python/future/py2/.yandex_meta/yamaker.yaml
new file mode 100644
index 0000000000..f04afe1a85
--- /dev/null
+++ b/contrib/python/future/py2/.yandex_meta/yamaker.yaml
@@ -0,0 +1,20 @@
+exclude:
+# Привозим только нужное из оригинального пакета, ниже перечисленное пропускаем
+- future/moves/dbm/gnu.py
+- future/moves/tkinter/*
+- libfuturize/*
+- libpasteurize/*
+- past/translation/*
+keep:
+- _dummy_thread/*
+- _markupbase/*
+- _thread/*
+- builtins/*
+- copyreg/*
+- html/*
+- http/*
+- queue/*
+- reprlib/*
+- socketserver/*
+- winreg/*
+- xmlrpc/*
diff --git a/contrib/python/future/py2/patches/02-fix-issue1690840.patch b/contrib/python/future/py2/patches/02-fix-issue1690840.patch
new file mode 100644
index 0000000000..8d49326ed7
--- /dev/null
+++ b/contrib/python/future/py2/patches/02-fix-issue1690840.patch
@@ -0,0 +1,24 @@
+commit add36301f7cf40e71d9e10647b83ce8eeed2ce07
+merge: e4dcf40743308e1c26bec5b40a65986757c9c860 aa536ca98b2b42596ea704253d8a864e0eddd513
+author: zhshishkin
+date: 2020-12-28T11:18:38+03:00
+revision: 7722626
+
+ implement __str__ and __repr__ for _Method
+
+ https://bugs.python.org/issue1690840
+
+ REVIEW: 1578078
+
+--- contrib/python/future/py2/future/backports/xmlrpc/client.py (e4dcf40743308e1c26bec5b40a65986757c9c860)
++++ contrib/python/future/py2/future/backports/xmlrpc/client.py (add36301f7cf40e71d9e10647b83ce8eeed2ce07)
+@@ -1102,6 +1102,9 @@ class _Method(object):
+ def __init__(self, send, name):
+ self.__send = send
+ self.__name = name
++ def __repr__(self):
++ return "<_Method for %s>" % self.__name
++ __str__ = __repr__
+ def __getattr__(self, name):
+ return _Method(self.__send, "%s.%s" % (self.__name, name))
+ def __call__(self, *args):
diff --git a/contrib/python/future/py2/patches/04-unknown.patch b/contrib/python/future/py2/patches/04-unknown.patch
new file mode 100644
index 0000000000..caadff732f
--- /dev/null
+++ b/contrib/python/future/py2/patches/04-unknown.patch
@@ -0,0 +1,11 @@
+--- contrib/python/future/py2/future/backports/socket.py (index)
++++ contrib/python/future/py2/future/backports/socket.py (working tree)
+@@ -94,7 +94,7 @@ class socket(_socket.socket):
+
+ """A subclass of _socket.socket adding the makefile() method."""
+
+- __slots__ = ["__weakref__", "_io_refs", "_closed"]
++ __slots__ = ["_io_refs", "_closed"]
+
+ def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
+ if fileno is None:
diff --git a/contrib/python/future/py3/.yandex_meta/yamaker.yaml b/contrib/python/future/py3/.yandex_meta/yamaker.yaml
new file mode 100644
index 0000000000..fa7762c59c
--- /dev/null
+++ b/contrib/python/future/py3/.yandex_meta/yamaker.yaml
@@ -0,0 +1,8 @@
+exclude:
+# Привозим только нужное из оригинального пакета, ниже перечисленное пропускаем
+- future/moves/dbm/gnu.py
+- future/moves/tkinter/*
+- libfuturize/*
+- libpasteurize/*
+- past/translation/*
+- tkinter/*
diff --git a/contrib/python/future/py3/patches/02-fix-issue1690840.patch b/contrib/python/future/py3/patches/02-fix-issue1690840.patch
new file mode 100644
index 0000000000..cbbb469967
--- /dev/null
+++ b/contrib/python/future/py3/patches/02-fix-issue1690840.patch
@@ -0,0 +1,24 @@
+commit add36301f7cf40e71d9e10647b83ce8eeed2ce07
+merge: e4dcf40743308e1c26bec5b40a65986757c9c860 aa536ca98b2b42596ea704253d8a864e0eddd513
+author: zhshishkin
+date: 2020-12-28T11:18:38+03:00
+revision: 7722626
+
+ implement __str__ and __repr__ for _Method
+
+ https://bugs.python.org/issue1690840
+
+ REVIEW: 1578078
+
+--- contrib/python/future/py3/future/backports/xmlrpc/client.py (e4dcf40743308e1c26bec5b40a65986757c9c860)
++++ contrib/python/future/py3/future/backports/xmlrpc/client.py (add36301f7cf40e71d9e10647b83ce8eeed2ce07)
+@@ -1102,6 +1102,9 @@ class _Method(object):
+ def __init__(self, send, name):
+ self.__send = send
+ self.__name = name
++ def __repr__(self):
++ return "<_Method for %s>" % self.__name
++ __str__ = __repr__
+ def __getattr__(self, name):
+ return _Method(self.__send, "%s.%s" % (self.__name, name))
+ def __call__(self, *args):
diff --git a/contrib/python/future/py3/patches/04-unknown.patch b/contrib/python/future/py3/patches/04-unknown.patch
new file mode 100644
index 0000000000..9b57b8b325
--- /dev/null
+++ b/contrib/python/future/py3/patches/04-unknown.patch
@@ -0,0 +1,11 @@
+--- contrib/python/future/py3/future/backports/socket.py (index)
++++ contrib/python/future/py3/future/backports/socket.py (working tree)
+@@ -94,7 +94,7 @@ class socket(_socket.socket):
+
+ """A subclass of _socket.socket adding the makefile() method."""
+
+- __slots__ = ["__weakref__", "_io_refs", "_closed"]
++ __slots__ = ["_io_refs", "_closed"]
+
+ def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
+ if fileno is None:
diff --git a/contrib/python/future/py3/patches/06-support-python-3.11.patch b/contrib/python/future/py3/patches/06-support-python-3.11.patch
new file mode 100644
index 0000000000..5a9a1bb611
--- /dev/null
+++ b/contrib/python/future/py3/patches/06-support-python-3.11.patch
@@ -0,0 +1,11 @@
+--- contrib/python/future/py3/future/backports/http/cookies.py (index)
++++ contrib/python/future/py3/future/backports/http/cookies.py (working tree)
+@@ -461,7 +461,7 @@ _CookiePattern = re.compile(r"""
+ )? # End of optional value group
+ \s* # Any number of spaces.
+ (\s+|;|$) # Ending either at space, semicolon, or EOS.
+- """, re.ASCII) # May be removed if safe.
++ """, re.ASCII | re.VERBOSE) # May be removed if safe.
+
+
+ # At long last, here is the cookie class. Using this class is almost just like