Skip to content

Commit e87c4ac

Browse files
committed
Get ready for release 1.2.3
1 parent 258752b commit e87c4ac

12 files changed

Lines changed: 64 additions & 23 deletions

File tree

NEWS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
trepan 1.2.3 2021-01-24
2+
=======================
3+
4+
* Add `set tempdir` and `show tempdir`. In remote debugging this is useful
5+
* eval?: add "and" and "or" by stripping out the final and/or
6+
* deal wit no style set
7+
* use PyPI term-background package
8+
* fix bug in decompiling
9+
110
trepan 1.2.2 2020-10-11
211
=======================
312

__pkginfo__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2008-2010, 2013-2018 Rocky Bernstein <rocky@gnu.org>
1+
# Copyright (C) 2008-2010, 2013-2018, 2021 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
@@ -91,17 +91,12 @@ def get_srcdir():
9191
return osp.realpath(filename)
9292

9393

94-
# VERSION.py sets variable VERSION.
94+
# trepan/version.py sets variable __version__.
9595
ns = {}
9696
exec(open(osp.join(get_srcdir(), "trepan", "version.py")).read(), ns)
97-
version = ns["VERSION"]
97+
version = ns["__version__"]
9898
web = "http://github.com/rocky/python2-trepan/"
9999

100-
# VERSION.py sets variable VERSION.
101-
ns = {}
102-
exec(open(osp.join(get_srcdir(), "trepan", "version.py")).read(), ns)
103-
version = ns["VERSION"]
104-
105100
# tracebacks in zip files are funky and not debuggable
106101
zip_safe = False
107102

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
$ emacs trepan/version.py
2323
$ source trepan/version.py
24-
$ echo $VERSION
25-
$ git commit -m"Get ready for release $VERSION" .
24+
$ echo $__version__
25+
$ git commit -m"Get ready for release $__version__" .
2626

2727
# Update ChangeLog:
2828

@@ -54,10 +54,10 @@
5454
# Make packages and tag
5555

5656
$ . ./admin-tools/make-dist-older.sh
57-
$ pyenv local 3.8.3 && twine check dist/trepan2-$VERSION* && pyenv local 2.7.18s
58-
$ git tag release-python-2.4-$VERSION
57+
$ pyenv local 3.8.3 && twine check dist/trepan2-$__version__* && pyenv local 2.7.18s
58+
$ git tag release-python-2.4-$__version__
5959
$ . ./admin-tools/make-dist-newer.sh
60-
$ pyenv local 3.8.3 && twine check dist/trepan2-$VERSION* && pyenv local 2.7.18
60+
$ pyenv local 3.8.3 && twine check dist/trepan2-$__version__* && pyenv local 2.7.18
6161

6262

6363
# Check package on github
@@ -75,12 +75,12 @@ Goto https://github.com/rocky/python2-trepan/releases/new
7575

7676
# Get on PyPy
7777

78-
$ pyenv local 3.6.10 && twine upload dist/trepan2-${VERSION}* && pyenv local 2.7.18
78+
$ pyenv local 3.6.10 && twine upload dist/trepan2-${__version__}* && pyenv local 2.7.18
7979
# Push tags:
8080

8181
$ git pull --tags
8282
$ git push --tags
8383

8484
# Move dist files to uploaded
8585

86-
$ mv -v dist/trepan2-${VERSION}* dist/uploaded
86+
$ mv -v dist/trepan2-${__version__}* dist/uploaded

docs/commands/set.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ environment settings with the :ref:`show <show>` command.
3838
set/skip
3939
set/style
4040
set/substitute
41+
set/tempdir
4142
set/trace
4243
set/width

docs/commands/set/tempdir.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. index:: set; tempdir
2+
.. _set_tempdir:
3+
4+
Set Tempdir
5+
-----------
6+
7+
**set tempdir** *directory*
8+
9+
This is sometimes useful remote debugging where you might set up a
10+
common shared location available between the debugged process and
11+
the front end client.
12+
13+
14+
Example:
15+
++++++++
16+
17+
::
18+
19+
set tempdir /code/tmp # /code is a shared directory
20+
21+
.. seealso::
22+
23+
:ref:`show tempdir <show_tempdir>`

docs/commands/show.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ Show
3232
show/maxstring
3333
show/skip
3434
show/style
35+
show/tempdir
3536
show/trace
3637
show/width

docs/commands/show/tempdir.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. index:: show; tempdir
2+
.. _show_tempdir:
3+
4+
Show Tempdir
5+
------------
6+
**show tempdir**
7+
8+
Show directory where temporary files will be created.
9+
10+
.. seealso::
11+
12+
:ref:`set tempdir <set_tempdir>`

trepan/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@
167167
* more testable. Much more unit and functional tests. More of _pydb_'s
168168
integration test will eventually be added.
169169
170-
Copyright (C) 2008-2009, 2013-2015, 2017 Rocky Bernstein <rocky@gnu.org>
170+
Copyright (C) 2008-2009, 2013-2015, 2017, 2021 Rocky Bernstein <rocky@gnu.org>
171171
172172
.. |Downloads| image:: https://pypip.in/download/trepan/badge.svg
173173
.. |Build Status| image:: https://travis-ci.org/rocky/python3-trepan.svg
174174
"""
175175
__docformat__ = 'restructuredtext'
176+
from trepan.version import __version__ # noqa

trepan/bwcli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
# The name of the debugger we are currently going by.
3030
__title__ = 'trepan'
3131

32-
# VERSION.py sets variable VERSION.
33-
from trepan.VERSION import VERSION as __version__
32+
# trepan/version.py sets variable VERSION.
33+
from trepan.version import __version__
3434

3535

3636
def process_options(debugger_name, pkg_version, sys_argv, option_list=None):

trepan/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
# The name of the debugger we are currently going by.
3434
__title__ = "trepan2"
3535

36-
# VERSION.py sets variable VERSION.
37-
from trepan.version import VERSION as __version__
36+
from trepan.version import __version__
3837

3938

4039
def main(dbg=None, sys_argv=list(sys.argv)):

0 commit comments

Comments
 (0)