Skip to content

Commit c1a170a

Browse files
committed
Merge remote-tracking branch 'origin/master' into mq/hpy-update-100322
2 parents 502e53e + 3f34b06 commit c1a170a

File tree

18 files changed

+136
-34
lines changed

18 files changed

+136
-34
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ language runtime. The main focus is on user-observable behavior of the engine.
55

66
## Version 22.1.0
77
* String conversion (`__str__`) now calls `toString` for Java objects and `toDisplayString` interop message for foreign objects.
8-
* Improved compatibility with PyPI packages `lxml`, `pytz`, `Pillow`, `urllib3`, `setuptools`
8+
* Improved compatibility with PyPI packages `lxml`, `pytz`, `Pillow`, `urllib3`, `setuptools`, `pytest`, `twine`, `jinja2`, and `six`
99
* Introduced dependency on bouncycastle
1010
* Added support for more private key formats (PKCS#1, password protected) in ssl module
11+
* Added support for module freezing, which makes start to the Python REPL 30% faster and with 40% less memory usage.
1112

1213
## Version 22.0.0
1314
* Added support for `pyexpat` module.

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "5ec759140c0a336420842579a87ebc2e4d20b8e7" }
1+
{ "overlay": "c00ca17e31eab8ca27e6acac0fbe0534f8585490" }

graalpython/com.oracle.graal.python.cext/lzma/config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -70,7 +70,11 @@
7070
#define HAVE_FCNTL_H 1
7171
#define HAVE_FUTIMENS 1
7272
#define HAVE_GETTEXT 1
73+
#ifdef __aarch64__
74+
#define HAVE_IMMINTRIN_H 0
75+
#else
7376
#define HAVE_IMMINTRIN_H 1
77+
#endif
7478
#define HAVE_INTTYPES_H 1
7579
#define HAVE_LIMITS_H 1
7680
#define HAVE_MBRTOWC 1

graalpython/com.oracle.graal.python.parser.antlr/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ${STAMP}: ${SOURCE} ${POSTPROCESSOR}
5656

5757
# postprocessing to make source compile without warnings
5858
${PARSER_PATH}/%.java: ${STAMP}
59-
python ${POSTPROCESSOR} $@
59+
python3 ${POSTPROCESSOR} $@
6060

6161
clean:
6262
ifeq ($(wildcard ${SOURCE}),)

