Skip to content

Commit

Permalink
Drop python 3.9 support and enable 3.13 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Jun 17, 2024
1 parent 71df39d commit 863fd69
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
id: generate_matrix
uses: coactions/dynamic-matrix@v1
with:
min_python: "3.9"
max_python: "3.12"
min_python: "3.10"
default_python: "3.10"
max_python: "3.13"
other_names: |
lint
docs
Expand Down Expand Up @@ -64,12 +65,12 @@ jobs:
sudo apt-get update \
&& sudo apt-get install -y libvirt-dev zsh
- name: Set up Python ${{ matrix.python_version || '3.9' }}
- name: Set up Python ${{ matrix.python_version || '3.10' }}
if: "!contains(matrix.shell, 'wsl')"
uses: actions/setup-python@v5
with:
cache: pip
python-version: ${{ matrix.python_version || '3.9' }}
python-version: ${{ matrix.python_version || '3.10' }}

- name: Install tox
run: |
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:

- name: Check for expected number of coverage.xml reports
run: |
JOBS_PRODUCING_COVERAGE=4
JOBS_PRODUCING_COVERAGE=6
if [ "$(find . -name coverage.xml | wc -l | bc)" -ne "${JOBS_PRODUCING_COVERAGE}" ]; then
echo "::error::Number of coverage.xml files was not the expected one (${JOBS_PRODUCING_COVERAGE}): $(find . -name coverage.xml |xargs echo)"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
hooks:
- id: mypy
# mypy args needed in order to match mypy cli behavior
args: ["--python-version", "3.9"]
args: ["--python-version", "3.10"]
entry: mypy src/
pass_filenames: false
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.9
python_version = 3.10
color_output = True
error_summary = True
# TODO(ssbarnea): Remove ignores below:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
requires-python = ">=3.10"
dynamic = ["version", "dependencies", "optional-dependencies"]
name = "mk"
description = "mk"
Expand All @@ -24,10 +24,10 @@ classifiers = [
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python",
"Topic :: Software Development :: Quality Assurance",
Expand Down Expand Up @@ -90,7 +90,7 @@ concurrency = ["multiprocessing", "thread"]
profile = "black"

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
strict = true
color_output = true
error_summary = true
Expand All @@ -115,7 +115,7 @@ disable = [
]

[tool.ruff]
target-version = "py39"
target-version = "py310"
# Same as Black.
line-length = 88
lint.ignore = [
Expand Down

0 comments on commit 863fd69

Please sign in to comment.