mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: CG trace: Python 3.7 is minimal version
This commit is contained in:
@@ -19,7 +19,7 @@ After following setup instructions below, run the `recreate-db.sh` script to cre
|
||||
|
||||
## Setup
|
||||
|
||||
1. Ensure you have at least Python 3.6
|
||||
1. Ensure you have at least Python 3.7
|
||||
|
||||
2. Create virtual environment `python3 -m venv venv` and activate it
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ setup(
|
||||
package_dir={"": "src"},
|
||||
install_requires=["lxml"],
|
||||
entry_points={"console_scripts": ["cg-trace = cg_trace.main:main"]},
|
||||
python_requires=">=3.6",
|
||||
python_requires=">=3.7",
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ import sys
|
||||
__version__ = "0.0.1"
|
||||
|
||||
# Since the virtual machine opcodes changed in 3.6, not going to attempt to support
|
||||
# anything before that
|
||||
MIN_PYTHON_VERSION = (3, 6)
|
||||
# anything before that. Using dataclasses, which is a new feature in Python 3.7
|
||||
MIN_PYTHON_VERSION = (3, 7)
|
||||
MIN_PYTHON_VERSION_FORMATTED = ".".join(str(i) for i in MIN_PYTHON_VERSION)
|
||||
|
||||
if not sys.version_info[:2] >= MIN_PYTHON_VERSION:
|
||||
|
||||
Reference in New Issue
Block a user