From 16914feb1217bbe0f0df64affd1a909a24e23ec6 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 22 Dec 2022 22:47:14 -0500 Subject: [PATCH] Get ready for release 3.9.0 --- NEWS.md | 24 +++++++++++++++++++++++- admin-tools/check-3.3-3.5-versions.sh | 27 +++++++++++++++++++++++++++ admin-tools/pyenv-newest-versions | 2 +- pytest/Makefile | 2 +- uncompyle6/version.py | 2 +- 5 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 admin-tools/check-3.3-3.5-versions.sh diff --git a/NEWS.md b/NEWS.md index 5125ccf76..9f33e2955 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,26 @@ -3.8.0: 2020-10-29 +3.9.0: 2022-12-22 +================= + +* deparse generator expressions for Python 3.0 .. 3.2 +* Python 3.0 list comprehension. +* Fix Issues #310, #344, #377, #391, #409, #414 +* Limited support for 3.8+ f-string "=" specifier +* Correct 2.5-7 relative import formatting +* Miscellaneous bug fixing +* remove \n in lambda +* Python 2.6 gramar cleanup +* Correct some Python 2.6 chain compare decompilation +* Ensure no parenthesis subscript slices +* Correct 2.x formatting "slice2" nonterminal +* Correct 3.7 imports +* Improve "async for" parsing +* Handle BUILD_MAP opcode +* match Python AT better +* Correct 3.7 positional args +* PyPy 3.7 and PyPy 3.8 support +* Miscellaneous linting, isorting, blacking + +3.8.0: 2021-10-29 ================= * Better handling of invalid bytecode magic diff --git a/admin-tools/check-3.3-3.5-versions.sh b/admin-tools/check-3.3-3.5-versions.sh new file mode 100644 index 000000000..5b451577f --- /dev/null +++ b/admin-tools/check-3.3-3.5-versions.sh @@ -0,0 +1,27 @@ +#!/bin/bash +function finish { + cd $owd +} +owd=$(pwd) +trap finish EXIT + +cd $(dirname ${BASH_SOURCE[0]}) +if ! source ./pyenv-3.3-3.5-versions ; then + exit $? +fi +if ! source ./setup-python-3.3.sh ; then + exit $? +fi + +cd .. +for version in $PYVERSIONS; do + echo --- $version --- + if ! pyenv local $version ; then + exit $? + fi + make clean && python setup.py develop + if ! make check ; then + exit $? + fi + echo === $version === +done diff --git a/admin-tools/pyenv-newest-versions b/admin-tools/pyenv-newest-versions index 4350d1bc0..f59118635 100644 --- a/admin-tools/pyenv-newest-versions +++ b/admin-tools/pyenv-newest-versions @@ -5,4 +5,4 @@ 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 pypy-3.7-3.9 pypy3.8-7.3.10 pyston-2.3.5 3.8.14' +export PYVERSIONS='3.6.15 pypy3.6-7.3.1 3.7.16 pypy3.7-7.3.9 pypy3.8-7.3.10 pyston-2.3.5 3.8.16' diff --git a/pytest/Makefile b/pytest/Makefile index cb4c0caa6..16ab89a64 100644 --- a/pytest/Makefile +++ b/pytest/Makefile @@ -7,5 +7,5 @@ PYTHON ?= python test check pytest: @PYTHON_VERSION=`$(PYTHON) -V 2>&1 | cut -d ' ' -f 2 | cut -d'.' -f1,2`; \ if [[ $$PYTHON_VERSION > 3.2 ]] || [[ $$PYTHON_VERSION == 2.7 ]] || [[ $$PYTHON_VERSION == 2.6 ]]; then \ - py.test; \ + $(PYTHON) -m pytest .; \ fi diff --git a/uncompyle6/version.py b/uncompyle6/version.py index 44c88a7dc..e6a3e3c77 100644 --- a/uncompyle6/version.py +++ b/uncompyle6/version.py @@ -14,4 +14,4 @@ # This file is suitable for sourcing inside POSIX shell as # well as importing into Python # fmt: off -__version__="3.9.0a1" # noqa +__version__="3.9.0" # noqa