Skip to content

Commit 436fda2

Browse files
committed
Merge branch 'rightlib' into merge-libs-250216-0050
2 parents 0fc5672 + 802da27 commit 436fda2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+695
-265
lines changed

contrib/libs/simdjson/.yandex_meta/devtools.licenses.report

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BELONGS ya.make
4242
Match type : REFERENCE
4343
Links : http://www.boost.org/LICENSE_1_0.txt, http://www.boost.org/users/license.html, https://spdx.org/licenses/BSL-1.0
4444
Files with this license:
45-
README.md [235:235]
45+
README.md [234:234]
4646

4747
KEEP MIT 0a00f0d66f4f37595306dd8c6a25c63c
4848
BELONGS ya.make
@@ -54,7 +54,7 @@ BELONGS ya.make
5454
Match type : NOTICE
5555
Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT
5656
Files with this license:
57-
README.md [231:231]
57+
README.md [230:230]
5858

5959
SKIP LicenseRef-scancode-unknown-license-reference 0d48e0b09865a98a90db20ea37b36bb8
6060
BELONGS ya.make
@@ -66,7 +66,7 @@ BELONGS ya.make
6666
Match type : INTRO
6767
Links : https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE
6868
Files with this license:
69-
README.md [239:239]
69+
README.md [238:238]
7070

7171
KEEP Apache-2.0 13ec3cccf3036f38df47d2051a825972
7272
BELONGS ya.make
@@ -102,7 +102,7 @@ BELONGS ya.make
102102
Match type : REFERENCE
103103
Links : http://www.apache.org/licenses/, http://www.apache.org/licenses/LICENSE-2.0, https://spdx.org/licenses/Apache-2.0
104104
Files with this license:
105-
README.md [215:215]
105+
README.md [214:214]
106106

107107
SKIP BSL-1.0 2a9212d785cde4078c2f6803e544de21
108108
BELONGS ya.make
@@ -113,7 +113,7 @@ BELONGS ya.make
113113
Match type : REFERENCE
114114
Links : http://www.boost.org/LICENSE_1_0.txt, http://www.boost.org/users/license.html, https://spdx.org/licenses/BSL-1.0
115115
Files with this license:
116-
README.md [235:235]
116+
README.md [234:234]
117117

118118
KEEP MIT 3e1ede6948a97e7ee3d75e0204a567f3
119119
BELONGS ya.make
@@ -125,7 +125,7 @@ BELONGS ya.make
125125
Match type : TAG
126126
Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT
127127
Files with this license:
128-
README.md [219:219]
128+
README.md [218:218]
129129

130130
SKIP Apache-2.0 500a503129337bb5adf5977ce11879cd
131131
BELONGS ya.make
@@ -137,7 +137,7 @@ BELONGS ya.make
137137
Match type : NOTICE
138138
Links : http://www.apache.org/licenses/, http://www.apache.org/licenses/LICENSE-2.0, https://spdx.org/licenses/Apache-2.0
139139
Files with this license:
140-
README.md [231:231]
140+
README.md [230:230]
141141

142142
SKIP BSL-1.0 77dd56e30840a227692d435b4aecdb95
143143
BELONGS ya.make
@@ -148,11 +148,11 @@ BELONGS ya.make
148148
Match type : REFERENCE
149149
Links : http://www.boost.org/LICENSE_1_0.txt, http://www.boost.org/users/license.html, https://spdx.org/licenses/BSL-1.0
150150
Files with this license:
151-
README.md [235:235]
151+
README.md [234:234]
152152

153153
KEEP MIT 7f0bdbc0a0545831259b66259ac6b604
154154
BELONGS ya.make
155-
FILE_INCLUDE LICENSE-MIT found in files: README.md at line 218
155+
FILE_INCLUDE LICENSE-MIT found in files: README.md at line 217
156156
License text:
157157
[licensemit]: LICENSE-MIT
158158
Scancode info:
@@ -161,7 +161,7 @@ FILE_INCLUDE LICENSE-MIT found in files: README.md at line 218
161161
Match type : TAG
162162
Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT
163163
Files with this license:
164-
README.md [218:218]
164+
README.md [217:217]
165165

166166
KEEP Apache-2.0 82e76bbc1841bd5886297e795c72bfa5
167167
BELONGS ya.make
@@ -173,7 +173,7 @@ BELONGS ya.make
173173
Match type : REFERENCE
174174
Links : http://www.apache.org/licenses/, http://www.apache.org/licenses/LICENSE-2.0, https://spdx.org/licenses/Apache-2.0
175175
Files with this license:
176-
README.md [231:231]
176+
README.md [230:230]
177177

178178
KEEP MIT a6e9f2d79eb73e6e422759b53da6152a
179179
BELONGS ya.make
@@ -208,7 +208,7 @@ BELONGS ya.make
208208
Match type : NOTICE
209209
Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT
210210
Files with this license:
211-
README.md [237:237]
211+
README.md [236:236]
212212

