Skip to content

Commit cb2aa2c

Browse files
committed
Update minimum python version to 3.8
All older versions are EOL and none of the distributions we support should have such an old version.
1 parent 79fd789 commit cb2aa2c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pycheribuild/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"warning_message",
8181
]
8282

83-
if sys.version_info < (3, 6, 0):
84-
sys.exit("This script requires at least Python 3.6.0")
83+
if sys.version_info < (3, 8, 0): # noqa: UP036
84+
sys.exit("This script requires at least Python 3.8.0")
8585

8686
Type_T = typing.TypeVar("Type_T")
8787

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[tool.ruff]
22
# Ensure suggested fixes are compatible with our minimum supported version
3-
# XXX: Currently this is py36, but the minimum supported by ruff is py37.
4-
target-version = "py37"
3+
target-version = "py38"
54
line-length = 120
65
src = ["pycheribuild", "release-scripts", "test-scripts", "tests"]
76
exclude = [
@@ -20,7 +19,6 @@ show-fixes = true
2019
select = ["E", "F", "I", "N", "W", "U", "COM", "RUF", "PLC", "PLE", "PLW"]
2120
ignore = [
2221
"UP037", # Remove quotes from type annotation, not possible until we start using 3.7 as the minimum
23-
"UP036", # 'Version block is outdated for minimum Python version' to be removed when we set the minimum to 3.8
2422
"PLW2901", # `for` loop variable `value` overwritten by assignment target
2523
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` (cannot be fixed due to bug)
2624
"COM812", # Incompatible with `ruff format`
@@ -33,7 +31,7 @@ known-local-folder = ["pycheribuild"]
3331

3432
[tool.black]
3533
line-length = 120
36-
target-version = ['py36']
34+
target-version = ['py38']
3735
# 'extend-exclude' excludes files or directories in addition to the defaults
3836
# Currently reformatting pycheribuild/ results in lots of weird formatting, so
3937
# let's restrict this to the other files for now.

0 commit comments

Comments
 (0)