Break out code for 3.3-3.5 versions

This commit is contained in:
rocky
2021-10-21 16:12:39 -04:00
parent 3e5f963c64
commit a463220df2
6 changed files with 35 additions and 11 deletions

View File

@@ -2,9 +2,9 @@ name: uncompyle6 (osx)
on:
push:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
pull_request:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
jobs:
build:
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [macOS]
python-version: [3.7, 3.8]
python-version: [3.3, 3.4, 3.5]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}

View File

@@ -2,16 +2,16 @@ name: uncompyle6 (ubuntu)
on:
push:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
pull_request:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.3, 3.4, 3.5]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}

View File

@@ -2,9 +2,9 @@ name: uncompyle6 (windows)
on:
push:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
pull_request:
branches: [ master ]
branches: [ python-3.3-to-3.5 ]
jobs:
build:
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [windows]
python-version: [3.7, 3.8]
python-version: [3.3, 3.4, 3.5]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}

View File

@@ -0,0 +1,9 @@
# -*- shell-script -*-
# Sets PYVERSIONS to be pyenv versions that
# we can use in the python-2.4 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.3.7 3.4.10 3.5.10 '

15
admin-tools/setup-python-3.3.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
PYTHON_VERSION=3.3.7
pyenv local $PYTHON_VERSION
owd=$(pwd)
bs=${BASH_SOURCE[0]}
mydir=$(dirname $bs)
fulldir=$(readlink -f $mydir)
cd $fulldir/..
(cd ../python-xdis && ./admin-tools/setup-python-3.3.sh)
cd $owd
rm -v */.python-version || true
git checkout python-3.3-to-3.5 && git pull && pyenv local $PYTHON_VERSION

View File

@@ -4,8 +4,8 @@ import sys
"""Setup script for the 'uncompyle6' distribution."""
SYS_VERSION = sys.version_info[0:2]
if not ((2, 6) <= SYS_VERSION <= (3, 9)):
mess = "Python Release 2.6 .. 3.9 are supported in this code branch."
if not ((3, 3) <= SYS_VERSION <= (3, 5)):
mess = "Python Release 3.3 .. 3.9 are supported in this code branch."
if (2, 4) <= SYS_VERSION <= (2, 7):
mess += (
"\nFor your Python, version %s, use the python-2.4 code/branch."