Skip to content

Commit

Permalink
Support pypy3.8.15
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 20, 2022
1 parent 8ad3989 commit 230e9a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion admin-tools/pyenv-newest-versions
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
echo "This script should be *sourced* rather than run directly through bash"
exit 1
fi
export PYVERSIONS='3.6.15 pypy3.6-7.3.1 3.7.16 pypy3.7-7.3.10 pypy3.8-7.3.10 pypy3.9-7.3.8 pyston-2.3.5 3.8.16 3.9.16 3.10.9'

export PYVERSIONS='3.6.15 pypy3.6-7.3.1 3.7.16 pypy3.7-7.3.9 pypy3.8-7.3.10 pypy3.9-7.3.10 pyston-2.3.5 3.8.16 3.9.16 3.10.9'
5 changes: 3 additions & 2 deletions xdis/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

from xdis.version_info import IS_PYPY, version_tuple_to_str

IS_PYPY3 = (48, 64, 112, 160, 192, 240, 244)
IS_PYPY3 = (48, 64, 112, 160, 192, 240, 244, 256)


def add_magic_from_int(magic_int, version):
Expand Down Expand Up @@ -341,6 +341,7 @@ def __by_version(magics) -> dict:
add_magic_from_int(192, "3.6pypy") # '3.6.9 ... PyPy 7.1.0-beta0'
add_magic_from_int(224, "3.7pypy") # PyPy 3.7.9-beta0
add_magic_from_int(240, "3.7pypy") # PyPy 3.7.9-beta0
add_magic_from_int(256, "3.8pypy") # PyPy 3.8.15

# NOTE: This is JVM bytecode not Python bytecode
add_magic_from_int(21150, "3.8.5Graal")
Expand Down Expand Up @@ -416,7 +417,7 @@ def add_canonic_versions(versions, canonic):
add_canonic_versions("3.5.3pypy", "3.5pypy")
add_canonic_versions("3.6.9pypy", "3.6pypy")
add_canonic_versions("3.7.0pypy 3.7.9pypy 3.7.10pypy 3.7.12pypy 3.7.13pypy", "3.7pypy")
add_canonic_versions("3.8.0pypy 3.8pypy 3.8.12pypy 3.8.13pypy", "3.8.12pypy")
add_canonic_versions("3.8.0pypy 3.8pypy 3.8.12pypy 3.8.13pypy 3.8.15pypy", "3.8.12pypy")
add_canonic_versions("2.7.8Pyston", "2.7.7Pyston")
add_canonic_versions("3.7.0alpha3", "3.7.0alpha3")
add_canonic_versions(
Expand Down
3 changes: 2 additions & 1 deletion xdis/op_imports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2018-2019, 2021 by Rocky Bernstein
# (C) Copyright 2018-2019, 2021-2022 by Rocky Bernstein
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -143,6 +143,7 @@
"3.6.1pypy": opcode_36pypy,
"3.7pypy": opcode_37pypy,
"3.8.0pypy": opcode_38pypy,
"3.8pypy": opcode_38pypy,
"3.8.12pypy": opcode_38pypy,
"3.8.13pypy": opcode_38pypy,
"3.9pypy": opcode_39pypy,
Expand Down

0 comments on commit 230e9a2

Please sign in to comment.