Skip to content

Commit

Permalink
feature: add GraalPy
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed May 7, 2024
1 parent 7d57077 commit 5a194b3
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-interpreters.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 @@ -83,6 +85,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-graalpy231_310_native": {
"x86_64": {
"version": "23.1.0",
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.1.0/graalpy-23.1.0-linux-amd64.tar.gz",
"sha256": "afbb81f034e77aecf4717fe14f2a7403aa1b82f0abf53a2e55e46bd49efe8c39"
},
"aarch64": {
"version": "23.1.0",
"download_url": "https://github.com/oracle/graalpython/releases/download/graal-23.1.0/graalpy-23.1.0-linux-aarch64.tar.gz",
"sha256": "be1e21ea245ddbdb9c266e670d6f1e76a55c693f98cee44aa74a76b249e53f96"
}
},
"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 5a194b3

Please sign in to comment.