Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acc5f70

Browse files
committed
Python: CG trace: Python 3.7 is minimal version
1 parent 6c60881 commit acc5f70

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/tools/recorded-call-graph-metrics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ After following setup instructions below, run the `recreate-db.sh` script to cre
1919

2020
## Setup
2121

22-
1. Ensure you have at least Python 3.6
22+
1. Ensure you have at least Python 3.7
2323

2424
2. Create virtual environment `python3 -m venv venv` and activate it
2525

python/tools/recorded-call-graph-metrics/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
package_dir={"": "src"},
1111
install_requires=["lxml"],
1212
entry_points={"console_scripts": ["cg-trace = cg_trace.main:main"]},
13-
python_requires=">=3.6",
13+
python_requires=">=3.7",
1414
)

python/tools/recorded-call-graph-metrics/src/cg_trace/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
__version__ = "0.0.1"
44

55
# Since the virtual machine opcodes changed in 3.6, not going to attempt to support
6-
# anything before that
7-
MIN_PYTHON_VERSION = (3, 6)
6+
# anything before that. Using dataclasses, which is a new feature in Python 3.7
7+
MIN_PYTHON_VERSION = (3, 7)
88
MIN_PYTHON_VERSION_FORMATTED = ".".join(str(i) for i in MIN_PYTHON_VERSION)
99

1010
if not sys.version_info[:2] >= MIN_PYTHON_VERSION:

0 commit comments

Comments
 (0)