You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Adjust setup to correct version
This commit is contained in:
@@ -9,14 +9,3 @@ repos:
|
|||||||
stages: [commit]
|
stages: [commit]
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
stages: [commit]
|
stages: [commit]
|
||||||
- repo: https://github.com/pycqa/isort
|
|
||||||
rev: 5.13.2
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
stages: [commit]
|
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 23.12.1
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
language_version: python3
|
|
||||||
stages: [commit]
|
|
||||||
|
6
setup.py
6
setup.py
@@ -5,7 +5,7 @@ import sys
|
|||||||
"""Setup script for the 'uncompyle6' distribution."""
|
"""Setup script for the 'uncompyle6' distribution."""
|
||||||
|
|
||||||
SYS_VERSION = sys.version_info[0:2]
|
SYS_VERSION = sys.version_info[0:2]
|
||||||
if not ((3, 0) <= SYS_VERSION < (3, 3)):
|
if not ((3, 3) <= SYS_VERSION < (3, 6)):
|
||||||
mess = "Python Release 3.0 .. 3.2 are supported in this code branch."
|
mess = "Python Release 3.0 .. 3.2 are supported in this code branch."
|
||||||
if (2, 4) <= SYS_VERSION <= (2, 7):
|
if (2, 4) <= SYS_VERSION <= (2, 7):
|
||||||
mess += (
|
mess += (
|
||||||
@@ -17,9 +17,9 @@ if not ((3, 0) <= SYS_VERSION < (3, 3)):
|
|||||||
"\nFor your Python, version %s, use the master code/branch."
|
"\nFor your Python, version %s, use the master code/branch."
|
||||||
% sys.version[0:3]
|
% sys.version[0:3]
|
||||||
)
|
)
|
||||||
if (3, 3) >= SYS_VERSION < (3, 6):
|
if (3, 0) >= SYS_VERSION < (3, 3):
|
||||||
mess += (
|
mess += (
|
||||||
"\nFor your Python, version %s, use the python-3.3-to-3.5 code/branch."
|
"\nFor your Python, version %s, use the python-3.0-to-3.2 code/branch."
|
||||||
% sys.version[0:3]
|
% sys.version[0:3]
|
||||||
)
|
)
|
||||||
elif SYS_VERSION < (2, 4):
|
elif SYS_VERSION < (2, 4):
|
||||||
|
Reference in New Issue
Block a user