You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
More administrivia
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
function finish {
|
||||||
|
cd $owd
|
||||||
|
}
|
||||||
|
|
||||||
|
# FIXME put some of the below in a common routine
|
||||||
|
owd=$(pwd)
|
||||||
|
trap finish EXIT
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
if ! source ./pyenv-newer-versions ; then
|
if ! source ./pyenv-newer-versions ; then
|
||||||
exit $?
|
exit $?
|
||||||
@@ -11,7 +19,7 @@ for version in $PYVERSIONS; do
|
|||||||
if ! pyenv local $version ; then
|
if ! pyenv local $version ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
make clean && python setup.py develop
|
make clean && pip install -e .
|
||||||
if ! make check; then
|
if ! make check; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
function finish {
|
||||||
|
cd $owd
|
||||||
|
}
|
||||||
|
owd=$(pwd)
|
||||||
|
trap finish EXIT
|
||||||
|
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
if ! source ./pyenv-older-versions ; then
|
if ! source ./pyenv-older-versions ; then
|
||||||
exit $?
|
exit $?
|
||||||
@@ -6,6 +12,7 @@ fi
|
|||||||
if ! source ./setup-python-2.4.sh ; then
|
if ! source ./setup-python-2.4.sh ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
for version in $PYVERSIONS; do
|
for version in $PYVERSIONS; do
|
||||||
if ! pyenv local $version ; then
|
if ! pyenv local $version ; then
|
||||||
|
@@ -18,38 +18,25 @@ git push
|
|||||||
Make sure pyenv is running
|
Make sure pyenv is running
|
||||||
# Pyenv
|
# Pyenv
|
||||||
|
|
||||||
source make-dist/pyenv-versions
|
source admin-tools/check-newer-versions.sh
|
||||||
|
|
||||||
|
|
||||||
Test all python versions:
|
|
||||||
for version in $PYVERSIONS; do pyenv local $version && make clean && python setup.py develop && make check; done
|
|
||||||
|
|
||||||
# Switch to python-2.4 and build that first...
|
# Switch to python-2.4 and build that first...
|
||||||
|
source admin-tools/setup-python-2.4
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
./setup-python-2.4.sh
|
|
||||||
|
|
||||||
rm ChangeLog
|
rm ChangeLog
|
||||||
git merge master
|
git merge master
|
||||||
check uncompyle6/version.py to see it has changed
|
|
||||||
make ChangeLog
|
|
||||||
|
|
||||||
Update NEWS from master branch
|
Update NEWS from master branch
|
||||||
|
|
||||||
git commit -m"Get ready for release $VERSION" .
|
git commit -m"Get ready for release $VERSION" .
|
||||||
|
|
||||||
PYVERSIONS='2.4.6 2.5.6'
|
source admin-tools/check-older-versions.sh
|
||||||
|
source admin-tools/check-newer-versions.sh
|
||||||
for version in $PYVERSIONS; do pyenv local $version && make clean && python setup.py develop && make check; done
|
|
||||||
|
|
||||||
make-dist-older.sh
|
make-dist-older.sh
|
||||||
|
|
||||||
git tag release-python-2.4-$VERSION
|
git tag release-python-2.4-$VERSION
|
||||||
git push --tags
|
|
||||||
|
|
||||||
. ./setup-master.sh
|
|
||||||
|
|
||||||
./make-dist-newer.sh
|
./make-dist-newer.sh
|
||||||
|
|
||||||
|
18
admin-tools/make-dist-newer.sh
Normal file → Executable file
18
admin-tools/make-dist-newer.sh
Normal file → Executable file
@@ -1,12 +1,26 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PACKAGE=uncompyle6
|
PACKAGE=uncompyle6
|
||||||
|
|
||||||
|
# FIXME put some of the below in a common routine
|
||||||
|
function finish {
|
||||||
|
cd $owd
|
||||||
|
}
|
||||||
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
|
if ! source ./pyenv-older-versions ; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
if ! source ./setup-master.sh ; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ..
|
||||||
source $PACKAGE/version.py
|
source $PACKAGE/version.py
|
||||||
. ./setup-master.sh
|
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
PYVERSIONS='3.5.2 3.6.2 2.6.9 3.3.6 2.7.13 3.4.2 3.5.6'
|
|
||||||
for pyversion in $PYVERSIONS; do
|
for pyversion in $PYVERSIONS; do
|
||||||
# Pick out first two numbers
|
# Pick out first two numbers
|
||||||
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
|
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/uncompyle6-$VERSION-{py2.py3,py$first_two}-none-any.whl
|
mv -v dist/uncompyle6-$VERSION-{py2.py3,py$first_two}-none-any.whl
|
||||||
done
|
done
|
||||||
|
31
admin-tools/make-dist-older.sh
Normal file → Executable file
31
admin-tools/make-dist-older.sh
Normal file → Executable file
@@ -1,18 +1,39 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PACKAGE=uncompyle6
|
PACKAGE=uncompyle6
|
||||||
|
|
||||||
|
# FIXME put some of the below in a common routine
|
||||||
|
function finish {
|
||||||
|
cd $owd
|
||||||
|
}
|
||||||
|
owd=$(pwd)
|
||||||
|
trap finish EXIT
|
||||||
|
|
||||||
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
|
if ! source ./pyenv-older-versions ; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
if ! source ./setup-python-2.4.sh ; then
|
if ! source ./setup-python-2.4.sh ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd ..
|
||||||
source $PACKAGE/version.py
|
source $PACKAGE/version.py
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
PYVERSIONS='2.4.6 2.5.6'
|
|
||||||
for pyversion in $PYVERSIONS; do
|
for pyversion in $PYVERSIONS; do
|
||||||
# Pick out first two numbers
|
if ! pyenv local $pyversion ; then
|
||||||
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
rm -fr build
|
rm -fr build
|
||||||
python setup.py bdist_egg
|
python setup.py bdist_egg
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Pypi can only have one source tarball.
|
||||||
|
# Tarballs can get created from the above setup, so make sure to remove them since we want
|
||||||
|
# the tarball from master.
|
||||||
|
|
||||||
tarball=dist/uncompyle6-$VERSION-tar.gz
|
tarball=dist/uncompyle6-$VERSION-tar.gz
|
||||||
if -f $tarball; then
|
if [[ -f $tarball ]]; then
|
||||||
rm dist/uncompyle6-$VERSION-tar.gz
|
rm -v dist/uncompyle6-$VERSION-tar.gz
|
||||||
fi
|
fi
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
# -*- shell-script -*-
|
||||||
|
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
||||||
echo "This script should be *sourced* rather than run directly through bash"
|
echo "This script should be *sourced* rather than run directly through bash"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
export PYVERSIONS='3.5.2 3.6.2 2.6.9 3.3.6 pypy-5.0.1 2.7.13 3.4.2'
|
export PYVERSIONS='3.5.2 3.6.2 2.6.9 3.3.6 2.7.13 3.4.2'
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
# -*- shell-script -*-
|
||||||
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
||||||
echo "This script should be *sourced* rather than run directly through bash"
|
echo "This script should be *sourced* rather than run directly through bash"
|
||||||
exit 1
|
exit 1
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
"""
|
"""
|
||||||
spark grammar differences over Python 3.6 for Python 3.7
|
spark grammar differences over Python 3.6 for Python 3.7
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from uncompyle6.parser import PythonParserSingle
|
from uncompyle6.parser import PythonParserSingle
|
||||||
from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG
|
from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG
|
||||||
|
@@ -9,8 +9,6 @@ This sets up opcodes Python's 3.6 and calls a generalized
|
|||||||
scanner routine for Python 3.
|
scanner routine for Python 3.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from uncompyle6.scanners.scanner3 import Scanner3
|
from uncompyle6.scanners.scanner3 import Scanner3
|
||||||
|
|
||||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
# This file is suitable for sourcing inside bash as
|
# This file is suitable for sourcing inside bash as
|
||||||
# well as importing into Python
|
# well as importing into Python
|
||||||
VERSION='2.13.0'
|
VERSION='2.13.1'
|
||||||
|
Reference in New Issue
Block a user