Skip to content

Commit

Permalink
builder/linux: bump Python to 3.11
Browse files Browse the repository at this point in the history
The Windows builder already has 3.11, and on macOS we can reasonably
assume it.  Drop configuration for older Python versions.

Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed Nov 23, 2023
1 parent a56eb53 commit 8d31783
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: pyupgrade
name: Modernize python code
args: ["--py38-plus"]
args: ["--py311-plus"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
Expand Down
2 changes: 1 addition & 1 deletion builder/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN dnf -y upgrade && \
dnf -y install 'dnf-command(config-manager)' epel-release && \
dnf config-manager --set-enabled powertools && \
dnf -y install gcc-c++ git-core java-1.8.0-openjdk-devel nasm ninja-build \
patchelf python3.8 unzip && \
patchelf python3.11-pip unzip && \
dnf clean all
RUN pip3 install auditwheel meson tomli
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.black]
line-length = 79
skip-string-normalization = true
target-version = ["py38", "py39", "py310", "py311", "py312"]
target-version = ["py311", "py312"]

# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
# requires Flake8-pyproject
Expand Down

0 comments on commit 8d31783

Please sign in to comment.