Python: CG trace: Python 3.7 is minimal version

This commit is contained in:
Rasmus Wriedt Larsen
2020-07-18 17:10:53 +02:00
parent 6c60881cbe
commit acc5f70d4a
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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",
)

View File

@@ -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: