Skip to content

Commit

Permalink
Name is trepan3k not trepan
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Mar 18, 2024
1 parent 1124f79 commit 7d3d5bb
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 8 deletions.
47 changes: 47 additions & 0 deletions admin-tools/make-dist-3.0-3.1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
PACKAGE=trepan3k

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

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

if ! source ./pyenv-3.0-3.1-versions ; then
exit $?
fi
if ! source ./setup-python-3.0.sh ; then
exit $?
fi

cd ..
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
# 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
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,$first_two}-none-any.whl
done

tarball=dist/${PACKAGE}-${__version__}.tar.gz
if [[ -f $tarball ]]; then
mv -v $tarball dist/${PACKAGE}_32-${__version__}.tar.gz
fi
finish
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
PACKAGE=trepan
PACKAGE=trepan3k

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

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

if ! source ./pyenv-older-versions ; then
if ! source ./pyenv-3.2-3.5-versions ; then
exit $?
fi
if ! source ./setup-python-3.2.sh ; then
Expand All @@ -19,20 +19,29 @@ 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
first_two_dot=$(echo $pyversion | cut -d'.' -f 1-2 )
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,$first_two}-none-any.whl
done

# mv -v dist/${PACKAGE}-$VERSION.tar.gz dist/${PACKAGE}3k-$VERSION.tar.gz
tarball=dist/${PACKAGE}-${__version__}.tar.gz
if [[ -f $tarball ]]; then
mv -v $tarball dist/${PACKAGE}_32-${__version__}.tar.gz
fi
finish
8 changes: 8 additions & 0 deletions admin-tools/pyenv-3.2-3.5-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- shell-script -*-
# Sets PYVERSIONS to be pyenv versions that
# we can use in the python-3.3-to-3.5 branch.
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
echo "This script should be *sourced* rather than run directly through bash"
exit 1
fi
export PYVERSIONS='3.2.6 3.5.10 3.3.7 3.4.10 pypy3.5-7.0.0'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
{name = "Rocky Bernstein", email = "[email protected]"},
]

name = "trepan"
name = "trepan3k"
description = "Python cross-version byte-code library and disassembler"
dependencies = [
"columnize >= 0.3.10",
Expand Down

0 comments on commit 7d3d5bb

Please sign in to comment.