You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Merge branch 'master' into python-3.3-to-3.5
This commit is contained in:
@@ -3,9 +3,9 @@ PACKAGE=uncompyle6
|
|||||||
|
|
||||||
# FIXME put some of the below in a common routine
|
# FIXME put some of the below in a common routine
|
||||||
function finish {
|
function finish {
|
||||||
cd $owd
|
cd $make_dist_uncompyle6_owd
|
||||||
}
|
}
|
||||||
owd=$(pwd)
|
make_dist_uncompyle6_owd=$(pwd)
|
||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
@@ -21,6 +21,11 @@ source $PACKAGE/version.py
|
|||||||
echo $__version__
|
echo $__version__
|
||||||
|
|
||||||
for pyversion in $PYVERSIONS; do
|
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
|
if ! pyenv local $pyversion ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
@@ -41,3 +46,4 @@ tarball=dist/${PACKAGE}-${__version_}_-tar.gz
|
|||||||
if [[ -f $tarball ]]; then
|
if [[ -f $tarball ]]; then
|
||||||
rm -v dist/${PACKAGE}-${__version__}-tar.gz
|
rm -v dist/${PACKAGE}-${__version__}-tar.gz
|
||||||
fi
|
fi
|
||||||
|
finish
|
||||||
|
49
admin-tools/make-dist-3.0-3.2.sh
Normal file
49
admin-tools/make-dist-3.0-3.2.sh
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
PACKAGE=uncompyle6
|
||||||
|
|
||||||
|
# FIXME put some of the below in a common routine
|
||||||
|
function finish {
|
||||||
|
cd $uncompyle6_30_make_dist_owd
|
||||||
|
}
|
||||||
|
|
||||||
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
|
uncompyle6_30_make_dist_owd=$(pwd)
|
||||||
|
trap finish EXIT
|
||||||
|
|
||||||
|
if ! source ./pyenv-3.0-3.2-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__-{py2.py3,py$first_two}-none-any.whl
|
||||||
|
echo === $pyversion ===
|
||||||
|
done
|
||||||
|
|
||||||
|
python ./setup.py sdist
|
||||||
|
tarball=dist/${PACKAGE}-${__version__}.tar.gz
|
||||||
|
if [[ -f $tarball ]]; then
|
||||||
|
mv -v $tarball dist/${PACKAGE}_31-${__version__}.tar.gz
|
||||||
|
fi
|
||||||
|
finish
|
@@ -3,11 +3,11 @@ PACKAGE=uncompyle6
|
|||||||
|
|
||||||
# FIXME put some of the below in a common routine
|
# FIXME put some of the below in a common routine
|
||||||
function finish {
|
function finish {
|
||||||
cd $owd
|
cd $uncompyle6_33_make_owd
|
||||||
}
|
}
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
owd=$(pwd)
|
uncompyle6_33_make_owd=$(pwd)
|
||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
if ! source ./pyenv-3.3-3.5-versions ; then
|
if ! source ./pyenv-3.3-3.5-versions ; then
|
||||||
@@ -22,6 +22,11 @@ source $PACKAGE/version.py
|
|||||||
echo $__version__
|
echo $__version__
|
||||||
|
|
||||||
for pyversion in $PYVERSIONS; do
|
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
|
if ! pyenv local $pyversion ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
@@ -33,6 +38,12 @@ for pyversion in $PYVERSIONS; do
|
|||||||
rm -fr build
|
rm -fr build
|
||||||
python setup.py bdist_egg bdist_wheel
|
python setup.py bdist_egg bdist_wheel
|
||||||
mv -v dist/${PACKAGE}-$__version__-{py2.py3,py$first_two}-none-any.whl
|
mv -v dist/${PACKAGE}-$__version__-{py2.py3,py$first_two}-none-any.whl
|
||||||
|
echo === $pyversion ===
|
||||||
done
|
done
|
||||||
|
|
||||||
python ./setup.py sdist
|
python ./setup.py sdist
|
||||||
|
tarball=dist/${PACKAGE}-${__version__}.tar.gz
|
||||||
|
if [[ -f $tarball ]]; then
|
||||||
|
mv -v $tarball dist/${PACKAGE}_31-${__version__}.tar.gz
|
||||||
|
fi
|
||||||
|
finish
|
||||||
|
@@ -3,11 +3,11 @@ PACKAGE=uncompyle6
|
|||||||
|
|
||||||
# FIXME put some of the below in a common routine
|
# FIXME put some of the below in a common routine
|
||||||
function finish {
|
function finish {
|
||||||
cd $owd
|
cd $make_uncompyle6_newest_owd
|
||||||
}
|
}
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
owd=$(pwd)
|
make_uncompyle6_newest_owd=$(pwd)
|
||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
if ! source ./pyenv-newest-versions ; then
|
if ! source ./pyenv-newest-versions ; then
|
||||||
@@ -22,6 +22,11 @@ source $PACKAGE/version.py
|
|||||||
echo $__version__
|
echo $__version__
|
||||||
|
|
||||||
for pyversion in $PYVERSIONS; do
|
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
|
if ! pyenv local $pyversion ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
@@ -36,3 +41,4 @@ for pyversion in $PYVERSIONS; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
python ./setup.py sdist
|
python ./setup.py sdist
|
||||||
|
finish
|
||||||
|
Reference in New Issue
Block a user