213213
SKIP Apache-2.0 c23a044f4165feb9568f486ca3b30fc8
214214
BELONGS ya.make
@@ -219,7 +219,7 @@ BELONGS ya.make
219219
Match type : NOTICE
220220
Links : http://www.apache.org/licenses/, http://www.apache.org/licenses/LICENSE-2.0, https://spdx.org/licenses/Apache-2.0
221221
Files with this license:
222-
README.md [235:235]
222+
README.md [234:234]
223223

224224
SKIP BSD-3-Clause d77bd60dc7ee5f9c3b221f6edd94bbac
225225
BELONGS ya.make
@@ -231,7 +231,7 @@ BELONGS ya.make
231231
Match type : REFERENCE
232232
Links : http://www.opensource.org/licenses/BSD-3-Clause, https://spdx.org/licenses/BSD-3-Clause
233233
Files with this license:
234-
README.md [239:239]
234+
README.md [238:238]
235235

236236
SKIP MIT dd09705e3ec59af63c705c8f5f3eadb2
237237
BELONGS ya.make
@@ -243,7 +243,7 @@ BELONGS ya.make
243243
Match type : REFERENCE
244244
Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT
245245
Files with this license:
246-
README.md [233:233]
246+
README.md [232:232]
247247

248248
KEEP MIT f0fe4686586f118327c3bc63fe4027de
249249
BELONGS ya.make

