You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Get ready for release 3.8.0
This commit is contained in:
11
NEWS.md
11
NEWS.md
@@ -1,3 +1,14 @@
|
|||||||
|
3.8.0: 2020-10-29
|
||||||
|
=================
|
||||||
|
|
||||||
|
* Better handling of invalid bytecode magic
|
||||||
|
* Support running from 3.9 and 3.10 although we do not support those bytecodes
|
||||||
|
* Redo version comparisons using tuples instead of floats. This is needed for Python 3.10
|
||||||
|
* Split out into 3 branches so that the master branch can assume Python 3.6+ conventions, especially type annotations
|
||||||
|
* Source Fragment fixes
|
||||||
|
* Lambda-bug fixes #360
|
||||||
|
* Bug fixes
|
||||||
|
|
||||||
3.7.4: 2020-8-05
|
3.7.4: 2020-8-05
|
||||||
================
|
================
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ entry_points = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
ftp_url = None
|
ftp_url = None
|
||||||
install_requires = ["spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.0, < 6.1.0"]
|
install_requires = ["spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.2, < 6.1.0"]
|
||||||
|
|
||||||
license = "GPL3"
|
license = "GPL3"
|
||||||
mailing_list = "python-debugger@googlegroups.com"
|
mailing_list = "python-debugger@googlegroups.com"
|
||||||
|
@@ -6,7 +6,7 @@ owd=$(pwd)
|
|||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
if ! source ./pyenv-older-versions ; then
|
if ! source ./pyenv-2.4-2.7-versions ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
if ! source ./setup-python-2.4.sh ; then
|
if ! source ./setup-python-2.4.sh ; then
|
@@ -9,7 +9,7 @@ owd=$(pwd)
|
|||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
if ! source ./pyenv-older-versions ; then
|
if ! source ./pyenv-2.4-2.7-versions ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
if ! source ./setup-python-2.4.sh ; then
|
if ! source ./setup-python-2.4.sh ; then
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
# -*- shell-script -*-
|
|
||||||
# Sets PYVERSIONS to be pyenv versions that
|
|
||||||
# we can use in the python-2.4 branch.
|
|
||||||
|
|
||||||
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
|
||||||
echo "This script should be *sourced* rather than run directly through bash"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
export PYVERSIONS='2.4.6 2.5.6 2.6.9'
|
|
@@ -1,9 +0,0 @@
|
|||||||
# -*- shell-script -*-
|
|
||||||
# Sets PYVERSIONS to be all pyenv the oldest versions we have.
|
|
||||||
# These are not covered (yet) by uncompyle6, although
|
|
||||||
# some programs do work here.
|
|
||||||
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
|
||||||
echo "This script should be *sourced* rather than run directly through bash"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
export PYVERSIONS='2.1.3 2.2.3 2.3.7'
|
|
@@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
|||||||
echo "This script should be *sourced* rather than run directly through bash"
|
echo "This script should be *sourced* rather than run directly through bash"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
export PYVERSIONS='3.7.10 3.8.10'
|
export PYVERSIONS='3.7.11 3.8.12'
|
||||||
|
@@ -111,10 +111,9 @@ class Scanner(object):
|
|||||||
self.is_pypy = is_pypy
|
self.is_pypy = is_pypy
|
||||||
|
|
||||||
if version[:2] in PYTHON_VERSIONS:
|
if version[:2] in PYTHON_VERSIONS:
|
||||||
|
v_str = f"""opcode_{version_tuple_to_str(version, start=0, end=2, delimiter="")}"""
|
||||||
if is_pypy:
|
if is_pypy:
|
||||||
v_str = "opcode_%spypy" % ("".join([str(v) for v in version]))
|
v_str += "pypy"
|
||||||
else:
|
|
||||||
v_str = "opcode_%s" % ("".join([str(v) for v in version]))
|
|
||||||
exec("from xdis.opcodes import %s" % v_str)
|
exec("from xdis.opcodes import %s" % v_str)
|
||||||
exec("self.opc = %s" % v_str)
|
exec("self.opc = %s" % v_str)
|
||||||
else:
|
else:
|
||||||
@@ -544,7 +543,7 @@ def get_scanner(version, is_pypy=False, show_asm=None):
|
|||||||
|
|
||||||
# Pick up appropriate scanner
|
# Pick up appropriate scanner
|
||||||
if version[:2] in PYTHON_VERSIONS:
|
if version[:2] in PYTHON_VERSIONS:
|
||||||
v_str = "".join([str(v) for v in version[:2]])
|
v_str = version_tuple_to_str(version, start=0, end=2, delimiter="")
|
||||||
try:
|
try:
|
||||||
import importlib
|
import importlib
|
||||||
|
|
||||||
|
@@ -14,4 +14,4 @@
|
|||||||
# This file is suitable for sourcing inside POSIX shell as
|
# This file is suitable for sourcing inside POSIX shell as
|
||||||
# well as importing into Python
|
# well as importing into Python
|
||||||
# fmt: off
|
# fmt: off
|
||||||
__version__="3.7.5.dev0" # noqa
|
__version__="3.8.0" # noqa
|
||||||
|
Reference in New Issue
Block a user