File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ PACKAGE=trepan3k
3+
4+ # FIXME put some of the below in a common routine
5+ function finish {
6+ cd $make_trepan_dist_30_owd
7+ }
8+
9+ cd $( dirname ${BASH_SOURCE[0]} )
10+ make_trepan_dist_30_owd=$( pwd)
11+ trap finish EXIT
12+
13+ if ! source ./pyenv-3.0-3.1-versions ; then
14+ exit $?
15+ fi
16+ if ! source ./setup-python-3.0.sh ; then
17+ exit $?
18+ fi
19+
20+ cd ..
21+ source $PACKAGE /version.py
22+ echo $__version__
23+
24+ for pyversion in $PYVERSIONS ; do
25+ echo --- $pyversion ---
26+ if [[ ${pyversion: 0: 4} == " pypy" ]] ; then
27+ echo " $pyversion - PyPy does not get special packaging"
28+ continue
29+ fi
30+ if ! pyenv local $pyversion ; then
31+ exit $?
32+ fi
33+ # pip bdist_egg create too-general wheels. So
34+ # we narrow that by moving the generated wheel.
35+
36+ # Pick out first two number of version, e.g. 3.5.1 -> 35
37+ first_two=$( echo $pyversion | cut -d' .' -f 1-2 | sed -e ' s/\.//' )
38+ rm -fr build
39+ python setup.py bdist_egg bdist_wheel
40+ mv -v dist/${PACKAGE} -$__version__ -{py3,$first_two }-none-any.whl
41+ done
42+
43+ tarball=dist/${PACKAGE} -${__version__} .tar.gz
44+ if [[ -f $tarball ]]; then
45+ mv -v $tarball dist/${PACKAGE} _32-${__version__} .tar.gz
46+ fi
47+ finish
Original file line number Diff line number Diff line change 11#! /bin/bash
2- PACKAGE=trepan
2+ PACKAGE=trepan3k
33
44# FIXME put some of the below in a common routine
55function finish {
6- cd $owd
6+ cd $make_trepan_dist_32_owd
77}
88
99cd $( dirname ${BASH_SOURCE[0]} )
10- owd =$( pwd)
10+ make_trepan_dist_32_owd =$( pwd)
1111trap finish EXIT
1212
13- if ! source ./pyenv-older -versions ; then
13+ if ! source ./pyenv-3.2-3.5 -versions ; then
1414 exit $?
1515fi
1616if ! source ./setup-python-3.2.sh ; then
1919
2020cd ..
2121source $PACKAGE /version.py
22- echo $VERSION
22+ echo $__version__
2323
2424for pyversion in $PYVERSIONS ; do
25+ echo --- $pyversion ---
26+ if [[ ${pyversion: 0: 4} == " pypy" ]] ; then
27+ echo " $pyversion - PyPy does not get special packaging"
28+ continue
29+ fi
2530 if ! pyenv local $pyversion ; then
2631 exit $?
2732 fi
2833 # pip bdist_egg create too-general wheels. So
2934 # we narrow that by moving the generated wheel.
3035
3136 # Pick out first two number of version, e.g. 3.5.1 -> 35
32- first_two_dot=$( echo $pyversion | cut -d' .' -f 1-2 )
3337 first_two=$( echo $pyversion | cut -d' .' -f 1-2 | sed -e ' s/\.//' )
3438 rm -fr build
3539 python setup.py bdist_egg bdist_wheel
40+ mv -v dist/${PACKAGE} -$__version__ -{py3,$first_two }-none-any.whl
3641done
3742
38- # mv -v dist/${PACKAGE}-$VERSION.tar.gz dist/${PACKAGE}3k-$VERSION.tar.gz
43+ tarball=dist/${PACKAGE} -${__version__} .tar.gz
44+ if [[ -f $tarball ]]; then
45+ mv -v $tarball dist/${PACKAGE} _32-${__version__} .tar.gz
46+ fi
47+ finish
Original file line number Diff line number Diff line change 1+ # -*- shell-script -*-
2+ # Sets PYVERSIONS to be pyenv versions that
3+ # we can use in the python-3.3-to-3.5 branch.
4+ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
5+ echo " This script should be *sourced* rather than run directly through bash"
6+ exit 1
7+ fi
8+ export PYVERSIONS=' 3.2.6 3.5.10 3.3.7 3.4.10 pypy3.5-7.0.0'
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ authors = [
1010 {name = " Rocky Bernstein" , email = " rb@dustyfeet.com" },
1111]
1212
13- name = " trepan "
13+ name = " trepan3k "
1414description = " Python cross-version byte-code library and disassembler"
1515dependencies = [
1616 " columnize >= 0.3.10" ,
You can’t perform that action at this time.
0 commit comments