Skip to content

Commit 4f43a01

Browse files
committed
Get ready for release 1.2.9
1 parent 360f243 commit 4f43a01

39 files changed

+116
-84
lines changed

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
1.2.9 2023-05-27
2+
================
3+
4+
Commands that are useful in remote envionments and docker:
5+
6+
* Add "set tempdir" to set location of TEMPDIR (useful docker)
7+
* Add "set/show substitute"
8+
9+
Other changes:
10+
11+
* Blacken, and isort, codespell, and lint many files
12+
* ignore ignored signal
13+
* specialize decompiler to decompyle for 3.7 and 3.8
14+
* fix incorrect tagging in install doc and update decompilation info
15+
* Squelch traceback on break in unparsable file
16+
117
1.2.8 2021-11-05
218
================
319

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|TravisCI| |CircleCI| |Pypi Installs| |license| |Supported Python Versions|
1+
|CircleCI| |Pypi Installs| |license| |Supported Python Versions|
22

33
|packagestatus|
44

__pkginfo__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Copyright (C) 2013, 2015-2018, 2020-2021 Rocky Bernstein <[email protected]>
1+
# Copyright (C) 2013, 2015-2018, 2020-2021, 2023 Rocky Bernstein
2+
23
#
34
# This program is free software: you can redistribute it and/or modify
45
# it under the terms of the GNU General Public License as published by
@@ -21,6 +22,7 @@
2122
# less elegant than having it here with reduced code, albeit there
2223
# still is some room for improvement.
2324

25+
import os.path as osp
2426
import sys
2527

2628
decompiler = "uncompyle6 >= 3.8.0"
@@ -42,7 +44,7 @@
4244
# 3.4 | pip | 19.1.1 |
4345

4446
# Things that change more often go here.
45-
copyright = """Copyright (C) 2013, 2015-2021 Rocky Bernstein <[email protected]>."""
47+
copyright = """Copyright (C) 2013, 2015-2021, 2023 Rocky Bernstein <[email protected]>."""
4648
classifiers = [
4749
"Development Status :: 5 - Production/Stable",
4850
"Environment :: Console",
@@ -93,8 +95,6 @@
9395
py_modules = []
9496
short_desc = "GDB-like Python Debugger in the Trepan family"
9597

96-
import os.path as osp
97-
9898

9999
def get_srcdir():
100100
filename = osp.normcase(osp.dirname(osp.abspath(__file__)))

admin-tools/check-newer-versions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ for version in $PYVERSIONS; do
1919
if ! pyenv local $version ; then
2020
exit $?
2121
fi
22+
python --version
2223
make clean && pip install -e .
2324
if ! make check; then
2425
exit $?

admin-tools/pyenv-newer-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
77
exit 1
88
fi
99

10-
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'
10+
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.10'

admin-tools/setup-python-3.2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if [[ $0 == $bs ]] ; then
2525
fi
2626

2727
mydir=$(dirname $bs)
28+
fulldir=$(readlink -f $mydir)
2829
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-uncompyle6)
2930
cd $owd
3031
rm -v */.python-version || true

trepan/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
import sys
3838

3939
from trepan import debugger as Mdebugger
40-
from trepan.post_mortem import post_mortem_excepthook, uncaught_exception
4140
from trepan.debugger import Trepan
41+
from trepan.post_mortem import post_mortem_excepthook, uncaught_exception
4242

4343

4444
def debugger_on_post_mortem():
45-
"""Call debugger on an exeception that terminates a program"""
45+
"""Call debugger on an exception that terminates a program"""
4646
sys.excepthook = post_mortem_excepthook
4747
return
4848

trepan/bwcli.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@
1717
""" The hairy command-line interface to the debugger.
1818
"""
1919
import os.path as osp
20-
import pyficache
2120
import sys
22-
2321
from optparse import OptionParser
2422

23+
import pyficache
24+
2525
# Our local modules
26-
from trepan import clifns as Mclifns
27-
from trepan import debugger as Mdebugger, exception as Mexcept, misc as Mmisc
28-
from trepan.lib.file import readable
26+
from trepan import (
27+
clifns as Mclifns,
28+
debugger as Mdebugger,
29+
exception as Mexcept,
30+
misc as Mmisc,
31+
)
2932
from trepan.interfaces.bullwinkle import BWInterface
33+
from trepan.lib.file import readable
3034

3135
# The name of the debugger we are currently going by.
3236
__title__ = "trepan"
@@ -40,7 +44,7 @@ def process_options(debugger_name, pkg_version, sys_argv, option_list=None):
4044
another main program and want to extend the existing set of debugger
4145
options.
4246
43-
The options dicionary from opt_parser is return. sys_argv is
47+
The options dictionary from opt_parser is return. sys_argv is
4448
also updated."""
4549
usage_str = """%prog [debugger-options] [python-script [script-options...]]
4650

trepan/bwprocessor/command/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (C) 2008, 2009, 2013 Rocky Bernstein <[email protected]>
12
# This program is free software: you can redistribute it and/or modify
23
# it under the terms of the GNU General Public License as published by
34
# the Free Software Foundation, either version 3 of the License, or
@@ -10,12 +11,11 @@
1011
#
1112
# You should have received a copy of the GNU General Public License
1213
# along with this program. If not, see <http://www.gnu.org/licenses/>.
13-
# """ Copyright (C) 2008, 2009, 2013 Rocky Bernstein <[email protected]> """
14-
__import__("pkg_resources").declare_namespace(__name__)
15-
1614
import glob
1715
import os
1816

17+
__import__("pkg_resources").declare_namespace(__name__)
18+
1919
# FIXME: Is it really helpful to "privatize" variable names below?
2020
# The below names are not part of the standard pre-defined names like
2121
# __name__ or __file__ are.
@@ -27,7 +27,7 @@
2727
__py_files__ = glob.glob(os.path.join(__command_dir__, "[a-z]*.py"))
2828

2929
# Take the basename of the filename and drop off '.py'. That minus the
30-
# files in exclude_files and tha becomes the list of modules that
30+
# files in exclude_files and that becomes the list of modules that
3131
# commands.py will use to import
3232
exclude_files = ["mock.py"]
3333
__modules__ = [

trepan/bwprocessor/command/base_cmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2009-2010, 2012-2013, 2015 Rocky Bernstein
2+
# Copyright (C) 2009-2010, 2012-2013, 2015, 2013 Rocky Bernstein
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
2020
and storing it as a list of known debugger commands.
2121
"""
2222

23-
NotImplementedMessage = "This method must be overriden in a subclass"
23+
NotImplementedMessage = "This method must be overridden in a subclass"
2424

2525
__all__ = ["DebuggerCommand"]
2626

@@ -54,7 +54,7 @@ def __init__(self, proc):
5454
# an assignment of method names like self.msg = self.debugger.intf.msg,
5555
# because we want to allow the interface (intf) to change
5656
# dynamically. That is, the value of self.debugger may change
57-
# in the course of the program and if we made such an method assignemnt
57+
# in the course of the program and if we made such an method assignment
5858
# we wouldn't pick up that change in our self.msg
5959
def errmsg(self, msg, opts={}):
6060
"""Convenience short-hand for self.debugger.intf.errmsg"""

0 commit comments

Comments
 (0)