Skip to content

Commit 315ed3e

Browse files
committed
feature: add GraalPy
1 parent dabbcdd commit 315ed3e

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-graalpy230_310_native": {
3+
"x86_64": {
4+
"version": "23.0.0",
5+
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-linux-amd64.tar.gz",
6+
"sha256": "25e4fa7c1d45db6dcac5bfa4d1a0aa9ef5581623dc5903ce98d246c5d394639c"
7+
},
8+
"aarch64": {
9+
"version": "23.0.0",
10+
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-linux-aarch64.tar.gz",
11+
"sha256": "e2a00b2b6485282b4a04aa382e30d696e00d20eb2fe1736debbe2d9df2a8737a"
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)