Skip to content

Commit 2885576

Browse files
committed
Get ready for release 3.7.4
1 parent 8eb4d6a commit 2885576

File tree

7 files changed

+66
-44
lines changed

7 files changed

+66
-44
lines changed

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
3.7.4: 2020-8-05
2+
================
3+
4+
* Fragment parsing was borked. This means deparsing in trepan2/trepan3k was broken
5+
* 3.7+: narrow precedence for call tatement
6+
* del_stmt -> delete to better match Python AST
7+
* 3.8+ Add another `forelsestmt` (found only in a loop)
8+
* 3.8+ Add precedence on walrus operator
9+
* More files blackened
10+
* bump min xdis version
11+
112
3.7.3: 2020-7-25
213
================
314

__pkginfo__.py

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,65 +33,71 @@
3333
# 3.4 | pip | 19.1.1 |
3434

3535
# Things that change more often go here.
36-
copyright = """
36+
copyright = """
3737
Copyright (C) 2015-2020 Rocky Bernstein <rb@dustyfeet.com>.
3838
"""
3939

40-
classifiers = ["Development Status :: 5 - Production/Stable",
41-
"Intended Audience :: Developers",
42-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
43-
"Operating System :: OS Independent",
44-
"Programming Language :: Python",
45-
"Programming Language :: Python :: 2.4",
46-
"Programming Language :: Python :: 2.5",
47-
"Programming Language :: Python :: 2.6",
48-
"Programming Language :: Python :: 2.7",
49-
"Programming Language :: Python :: 3.0",
50-
"Programming Language :: Python :: 3.1",
51-
"Programming Language :: Python :: 3.2",
52-
"Programming Language :: Python :: 3.3",
53-
"Programming Language :: Python :: 3.4",
54-
"Programming Language :: Python :: 3.5",
55-
"Programming Language :: Python :: 3.6",
56-
"Programming Language :: Python :: 3.7",
57-
"Programming Language :: Python :: 3.8",
58-
"Topic :: Software Development :: Debuggers",
59-
"Topic :: Software Development :: Libraries :: Python Modules",
60-
]
40+
classifiers = [
41+
"Development Status :: 5 - Production/Stable",
42+
"Intended Audience :: Developers",
43+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
44+
"Operating System :: OS Independent",
45+
"Programming Language :: Python",
46+
"Programming Language :: Python :: 2.4",
47+
"Programming Language :: Python :: 2.5",
48+
"Programming Language :: Python :: 2.6",
49+
"Programming Language :: Python :: 2.7",
50+
"Programming Language :: Python :: 3.0",
51+
"Programming Language :: Python :: 3.1",
52+
"Programming Language :: Python :: 3.2",
53+
"Programming Language :: Python :: 3.3",
54+
"Programming Language :: Python :: 3.4",
55+
"Programming Language :: Python :: 3.5",
56+
"Programming Language :: Python :: 3.6",
57+
"Programming Language :: Python :: 3.7",
58+
"Programming Language :: Python :: 3.8",
59+
"Topic :: Software Development :: Debuggers",
60+
"Topic :: Software Development :: Libraries :: Python Modules",
61+
]
6162

6263
# The rest in alphabetic order
63-
author = "Rocky Bernstein, Hartmut Goebel, John Aycock, and others"
64-
author_email = "rb@dustyfeet.com"
65-
entry_points = {
64+
author = "Rocky Bernstein, Hartmut Goebel, John Aycock, and others"
65+
author_email = "rb@dustyfeet.com"
66+
entry_points = {
6667
"console_scripts": [
6768
"uncompyle6=uncompyle6.bin.uncompile:main_bin",
6869
"pydisassemble=uncompyle6.bin.pydisassemble:main",
69-
]}
70-
ftp_url = None
71-
install_requires = ["spark-parser >= 1.8.9, < 1.9.0",
72-
"xdis >= 4.7.0, <5.1.0"]
73-
74-
license = "GPL3"
75-
mailing_list = "python-debugger@googlegroups.com"
76-
modname = "uncompyle6"
77-
py_modules = None
78-
short_desc = "Python cross-version byte-code decompiler"
79-
web = "https://github.com/rocky/python-uncompyle6/"
70+
]
71+
}
72+
ftp_url = None
73+
install_requires = ["spark-parser >= 1.8.9, < 1.9.0", "xdis >= 5.0.4, <5.1.0"]
74+
75+
license = "GPL3"
76+
mailing_list = "python-debugger@googlegroups.com"
77+
modname = "uncompyle6"
78+
py_modules = None
79+
short_desc = "Python cross-version byte-code decompiler"
80+
web = "https://github.com/rocky/python-uncompyle6/"
8081

8182
# tracebacks in zip files are funky and not debuggable
8283
zip_safe = True
8384

8485

8586
import os.path
87+
88+
8689
def get_srcdir():
8790
filename = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
8891
return os.path.realpath(filename)
8992

93+
9094
srcdir = get_srcdir()
9195

96+
9297
def read(*rnames):
9398
return open(os.path.join(srcdir, *rnames)).read()
9499

100+
95101
# Get info from files; set: long_description and VERSION
96-
long_description = ( read("README.rst") + "\n" )
102+
long_description = read("README.rst") + "\n"
97103
exec(read("uncompyle6/version.py"))

admin-tools/how-to-make-a-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
# Make packages and tag
5656

5757
$ . ./admin-tools/make-dist-older.sh
58-
$ pyenv local 3.8.4
58+
$ pyenv local 3.8.5
5959
$ twine check dist/uncompyle6-$VERSION*
60+
$ git tag release-python-2.4-$VERSION
6061
$ ./admin-tools/make-dist-newer.sh
6162
$ twine check dist/uncompyle6-$VERSION*
62-
$ git tag release-python-2.4-$VERSION
6363

6464
# Check package on github
6565

admin-tools/pyenv-newer-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
55
echo "This script should be *sourced* rather than run directly through bash"
66
exit 1
77
fi
8-
export PYVERSIONS='3.5.9 3.6.11 2.6.9 3.3.7 2.7.18 3.2.6 3.1.5 3.4.10 3.7.8 3.8.5'
8+
export PYVERSIONS='3.5.9 3.6.12 2.6.9 3.3.7 2.7.18 3.2.6 3.1.5 3.4.10 3.7.9 3.8.5'

uncompyle6/show.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2018 Rocky Bernstein <rocky@gnu.org>
1+
# Copyright (C) 2018, 2020 Rocky Bernstein <rocky@gnu.org>
22
#
33
# This program is free software: you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -47,8 +47,11 @@ def maybe_show_tree(walker, ast):
4747
stream = walker.showast
4848
else:
4949
stream = sys.stdout
50-
if (isinstance(walker.showast, dict) and walker.showast.get("Full", False)
51-
and hasattr(walker, "str_with_template")):
50+
if (
51+
isinstance(walker.showast, dict)
52+
and walker.showast.get("Full", False)
53+
and hasattr(walker, "str_with_template")
54+
):
5255
walker.str_with_template(ast)
5356
else:
5457
stream.write(str(ast))

uncompyle6/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
from math import copysign
66
from uncompyle6 import PYTHON_VERSION
77

8+
89
def is_negative_zero(n):
910
"""Returns true if n is -0.0"""
1011
return n == 0.0 and copysign(1, n) == -1
1112

13+
1214
def better_repr(v, version):
1315
"""Work around Python's unorthogonal and unhelpful repr() for primitive float
1416
and complex."""

uncompyle6/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313
# This file is suitable for sourcing inside POSIX shell as
1414
# well as importing into Python
15-
VERSION="3.7.3" # noqa
15+
VERSION="3.7.4" # noqa

0 commit comments

Comments
 (0)