Skip to content

Commit f433383

Browse files
authored
Bring back support for py39 (#241)
1 parent e89ce31 commit f433383

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

.config/constraints.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile --all-extras --no-annotate --output-file=.config/constraints.txt --strip-extras --unsafe-package=backports-tarfile --unsafe-package=cryptography --unsafe-package=exceptiongroup --unsafe-package=jeepney --unsafe-package=secretstorage --unsafe-package=twine pyproject.toml
@@ -41,7 +41,7 @@ markupsafe==2.1.5
4141
mdurl==0.1.2
4242
mergedeep==1.3.4
4343
mkdocs==1.6.1
44-
mkdocs-autorefs==1.1.0
44+
mkdocs-autorefs==1.2.0
4545
mkdocs-gen-files==0.5.0
4646
mkdocs-get-deps==0.2.0
4747
mkdocs-htmlproofer-plugin==1.2.1
@@ -55,7 +55,7 @@ pathspec==0.12.1
5555
pillow==10.4.0
5656
pip==24.2
5757
pipdeptree==2.23.1
58-
pkginfo==1.11.1
58+
pkginfo==1.10.0
5959
platformdirs==4.2.2
6060
pluggy==1.5.0
6161
py-cpuinfo==9.0.0
@@ -76,7 +76,7 @@ requests==2.32.3
7676
requests-toolbelt==1.0.0
7777
rfc3986==2.0.0
7878
rich==13.8.0
79-
setuptools==74.0.0
79+
setuptools==74.1.1
8080
shellingham==1.5.4
8181
six==1.16.0
8282
smmap==5.0.1
@@ -90,7 +90,7 @@ typer-config==1.4.0
9090
typing-extensions==4.12.2
9191
urllib3==2.2.2
9292
virtualenv==20.26.3
93-
watchdog==5.0.0
93+
watchdog==5.0.1
9494
webencodings==0.5.1
9595
zipp==3.20.1
9696

.github/workflows/tox.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jobs:
2929
id: generate_matrix
3030
uses: coactions/dynamic-matrix@v3
3131
with:
32-
min_python: "3.10"
33-
default_python: "3.10"
32+
min_python: "3.9"
33+
default_python: |
34+
3.9
35+
3.10
3436
max_python: "3.13"
3537
other_names: |
36-
lint
38+
lint:tox -e py39-lint;tox -e py310-lint
3739
docs
3840
integration
3941
pkg
@@ -154,7 +156,7 @@ jobs:
154156

155157
- name: Check for expected number of coverage.xml reports
156158
run: |
157-
JOBS_PRODUCING_COVERAGE=6
159+
JOBS_PRODUCING_COVERAGE=7
158160
if [ "$(find . -name coverage.xml | wc -l | bc)" -ne "${JOBS_PRODUCING_COVERAGE}" ]; then
159161
echo "::error::Number of coverage.xml files was not the expected one (${JOBS_PRODUCING_COVERAGE}): $(find . -name coverage.xml |xargs echo)"
160162
exit 1

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ repos:
5252
rev: v24.7.0
5353
hooks:
5454
- id: ansible-lint
55+
language_version: python3.10 # minimal supported officially
5556
args: [--fix]
5657
- repo: https://github.com/adrienverge/yamllint.git
5758
rev: v1.35.1
@@ -66,7 +67,6 @@ repos:
6667
rev: v1.11.2
6768
hooks:
6869
- id: mypy
69-
args: [--python-version, "3.10"]
7070
entry: mypy src/
7171
pass_filenames: false
7272
additional_dependencies:
@@ -103,7 +103,7 @@ repos:
103103
entry: pip-compile pyproject.toml
104104
files: ^.config\/.*requirements.*$
105105
language: python
106-
language_version: "3.10" # minimal we support officially
106+
language_version: "3.9" # minimal we support officially
107107
pass_filenames: false
108108
stages: [manual]
109109
additional_dependencies:
@@ -115,7 +115,7 @@ repos:
115115
entry: pip-compile pyproject.toml --upgrade
116116
files: ^.config\/.*requirements.*$
117117
language: python
118-
language_version: "3.10" # minimal we support officially
118+
language_version: "3.9" # minimal we support officially
119119
pass_filenames: false
120120
stages: [manual]
121121
additional_dependencies:

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.10
2+
python_version = 3.9
33
color_output = True
44
error_summary = True
55
# TODO(ssbarnea): Remove ignores below:

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
# https://peps.python.org/pep-0621/#readme
10-
requires-python = ">=3.10"
10+
requires-python = ">=3.9"
1111
dynamic = ["version", "dependencies", "optional-dependencies"]
1212
name = "mk"
1313
description = "mk"
@@ -24,6 +24,7 @@ classifiers = [
2424
"Operating System :: MacOS",
2525
"Operating System :: POSIX",
2626
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3.9",
2728
"Programming Language :: Python :: 3.10",
2829
"Programming Language :: Python :: 3.11",
2930
"Programming Language :: Python :: 3.12",
@@ -92,7 +93,7 @@ concurrency = ["multiprocessing", "thread"]
9293
profile = "black"
9394

9495
[tool.mypy]
95-
python_version = "3.10"
96+
python_version = "3.9"
9697
strict = true
9798
color_output = true
9899
error_summary = true

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ commands =
2929
--durations=10 \
3030
-m "not eco" \
3131
}
32-
{py,py310,py311,py312,py313}: sh -c "coverage combine -a -q --data-file={envdir}/.coverage {envdir}/.coverage.* && coverage xml --data-file={envdir}/.coverage -o {envdir}/coverage.xml --fail-under=0 && coverage report --data-file={envdir}/.coverage"
32+
{py,py39,py310,py311,py312,py313}: sh -c "coverage combine -a -q --data-file={envdir}/.coverage {envdir}/.coverage.* && coverage xml --data-file={envdir}/.coverage -o {envdir}/coverage.xml --fail-under=0 && coverage report --data-file={envdir}/.coverage"
3333
passenv =
3434
CURL_CA_BUNDLE # https proxies, https://github.com/tox-dev/tox/issues/1437
3535
FORCE_COLOR
@@ -65,7 +65,7 @@ setenv =
6565
PRE_COMMIT_COLOR = always
6666
PYTHONHASHSEED = 0
6767
VIRTUALENV_NO_DOWNLOAD = 1
68-
devel,pkg,pre: PIP_CONSTRAINT = /dev/null
68+
devel,lint,py{39,310,311,312,313},pkg,pre: PIP_CONSTRAINT = /dev/null
6969

7070
allowlist_externals =
7171
bash
@@ -110,7 +110,7 @@ commands =
110110
white_list_externals =
111111
sh
112112

113-
[testenv:lint]
113+
[testenv:lint,py{39,310,311,312,313}-lint]
114114
description = Run linters
115115
passenv = {[testenv]passenv}
116116
# without PROGRAMDATA cloning using git for Windows will fail with an

0 commit comments

Comments
 (0)