Skip to content

Commit

Permalink
Make Python 3.8 the default version
Browse files Browse the repository at this point in the history
We promise compatibility with Python 3.8 and thus should use it as default.
Otherwise we might use modern Python features by accident and not realize
it until the integration tests run.
  • Loading branch information
martis42 committed Jan 4, 2024
1 parent f0012be commit 0f317fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ python = use_extension(
dev_dependency = True,
)
python.toolchain(
is_default = True,
python_version = "3.8",
)
python.toolchain(
python_version = "3.9",
)
python.toolchain(
is_default = True,
python_version = "3.10",
)
python.toolchain(
Expand All @@ -69,7 +69,7 @@ pip_dev = use_extension(
)
pip_dev.parse(
hub_name = "dwyu_mypy_deps",
python_version = "3.10",
python_version = "3.8",
requirements_lock = "//third_party:mypy_requirements.txt",
)
use_repo(pip_dev, "dwyu_mypy_deps")
Expand Down
2 changes: 1 addition & 1 deletion third_party/mypy_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# bazel run //third_party:mypy_requirements.update
Expand Down

0 comments on commit 0f317fe

Please sign in to comment.