Skip to content

Commit 5a194b3

Browse files
committed
feature: add GraalPy
1 parent 7d57077 commit 5a194b3

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

docker/build_scripts/manylinux-interpreters.py

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def sort_key(tag):
2121
python_tag, _ = tag.split("-")
2222
if python_tag.startswith(("cp", "pp")):
2323
return python_tag[:2], int(python_tag[2]), int(python_tag[3:])
24+
if python_tag.startswith("graalpy"):
25+
return python_tag[:7], int(python_tag[7]), int(python_tag[8:])
2426
raise LookupError(tag)
2527

2628

@@ -83,6 +85,12 @@ def get_info_from_tag(tag):
8385
"i": "pypy",
8486
"iv": PYTHON_TAGS[tag][ARCH]["version"]
8587
}
88+
if python_tag.startswith("graalpy"):
89+
return {
90+
"pv": f"{python_tag[7]}.{python_tag[8:]}",
91+
"i": "graalpy",
92+
"iv": PYTHON_TAGS[tag][ARCH]["version"]
93+
}
8694
raise LookupError(tag)
8795

8896

docker/build_scripts/python_versions.json

+12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
2+
"graalpy310-graalpy231_310_native": {
3+
"x86_64": {
4+
"version": "23.1.0",
5+
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.1.0/graalpy-23.1.0-linux-amd64.tar.gz",
6+
"sha256": "afbb81f034e77aecf4717fe14f2a7403aa1b82f0abf53a2e55e46bd49efe8c39"
7+
},
8+
"aarch64": {
9+
"version": "23.1.0",
10+
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.1.0/graalpy-23.1.0-linux-aarch64.tar.gz",
11+
"sha256": "be1e21ea245ddbdb9c266e670d6f1e76a55c693f98cee44aa74a76b249e53f96"
12+
}
13+
},
214
"pp37-pypy37_pp73": {
315
"x86_64": {
416
"version": "7.3.9",

tests/run_tests.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ if [ "${AUDITWHEEL_POLICY:0:10}" == "musllinux_" ]; then
2121
EXPECTED_PYTHON_COUNT=7
2222
EXPECTED_PYTHON_COUNT_ALL=7
2323
else
24-
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] || [ "${AUDITWHEEL_ARCH}" == "i686" ] || [ "${AUDITWHEEL_ARCH}" == "aarch64" ]; then
24+
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] || [ "${AUDITWHEEL_ARCH}" == "aarch64" ]; then
25+
EXPECTED_PYTHON_COUNT=11
26+
EXPECTED_PYTHON_COUNT_ALL=12
27+
elif [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
2528
EXPECTED_PYTHON_COUNT=11
2629
EXPECTED_PYTHON_COUNT_ALL=11
2730
else

0 commit comments

Comments
 (0)