You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Break out code for 3.3-3.5 versions
This commit is contained in:
6
.github/workflows/osx.yml
vendored
6
.github/workflows/osx.yml
vendored
@@ -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 }}
|
||||
|
6
.github/workflows/ubuntu.yml
vendored
6
.github/workflows/ubuntu.yml
vendored
@@ -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 }}
|
||||
|
6
.github/workflows/windows.yml
vendored
6
.github/workflows/windows.yml
vendored
@@ -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 }}
|
||||
|
9
admin-tools/pyenv-3.3-3.5-versions
Normal file
9
admin-tools/pyenv-3.3-3.5-versions
Normal 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
15
admin-tools/setup-python-3.3.sh
Executable 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
|
4
setup.py
4
setup.py
@@ -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."
|
||||
|
Reference in New Issue
Block a user