Skip to content

Commit 4549065

Browse files
committed
Merge branch 'rightlib' into mergelibs-240830-1442
2 parents 857ad2e + 818158c commit 4549065

File tree

27 files changed

+350
-438
lines changed

27 files changed

+350
-438
lines changed

build/conf/settings.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENABLE_RERESOLVE_FOR_GENERATED_FILES=yes
1515
REPORT_ALL_DUPSRC=yes
1616
DEPS_CACHE_CONTROL_UIDS_CACHE=yes
1717
INCLUDE_BLACKLIST_TO_CONF_HASH=no
18-
INCLUDE_ISOLATED_PROJECTS_TO_CONF_HASH=no
18+
INCLUDE_ISOLATED_PROJECTS_TO_CONF_HASH=yes
1919
USE_GRAND_BYPASS=no
2020
USE_GLOBAL_CMD=yes
2121
YMAKE_USE_NEW_UIDS=yes
@@ -129,3 +129,4 @@ _FOLDABLE_VARS=\
129129

130130
ARCADIA_TEST_ROOT=../arcadia_tests_data/
131131
DEFAULT_REQUIREMENTS=network:restricted cpu:1 ram:32
132+

build/plugins/nots.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,15 @@ def on_set_package_manager(unit):
234234
pm_type = pm_key
235235
break
236236

237+
if pm_type == 'npm' and "devtools/dummy_arcadia/typescript/npm" not in source_path:
238+
ymake.report_configure_error(
239+
"\n"
240+
"Project is configured to use npm as a package manager. \n"
241+
"Only pnpm is supported at the moment.\n"
242+
"Please follow the instruction to migrate your project:\n"
243+
"https://docs.yandex-team.ru/frontend-in-arcadia/tutorials/migrate#migrate-to-pnpm"
244+
)
245+
237246
unit.on_peerdir_ts_resource(pm_type)
238247
unit.set(["PM_TYPE", pm_type])
239248
unit.set(["PM_SCRIPT", f"${pm_type.upper()}_SCRIPT"])

build/ymake.core.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FBS_FAKEID=2024-03-13
2020

2121
# Change of this value will invalidate some parts of configure cache
2222
# but will not affect builds anyhow (except tests referring build/ directory)
23-
JSON_CACHE_FAKE_ID=20240414
23+
JSON_CACHE_FAKE_ID=20240830
2424

2525
STRUCT_CMD=yes
2626

contrib/python/PyYAML/py2/ya.make

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
PY2_LIBRARY()
1+
# Generated by devtools/yamaker (pypi).
22

3-
LICENSE(MIT)
3+
PY2_LIBRARY()
44

55
VERSION(5.4.1)
66

7+
LICENSE(MIT)
8+
79
PEERDIR(
810
contrib/libs/yaml
911
)
@@ -13,6 +15,10 @@ ADDINCL(
1315
FOR cython contrib/python/PyYAML/py2
1416
)
1517

