Skip to content

Commit

Permalink
Get ready for release 6.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 19, 2024
1 parent 0af394a commit 5175371
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 103 deletions.
187 changes: 95 additions & 92 deletions ChangeLog-spell-corrected.diff

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ clean: clean_pyc

#: Create source (tarball) and wheel distribution
dist: clean
$(PYTHON) ./setup.py sdist bdist_egg
$(PYTHON) ./setup.py sdist bdist_wheel

#: Create older distributions
dist-older:
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
6.1.3 2024-12-19
================

* Support for Python 3.13 added courtesy of Elliot Tarbet 2elli
* Add get_logical_instruction_at_offset() This disassembles a single instruction at a given offset
* Update Python magics for 3.13.1, 3.10.16, pypy3.6.12, 3.12.8


6.1.2 2024-11-08
================

Expand Down
15 changes: 9 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ xdis
A Cross-Python bytecode disassembler, bytecode/wordcode and magic-number manipulation library/package.


.. contents:: Table of Contents
:depth: 3


Introduction
------------

Expand All @@ -21,8 +25,8 @@ bytecodes from different versions of Python. The command-line routine
disassembly conventions in a variety of user-specified formats. Some
of these formats like ``extended`` and ``extended-format`` are the most
advanced of any Python disassembler I know of because they can show
expression-tree on operators. See the [Disassembler
Example][#disassembler-example] below.
expression-tree on operators. See the `Disassembler
Example`_ below.

Also, if you need to modify and write bytecode, the routines here can
be of help. There are routines to pack and unpack the read-only tuples
Expand All @@ -42,8 +46,8 @@ the kinds of instruction categorization that ``dis`` offers, we have
additional categories for things that would be useful in such a
bytecode assembler, optimizer, or decompiler.

The programs here accept bytecodes from Python version 1.0 to 3.11 or
so. The code requires Python 2.4 or later and has been tested on
The programs here accept bytecodes from Python version 1.0 to
3.13. The code requires Python 2.4 or later and has been tested on
Python running lots of Python versions.

When installing, except for the most recent versions of Python, use
Expand All @@ -63,8 +67,7 @@ The standard Python routine:

::

$ pip install -e .
$ pip install -r requirements-dev.txt
$ pip install -e . # or pip install -e .[dev] to include testing package

A GNU makefile is also provided so ``make install`` (possibly as root or
sudo) will do the steps above.
Expand Down
1 change: 1 addition & 0 deletions __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion admin-tools/make-dist-newest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for pyversion in $PYVERSIONS; do
# Pick out first two numbers of version, e.g. 3.5.1 -> 35
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
rm -fr build
python setup.py bdist_egg bdist_wheel
python setup.py bdist_wheel
if [[ $first_two =~ py* ]]; then
if [[ $first_two =~ pypy* ]]; then
# For PyPy, remove the what is after the dash, e.g. pypy37-none-any.whl instead of pypy37-7-none-any.whl
Expand Down
4 changes: 2 additions & 2 deletions xdis/codetype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def codeType2Portable(code, version_tuple=PYTHON_VERSION_TRIPLE):
co_firstlineno=code.co_firstlineno,
co_linetable=line_table,
)
elif version_tuple[:2] >= (3,11):
elif version_tuple[:2] >= (3, 11):
return Code311(
co_argcount=code.co_argcount,
co_posonlyargcount=code.co_posonlyargcount,
Expand Down Expand Up @@ -187,7 +187,7 @@ def portableCodeType(version_tuple=PYTHON_VERSION_TRIPLE):
elif version_tuple[:2] == (3, 10):
# 3.10
return Code310
elif version_tuple[:2] >= (3,11):
elif version_tuple[:2] >= (3, 11):
# 3.11 ...
return Code311
elif version_tuple > (2, 0):
Expand Down
2 changes: 1 addition & 1 deletion xdis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# well as importing into Python. That's why there is no
# space around "=" below.
# fmt: off
__version__="6.1.3.dev0" # noqa
__version__="6.1.3" # noqa

0 comments on commit 5175371

Please sign in to comment.