graalpython/com.oracle.graal.python.tck/src/com/oracle/graal/python/tck/PythonProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -89,7 +89,7 @@ public class PythonProvider implements LanguageProvider {
8989
private static final TypeDescriptor BOOL = BOOLEAN;
9090
private static final TypeDescriptor FLOAT = NUMBER;
9191
private static final TypeDescriptor COMPLEX = intersection(OBJECT);
92-
private static final TypeDescriptor NONE = NULL;
92+
private static final TypeDescriptor NONE = intersection(NULL, OBJECT);
9393
private static final TypeDescriptor STR = intersection(OBJECT, STRING, ITERABLE, array(STRING));
9494
private static final TypeDescriptor BYTES = intersection(OBJECT, ITERABLE, array(INT));
9595
private static final TypeDescriptor BYTEARRAY = intersection(OBJECT, ITERABLE, array(INT));

graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -40,9 +40,8 @@
4040
import glob
4141
import os
4242
import subprocess
43-
import test
44-
4543
import sys
44+
import test
4645

4746
if os.environ.get("ENABLE_CPYTHON_TAGGED_UNITTESTS") == "true" or __name__ == "__main__":
4847
TAGS_DIR = os.path.join(os.path.dirname(__file__), "unittest_tags")
@@ -139,7 +138,18 @@ class TestTaggedUnittests(unittest.TestCase):
139138
total = 1
140139
assert selected < total
141140

142-
working_tests = collect_working_tests()[selected::total]
141+
working_tests = collect_working_tests()
142+
selection = os.environ.get('TAGGED_UNITTEST_SELECTION')
143+
if not selection:
144+
working_tests = working_tests[selected::total]
145+
else:
146+
selection = set(s.strip() for s in selection.split(","))
147+
working_tests = [x for x in working_tests if x[0] in selection]
148+
print("-----------------------------------------------------------------------------------------------------------")
149+
print("working tests: ")
150+
print([x[0] for x in working_tests])
151+
print("-----------------------------------------------------------------------------------------------------------")
152+
143153
for idx, working_test in enumerate(working_tests):
144154
fn = make_test_function(working_test)
145155
fn.__name__ = "%s[%d/%d]" % (fn.__name__, idx + 1, len(working_tests))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*graalpython.lib-python.3.test.test_frozen.TestFrozen.test_frozen

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_imp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*graalpython.lib-python.3.test.test_imp.ImportTests.test_issue3594
1111
*graalpython.lib-python.3.test.test_imp.ImportTests.test_issue5604
1212
*graalpython.lib-python.3.test.test_imp.ImportTests.test_issue9319
13+
*graalpython.lib-python.3.test.test_imp.ImportTests.test_issue_35321
1314
*graalpython.lib-python.3.test.test_imp.ImportTests.test_load_dynamic_ImportError_path
1415
*graalpython.lib-python.3.test.test_imp.ImportTests.test_load_from_source
1516
*graalpython.lib-python.3.test.test_imp.ImportTests.test_load_module_extension_file_is_None

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_lib2to3.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,24 @@
439439
*lib2to3.tests.test_fixers.Test_urllib.test_import_module_as
440440
*lib2to3.tests.test_fixers.Test_urllib.test_import_module_usage
441441
*lib2to3.tests.test_fixers.Test_urllib.test_indented
442+
*lib2to3.tests.test_fixers.Test_urllib.test_star
443+
*lib2to3.tests.test_fixers.Test_xrange.test_in_consuming_context
444+
*lib2to3.tests.test_fixers.Test_xrange.test_in_contains_test
445+
*lib2to3.tests.test_fixers.Test_xrange.test_prefix_preservation
446+
*lib2to3.tests.test_fixers.Test_xrange.test_range_in_for
447+
*lib2to3.tests.test_fixers.Test_xrange.test_single_arg
448+
*lib2to3.tests.test_fixers.Test_xrange.test_three_args
449+
*lib2to3.tests.test_fixers.Test_xrange.test_two_args
450+
*lib2to3.tests.test_fixers.Test_xrange.test_wrap_in_list
451+
*lib2to3.tests.test_fixers.Test_xrange.test_xrange_in_for
452+
*lib2to3.tests.test_fixers.Test_xrange_with_reduce.test_double_transform
453+
*lib2to3.tests.test_fixers.Test_xreadlines.test_attr_ref
454+
*lib2to3.tests.test_fixers.Test_xreadlines.test_call
455+
*lib2to3.tests.test_fixers.Test_xreadlines.test_unchanged
456+
*lib2to3.tests.test_fixers.Test_zip.test_future_builtins
457+
*lib2to3.tests.test_fixers.Test_zip.test_zip_basic
458+
*lib2to3.tests.test_fixers.Test_zip.test_zip_nochange
459+
*lib2to3.tests.test_fixers.Test_zip.test_zip_trailers
442460
*lib2to3.tests.test_parser.TestPgen2Caching.test_load_grammar_from_pickle
443461
*lib2to3.tests.test_parser.TestPgen2Caching.test_load_grammar_from_subprocess
444462
*lib2to3.tests.test_parser.TestPgen2Caching.test_load_grammar_from_txt_file

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_logging.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
*graalpython.lib-python.3.test.test_logging.HandlerTest.test_name
9494
*graalpython.lib-python.3.test.test_logging.HandlerTest.test_path_objects
9595
*graalpython.lib-python.3.test.test_logging.HandlerTest.test_post_fork_child_no_deadlock
96-
*graalpython.lib-python.3.test.test_logging.HandlerTest.test_race
9796
*graalpython.lib-python.3.test.test_logging.IPv6SysLogHandlerTest.test_output
9897
*graalpython.lib-python.3.test.test_logging.LastResortTest.test_last_resort
9998
*graalpython.lib-python.3.test.test_logging.LogRecordFactoryTest.test_logrecord_class

0 commit comments

Comments
 (0)