Skip to content

Commit

Permalink
feature: add GraalPy
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Aug 15, 2023
1 parent c258267 commit 4b86663
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docker/build_scripts/manylinux-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def sort_key(tag):
python_tag, _ = tag.split("-")
if python_tag.startswith(("cp", "pp")):
return python_tag[:2], int(python_tag[2]), int(python_tag[3:])
if python_tag.startswith("graalpy"):
return python_tag[:7], int(python_tag[7]), int(python_tag[8:])
raise LookupError(tag)


Expand Down Expand Up @@ -81,6 +83,12 @@ def get_info_from_tag(tag):
"i": "pypy",
"iv": PYTHON_TAGS[tag][ARCH]["version"]
}
if python_tag.startswith("graalpy"):
return {
"pv": f"{python_tag[7]}.{python_tag[8:]}",
"i": "graalpy",
"iv": PYTHON_TAGS[tag][ARCH]["version"]
}
raise LookupError(tag)


Expand Down
12 changes: 12 additions & 0 deletions docker/build_scripts/python_versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"graalpy310-graalpy230_310_native": {
"x86_64": {
"version": "23.0.0",
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-linux-amd64.tar.gz",
"sha256": "25e4fa7c1d45db6dcac5bfa4d1a0aa9ef5581623dc5903ce98d246c5d394639c"
},
"aarch64": {
"version": "23.0.0",
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-linux-aarch64.tar.gz",
"sha256": "e2a00b2b6485282b4a04aa382e30d696e00d20eb2fe1736debbe2d9df2a8737a"
}
},
"pp37-pypy37_pp73": {
"x86_64": {
"version": "7.3.9",
Expand Down
5 changes: 4 additions & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ if [ "${AUDITWHEEL_POLICY:0:10}" == "musllinux_" ]; then
EXPECTED_PYTHON_COUNT=7
EXPECTED_PYTHON_COUNT_ALL=7
else
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] || [ "${AUDITWHEEL_ARCH}" == "i686" ] || [ "${AUDITWHEEL_ARCH}" == "aarch64" ]; then
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] || [ "${AUDITWHEEL_ARCH}" == "aarch64" ]; then
EXPECTED_PYTHON_COUNT=11
EXPECTED_PYTHON_COUNT_ALL=12
elif [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
EXPECTED_PYTHON_COUNT=11
EXPECTED_PYTHON_COUNT_ALL=11
else
Expand Down

0 comments on commit 4b86663

Please sign in to comment.