contrib/libs/simdjson/.yandex_meta/override.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
pkgs: attrs: with pkgs; rec {
2-
version = "3.12.1";
2+
version = "3.12.2";
33

44
src = fetchFromGitHub {
55
owner = "simdjson";
66
repo = "simdjson";
77
rev = "v${version}";
8-
hash = "sha256-ujeG3yidZJZV6x4RQQYXwbslQcRx3HaqjzgaU2A4cQU=";
8+
hash = "sha256-TjUPySFwwTlD4fLpHoUywAeWvVvi7Hg1wxzgE9vohrs=";
99
};
1010

1111
cmakeFlags = attrs.cmakeFlags ++ [

contrib/libs/simdjson/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
[![Ubuntu 20.04 CI](https://github.com/simdjson/simdjson/workflows/Ubuntu%2020.04%20CI%20(GCC%209)/badge.svg)](https://simdjson.org/plots.html)
32
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/simdjson.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:simdjson)
43
[![][license img]][license] [![][licensemit img]][licensemit]
54

contrib/libs/simdjson/include/simdjson/icelake/simd.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,18 @@ namespace simd {
148148

149149
// Copies to 'output" all bytes corresponding to a 0 in the mask (interpreted as a bitset).
150150
// Passing a 0 value for mask would be equivalent to writing out every byte to output.
151-
// Only the first 32 - count_ones(mask) bytes of the result are significant but 32 bytes
151+
// Only the first 64 - count_ones(mask) bytes of the result are significant but 64 bytes
152152
// get written.
153153
// Design consideration: it seems like a function with the
154154
// signature simd8<L> compress(uint32_t mask) would be
155155
// sensible, but the AVX ISA makes this kind of approach difficult.
156156
template<typename L>
157157
simdjson_inline void compress(uint64_t mask, L * output) const {
158-
_mm512_mask_compressstoreu_epi8 (output,~mask,*this);
158+
// we deliberately avoid _mm512_mask_compressstoreu_epi8 for portability
159+
// (AMD Zen4 has terrible performance with it, it is effectively broken)
160+
// _mm512_mask_compressstoreu_epi8 (output,~mask,*this);
161+
__m512i compressed = _mm512_maskz_compress_epi8(~mask, *this);
162+
_mm512_storeu_si512(output, compressed); // could use a mask
159163
}
160164

161165
template<typename L>

contrib/libs/simdjson/include/simdjson/simdjson_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define SIMDJSON_SIMDJSON_VERSION_H
55

66
/** The version of simdjson being used (major.minor.revision) */
7-
#define SIMDJSON_VERSION "3.12.1"
7+
#define SIMDJSON_VERSION "3.12.2"
88

99
namespace simdjson {
1010
enum {
@@ -19,7 +19,7 @@ enum {
1919
/**
2020
* The revision (major.minor.REVISION) of simdjson being used.
2121
*/
22-
SIMDJSON_VERSION_REVISION = 1
22+
SIMDJSON_VERSION_REVISION = 2
2323
};
2424
} // namespace simdjson
2525

contrib/libs/simdjson/ya.make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ LICENSE(
1010

1111
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
1212

13-
VERSION(3.12.1)
13+
VERSION(3.12.2)
1414

15-
ORIGINAL_SOURCE(https://github.com/simdjson/simdjson/archive/v3.12.1.tar.gz)
15+
ORIGINAL_SOURCE(https://github.com/simdjson/simdjson/archive/v3.12.2.tar.gz)
1616

1717
ADDINCL(
1818
GLOBAL contrib/libs/simdjson/include

contrib/python/ipython/py3/.dist-info/METADATA

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Metadata-Version: 2.1
1+
Metadata-Version: 2.2
22
Name: ipython
3-
Version: 8.31.0
3+
Version: 8.32.0
44
Summary: IPython: Productive Interactive Computing
55
Author: The IPython Development Team
66
Author-email: ipython-dev@python.org
@@ -85,6 +85,9 @@ Requires-Dist: matplotlib; extra == "matplotlib"
8585
Provides-Extra: all
8686
Requires-Dist: ipython[black,doc,kernel,matplotlib,nbconvert,nbformat,notebook,parallel,qtconsole]; extra == "all"
8787
Requires-Dist: ipython[test,test_extra]; extra == "all"
88+
Dynamic: author
89+
Dynamic: author-email
90+
Dynamic: license
8891

8992
IPython provides a rich toolkit to help you make the most out of using Python
9093
interactively. Its main components are:

contrib/python/ipython/py3/IPython/core/interactiveshell.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def init_virtualenv(self):
900900
return
901901

902902
p = Path(sys.executable)
903-
p_venv = Path(os.environ["VIRTUAL_ENV"])
903+
p_venv = Path(os.environ["VIRTUAL_ENV"]).resolve()
904904

905905
# fallback venv detection:
906906
# stdlib venv may symlink sys.executable, so we can't use realpath.
@@ -913,7 +913,7 @@ def init_virtualenv(self):
913913
drive_name = p_venv.parts[2]
914914
p_venv = (drive_name + ":/") / Path(*p_venv.parts[3:])
915915

916-
if any(p_venv == p.parents[1] for p in paths):
916+
if any(p_venv == p.parents[1].resolve() for p in paths):
917917
# Our exe is inside or has access to the virtualenv, don't need to do anything.
918918
return
919919

@@ -2093,6 +2093,8 @@ def _get_exc_info(self, exc_tuple=None):
20932093
sys.last_type = etype
20942094
sys.last_value = value
20952095
sys.last_traceback = tb
2096+
if sys.version_info >= (3, 12):
2097+
sys.last_exc = value
20962098

20972099
return etype, value, tb
20982100

contrib/python/ipython/py3/IPython/core/magics/execution.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,21 @@ def _run_with_debugger(
977977
break
978978
finally:
979979
sys.settrace(trace)
980-
980+
981+
# Perform proper cleanup of the session in case if
982+
# it exited with "continue" and not "quit" command
983+
if hasattr(deb, "rcLines"):
984+
# Run this code defensively in case if custom debugger
985+
# class does not implement rcLines, which although public
986+
# is an implementation detail of `pdb.Pdb` and not part of
987+
# the more generic basic debugger framework (`bdb.Bdb`).
988+
deb.set_quit()
989+
deb.rcLines.extend(["q"])
990+
try:
991+
deb.run("", code_ns, local_ns)
992+
except StopIteration:
993+
# Stop iteration is raised on quit command
994+
pass
981995

982996
except:
983997
etype, value, tb = sys.exc_info()

contrib/python/ipython/py3/IPython/core/magics/script.py

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def script_args(f):
6767
return f
6868

6969

70+
class RaiseAfterInterrupt(Exception):
71+
pass
72+
73+
7074
@magics_class
7175
class ScriptMagics(Magics):
7276
"""Magics for talking to scripts
@@ -176,6 +180,10 @@ def shebang(self, line, cell):
176180
177181
The rest of the cell is run by that program.
178182
183+
.. versionchanged:: 9.0
184+
Interrupting the script executed without `--bg` will end in
185+
raising an exception (unless `--no-raise-error` is passed).
186+
179187
Examples
180188
--------
181189
::
@@ -212,7 +220,7 @@ def in_thread(coro):
212220

213221
async def _readchunk(stream):
214222
try:
215-
return await stream.readuntil(b"\n")
223+
return await stream.read(100)
216224
except asyncio.exceptions.IncompleteReadError as e:
217225
return e.partial
218226
except asyncio.exceptions.LimitOverrunError as e:
@@ -292,20 +300,33 @@ async def _stream_communicate(process, cell):
292300
p.send_signal(signal.SIGINT)
293301
in_thread(asyncio.wait_for(p.wait(), timeout=0.1))
294302
if p.returncode is not None:
295-
print("Process is interrupted.")
296-
return
303+
print("Process was interrupted.")
304+
if args.raise_error:
305+
raise RaiseAfterInterrupt()
306+
else:
307+
return
297308
p.terminate()
298309
in_thread(asyncio.wait_for(p.wait(), timeout=0.1))
299310
if p.returncode is not None:
300-
print("Process is terminated.")
301-
return
311+
print("Process was terminated.")
312+
if args.raise_error:
313+
raise RaiseAfterInterrupt()
314+
else:
315+
return
302316
p.kill()
303-
print("Process is killed.")
317+
print("Process was killed.")
318+
if args.raise_error:
319+
raise RaiseAfterInterrupt()
320+
except RaiseAfterInterrupt:
321+
pass
304322
except OSError:
305323
pass
306324
except Exception as e:
307325
print("Error while terminating subprocess (pid=%i): %s" % (p.pid, e))
308-
return
326+
if args.raise_error:
327+
raise CalledProcessError(p.returncode, cell) from None
328+
else:
329+
return
309330

310331
if args.raise_error and p.returncode != 0:
311332
# If we get here and p.returncode is still None, we must have

0 commit comments

Comments
 (0)