File tree Expand file tree Collapse file tree 5 files changed +83
-3
lines changed
Expand file tree Collapse file tree 5 files changed +83
-3
lines changed Original file line number Diff line number Diff line change 1+ # Common checkout routine
2+ export PATH=$HOME /.pyenv/bin/pyenv:$PATH
3+ bs=${BASH_SOURCE[0]}
4+ mydir=$( dirname $bs )
5+ fulldir=$( readlink -f $mydir )
6+
7+ function setup_version {
8+ local repo=$1
9+ version=$2
10+ echo Running setup $version on $repo ...
11+ (cd ../$repo && . ./admin-tools/setup-${version} .sh)
12+ return $?
13+ }
14+
15+ function checkout_finish {
16+ branch=$1
17+ cd $decompyle3_owd
18+ git checkout $branch && pyenv local $PYTHON_VERSION && git pull
19+ rc=$?
20+ return $rc
21+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ PACKAGE=uncompyle6
3+
4+ # FIXME put some of the below in a common routine
5+ function finish {
6+ cd $make_uncompyle6_newest_owd
7+ }
8+
9+ cd $( dirname ${BASH_SOURCE[0]} )
10+ make_uncompyle6_newest_owd=$( pwd)
11+ trap finish EXIT
12+
13+ if ! source ./pyenv-newest-versions ; then
14+ exit $?
15+ fi
16+ if ! source ./setup-master.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__ -{py2.py3,py$first_two }-none-any.whl
41+ done
42+
43+ python ./setup.py sdist
44+ finish
Original file line number Diff line number Diff line change 1+ # /bin/bash
2+ uncompyle6_merge_36_owd=$( pwd)
3+ cd $( dirname ${BASH_SOURCE[0]} )
4+ if . ./setup-python-3.6.sh; then
5+ git merge master
6+ fi
7+ cd $uncompyle6_merge_36_owd
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 master 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.6.15 pypy3.6-7.3.1 3.7.16 pypy3.7-7.3.9 pypy3.8-7.3.10 pyston-2.3.5 3.8.18'
Original file line number Diff line number Diff line change 11#! /bin/bash
2- PYTHON_VERSION=3.8.18
2+ PYTHON_VERSION=3.8
33
44# FIXME put some of the below in a common routine
55function finish {
66 cd $owd
77}
88
99export PATH=$HOME /.pyenv/bin/pyenv:$PATH
10- owd =$( pwd)
10+ decompyle3_owd =$( pwd)
1111bs=${BASH_SOURCE[0]}
1212if [[ $0 == $bs ]] ; then
1313 echo " This script should be *sourced* rather than run directly through bash"
@@ -19,4 +19,4 @@ cd $fulldir/..
1919(cd ../python-spark && git checkout master && pyenv local $PYTHON_VERSION ) && git pull && \
2020 (cd ../python-xdis && git checkout master && pyenv local $PYTHON_VERSION ) && git pull && \
2121 git checkout master && pyenv local $PYTHON_VERSION && git pull
22- cd $owd
22+ cd $decompyle3_owd
You can’t perform that action at this time.
0 commit comments