18+
NO_COMPILER_WARNINGS()
19+
20+
NO_LINT()
21+
1622
PY_SRCS(
1723
TOP_LEVEL
1824
_yaml/__init__.py
@@ -38,13 +44,9 @@ PY_SRCS(
3844
)
3945

4046
RESOURCE_FILES(
41-
PREFIX contrib/python/PyYAML/
47+
PREFIX contrib/python/PyYAML/py2/
4248
.dist-info/METADATA
4349
.dist-info/top_level.txt
4450
)
4551

46-
NO_LINT()
47-
48-
NO_COMPILER_WARNINGS()
49-
5052
END()

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Metadata-Version: 2.1
22
Name: PyYAML
3-
Version: 5.4.1
3+
Version: 6.0.2
44
Summary: YAML parser and emitter for Python
55
Home-page: https://pyyaml.org/
6+
Download-URL: https://pypi.org/project/PyYAML/
67
Author: Kirill Simonov
78
Author-email: xi@resolvent.net
89
License: MIT
9-
Download-URL: https://pypi.org/project/PyYAML/
1010
Project-URL: Bug Tracker, https://github.com/yaml/pyyaml/issues
1111
Project-URL: CI, https://github.com/yaml/pyyaml/actions
1212
Project-URL: Documentation, https://pyyaml.org/wiki/PyYAMLDocumentation
@@ -19,18 +19,19 @@ Classifier: License :: OSI Approved :: MIT License
1919
Classifier: Operating System :: OS Independent
2020
Classifier: Programming Language :: Cython
2121
Classifier: Programming Language :: Python
22-
Classifier: Programming Language :: Python :: 2
23-
Classifier: Programming Language :: Python :: 2.7
2422
Classifier: Programming Language :: Python :: 3
25-
Classifier: Programming Language :: Python :: 3.6
26-
Classifier: Programming Language :: Python :: 3.7
2723
Classifier: Programming Language :: Python :: 3.8
2824
Classifier: Programming Language :: Python :: 3.9
25+
Classifier: Programming Language :: Python :: 3.10
26+
Classifier: Programming Language :: Python :: 3.11
27+
Classifier: Programming Language :: Python :: 3.12
28+
Classifier: Programming Language :: Python :: 3.13
2929
Classifier: Programming Language :: Python :: Implementation :: CPython
3030
Classifier: Programming Language :: Python :: Implementation :: PyPy
3131
Classifier: Topic :: Software Development :: Libraries :: Python Modules
3232
Classifier: Topic :: Text Processing :: Markup
33-
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
33+
Requires-Python: >=3.8
34+
License-File: LICENSE
3435

3536
YAML is a data serialization format designed for human readability
3637
and interaction with scripting languages. PyYAML is a YAML parser
@@ -43,4 +44,3 @@ allow to represent an arbitrary Python object.
4344

4445
PyYAML is applicable for a broad range of tasks from complex
4546
configuration files to object serialization and persistence.
46-

contrib/python/PyYAML/py3/README

Lines changed: 0 additions & 43 deletions
This file was deleted.

contrib/python/PyYAML/py3/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
PyYAML
2+
======
3+
4+
A full-featured YAML processing framework for Python
5+
6+
## Installation
7+
8+
To install, type `python setup.py install`.
9+
10+
By default, the `setup.py` script checks whether LibYAML is installed and if
11+
so, builds and installs LibYAML bindings.
12+
To skip the check and force installation of LibYAML bindings, use the option
13+
`--with-libyaml`: `python setup.py --with-libyaml install`.
14+
To disable the check and skip building and installing LibYAML bindings, use
15+
`--without-libyaml`: `python setup.py --without-libyaml install`.
16+
17+
When LibYAML bindings are installed, you may use fast LibYAML-based parser and
18+
emitter as follows:
19+
20+
>>> yaml.load(stream, Loader=yaml.CLoader)
21+
>>> yaml.dump(data, Dumper=yaml.CDumper)
22+
23+
If you don't trust the input YAML stream, you should use:
24+
25+
>>> yaml.safe_load(stream)
26+
27+
## Testing
28+
29+
PyYAML includes a comprehensive test suite.
30+
To run the tests, type `python setup.py test`.
31+
32+
## Further Information
33+
34+
* For more information, check the
35+
[PyYAML homepage](https://github.com/yaml/pyyaml).
36+
37+
* [PyYAML tutorial and reference](http://pyyaml.org/wiki/PyYAMLDocumentation).
38+
39+
* Discuss PyYAML with the maintainers on
40+
Matrix at https://matrix.to/#/#pyyaml:yaml.io or
41+
IRC #pyyaml irc.libera.chat
42+
43+
* Submit bug reports and feature requests to the
44+
[PyYAML bug tracker](https://github.com/yaml/pyyaml/issues).
45+
46+
## License
47+
48+
The PyYAML module was written by Kirill Simonov <xi@resolvent.net>.
49+
It is currently maintained by the YAML and Python communities.
50+
51+
PyYAML is released under the MIT license.
52+
53+
See the file LICENSE for more details.

contrib/python/PyYAML/py3/ya.make

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# Generated by devtools/yamaker (pypi).
2+
13
PY3_LIBRARY()
24

3-
LICENSE(MIT)
5+
VERSION(6.0.2)
46

5-
VERSION(5.4.1)
7+
LICENSE(MIT)
68

79
PEERDIR(
810
contrib/libs/yaml
@@ -13,6 +15,10 @@ ADDINCL(
1315
FOR cython contrib/python/PyYAML/py3
1416
)
1517

18+
NO_COMPILER_WARNINGS()
19+
20+
NO_LINT()
21+
1622
PY_SRCS(
1723
TOP_LEVEL
1824
_yaml/__init__.py
@@ -38,13 +44,9 @@ PY_SRCS(
3844
)
3945

4046
RESOURCE_FILES(
41-
PREFIX contrib/python/PyYAML/
47+
PREFIX contrib/python/PyYAML/py3/
4248
.dist-info/METADATA
4349
.dist-info/top_level.txt
4450
)
4551

46-
NO_LINT()
47-
48-
NO_COMPILER_WARNINGS()
49-
5052
END()

contrib/python/PyYAML/py3/yaml/__init__.py

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .loader import *
99
from .dumper import *
1010

11-
__version__ = '5.4.1'
11+
__version__ = '6.0.2'
1212
try:
1313
from .cyaml import *
1414
__with_libyaml__ = True
@@ -18,41 +18,12 @@
1818
import io
1919

2020
#------------------------------------------------------------------------------
21-
# Warnings control
21+
# XXX "Warnings control" is now deprecated. Leaving in the API function to not
22+
# break code that uses it.
2223
#------------------------------------------------------------------------------
23-
24-
# 'Global' warnings state:
25-
_warnings_enabled = {
26-
'YAMLLoadWarning': True,
27-
}
28-
29-
# Get or set global warnings' state
3024
def warnings(settings=None):
3125
if settings is None:
32-
return _warnings_enabled
33-
34-
if type(settings) is dict:
35-
for key in settings:
36-
if key in _warnings_enabled:
37-
_warnings_enabled[key] = settings[key]
38-
39-
# Warn when load() is called without Loader=...
40-
class YAMLLoadWarning(RuntimeWarning):
41-
pass
42-
43-
def load_warning(method):
44-
if _warnings_enabled['YAMLLoadWarning'] is False:
45-
return
46-
47-
import warnings
48-
49-
message = (
50-
"calling yaml.%s() without Loader=... is deprecated, as the "
51-
"default Loader is unsafe. Please read "
52-
"https://msg.pyyaml.org/load for full details."
53-
) % method
54-
55-
warnings.warn(message, YAMLLoadWarning, stacklevel=3)
26+
return {}
5627

5728
#------------------------------------------------------------------------------
5829
def scan(stream, Loader=Loader):
@@ -100,30 +71,22 @@ def compose_all(stream, Loader=Loader):
10071
finally:
10172
loader.dispose()
10273

103-
def load(stream, Loader=None):
74+
def load(stream, Loader):
10475
"""
10576
Parse the first YAML document in a stream
10677
and produce the corresponding Python object.
10778
"""
108-
if Loader is None:
109-
load_warning('load')
110-
Loader = FullLoader
111-
11279
loader = Loader(stream)
11380
try:
11481
return loader.get_single_data()
11582
finally:
11683
loader.dispose()
11784

118-
def load_all(stream, Loader=None):
85+
def load_all(stream, Loader):
11986
"""
12087
Parse all YAML documents in a stream
12188
and produce corresponding Python objects.
12289
"""
123-
if Loader is None:
124-
load_warning('load_all')
125-
Loader = FullLoader
126-
12790
loader = Loader(stream)
12891
try:
12992
while loader.check_data():

contrib/python/PyYAML/py3/yaml/_yaml.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11

22
#include <yaml.h>
33

4-
#if PY_MAJOR_VERSION < 3
5-
6-
#define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), "strict")
7-
8-
#else
9-
10-
#define PyString_CheckExact PyBytes_CheckExact
11-
#define PyString_AS_STRING PyBytes_AS_STRING
12-
#define PyString_GET_SIZE PyBytes_GET_SIZE
13-
#define PyString_FromStringAndSize PyBytes_FromStringAndSize
14-
15-
#endif
4+
#define PyUnicode_FromYamlString(s) PyUnicode_FromString((const char *)(void *)(s))
5+
#define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
166

177
#ifdef _MSC_VER /* MS Visual C++ 6.0 */
188
#if _MSC_VER == 1200

0 commit comments

Comments
 (0)