Skip to content

Commit

Permalink
Get ready for release 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Mar 15, 2024
1 parent 2217985 commit fd64c6d
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 20 deletions.
30 changes: 30 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
6.1.0 2024-03-15
=================

Lots of changes major changes. API has changed.

We now support many disassembly options:
* classic: disasm-like output
* bytes: disasm-like output with bytecode
* extended: simple interpretation of previous sequence of instructions
* extended-bytes: same as above, but with "bytes" bytecode ouptut
* header: show header/metadata information only

This is reflected in the `--format` (`-F`) options on `pydisasm`.
Option `--show-source` (`-S`) gives add the source text line (or part of it) before assembly instructions that implement the line.

Released Python magic numbers have been updated as of this release (up to Python 3.12.2, including PyPy magic numbers.

Some support for the [GraalVM](https://www.graalvm.org/python/)
implementation of Python started.

Many bugs fixed.

A lot of Linting and coding style modernization.

typing.NameTuple used for Python versions that support this.
Additional fields "start_offset" and "tos_str" added to instruction.

Elliot Tarbet (2elli) largely provided support for Python 3.11 and 3.12 bytecode


6.0.5 2022-12-22
=================

Expand Down
5 changes: 5 additions & 0 deletions admin-tools/make-dist-2.4-2.7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ source $PACKAGE/version.py
echo $__version__

for pyversion in $PYVERSIONS; do
echo --- $pyversion ---
if [[ ${pyversion:0:4} == "pypy" ]] ; then
echo "$pyversion - PyPy does not get special packaging"
continue
fi
if ! pyenv local $pyversion ; then
exit $?
fi
Expand Down
6 changes: 5 additions & 1 deletion admin-tools/make-dist-3.0-3.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ fi

cd ..
source $PACKAGE/version.py
echo $VERSION
echo $__version__

for pyversion in $PYVERSIONS; do
echo --- $pyversion ---
if [[ ${pyversion:0:4} == "pypy" ]] ; then
echo "$pyversion - PyPy does not get special packaging"
continue
fi
if ! pyenv local $pyversion ; then
exit $?
fi
Expand Down
26 changes: 22 additions & 4 deletions admin-tools/make-dist-3.3-3.5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,40 @@ fi

cd ..
source $PACKAGE/version.py
echo $VERSION
echo $__version__

for pyversion in $PYVERSIONS; do
echo --- $pyversion ---
if [[ ${pyversion:0:4} == "pypy" ]] ; then
echo "$pyversion - PyPy does not get special packaging"
continue
fi
if ! pyenv local $pyversion ; then
exit $?
exit $?
fi
# pip bdist_egg create too-general wheels. So
# we narrow that by moving the generated wheel.

# Pick out first two number of version, e.g. 3.5.1 -> 35
# 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
mv -v dist/${PACKAGE}-$VERSION-{py3,py$first_two}-none-any.whl
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
first_two=${first_two%-*}
fi
mv -v dist/${PACKAGE}-$__version__-{py3,$first_two}-none-any.whl
else
mv -v dist/${PACKAGE}-$__version__-{py3,py$first_two}-none-any.whl
fi
echo === $pyversion ===
done

python ./setup.py sdist

tarball=dist/${PACKAGE}-${__version__}.tar.gz
if [[ -f $tarball ]]; then
mv -v $tarball dist/${PACKAGE}_33-${__version__}.tar.gz
fi
finish
22 changes: 16 additions & 6 deletions admin-tools/make-dist-3.6-3.10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ PACKAGE=xdis

# FIXME put some of the below in a common routine
function finish {
cd $owd
cd $make_dist_36_owd
}

cd $(dirname ${BASH_SOURCE[0]})
owd=$(pwd)
make_dist_36_owd=$(pwd)
trap finish EXIT

if ! source ./pyenv-3.6-3.10-versions ; then
Expand All @@ -19,22 +19,32 @@ fi

cd ..
source $PACKAGE/version.py
echo $VERSION
echo $__version__

for pyversion in $PYVERSIONS; do
echo --- $pyversion ---
if [[ ${pyversion:0:4} == "pypy" ]] ; then
echo "$pyversion - PyPy does not get special packaging"
continue
fi
if ! pyenv local $pyversion ; then
exit $?
fi
# pip bdist_egg create too-general wheels. So
# we narrow that by moving the generated wheel.

# Pick out first two number of version, e.g. 3.5.1 -> 35
# 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_egg bdist_wheel
mv -v dist/${PACKAGE}-$VERSION-{py3,py$first_two}-none-any.whl
echo === $pyversion ===
done

# python ./setup.py sdist
python ./setup.py sdist

tarball=dist/${PACKAGE}-${__version__}.tar.gz
if [[ -f $tarball ]]; then
mv -v $tarball dist/${PACKAGE}_36-${__version__}.tar.gz
fi
finish
4 changes: 4 additions & 0 deletions admin-tools/make-dist-newest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ echo $__version__

for pyversion in $PYVERSIONS; do
echo --- $pyversion ---
if [[ ${pyversion:0:4} == "pypy" ]] ; then
echo "$pyversion - PyPy does not get special packaging"
continue
fi
if ! pyenv local $pyversion ; then
exit $?
fi
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ classifiers = [
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5 ",
"Programming Language :: Python :: 3.6 ",
"Programming Language :: Python :: 3.7 ",
"Programming Language :: Python :: 3.8 ",
"Programming Language :: Python :: 3.9 ",
"Programming Language :: Python :: 3.10 ",
"Programming Language :: Python :: 3.11 ",
"Programming Language :: Python :: 3.12 ",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]

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.0.dev0" # noqa
__version__="6.1.0" # noqa

0 comments on commit fd64c6d

Please sign in to comment.