Skip to content

Commit

Permalink
Remove support for py39
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Dec 25, 2024
1 parent 79c8834 commit c049ede
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .config/constraints.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.9
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# 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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
id: generate_matrix
uses: coactions/dynamic-matrix@v4
with:
min_python: "3.9"
min_python: "3.10"
default_python: |
3.9
3.10
max_python: "3.13"
other_names: |
lint:tox -e py39-lint;tox -e py310-lint
lint:tox -e py310-lint;tox -e py310-lint
docs
integration
pkg
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ repos:
entry: pip-compile pyproject.toml
files: ^.config\/.*requirements.*$
language: python
language_version: "3.9" # minimal we support officially
language_version: "3.10" # minimal we support officially
pass_filenames: false
stages: [manual]
additional_dependencies:
Expand All @@ -115,7 +115,7 @@ repos:
entry: pip-compile pyproject.toml --upgrade
files: ^.config\/.*requirements.*$
language: python
language_version: "3.9" # minimal we support officially
language_version: "3.10" # minimal we support officially
pass_filenames: false
stages: [manual]
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
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = [
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
"setuptools_scm[toml] >= 7.0.5" # required for "no-local-version" scheme
]
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,7 +24,6 @@ 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",
Expand All @@ -33,7 +32,7 @@ classifiers = [
"Programming Language :: Python",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
"Topic :: Utilities"
]
keywords = ["mk"]

Expand Down Expand Up @@ -95,7 +94,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 +114,7 @@ unsafe_package = [
"exceptiongroup",
"jeepney",
"secretstorage",
"twine",
"twine"
]

[tool.pylint."MESSAGES CONTROL"]
Expand All @@ -133,7 +132,7 @@ disable = [
"missing-module-docstring",
"no-value-for-parameter",
"not-an-iterable",
"too-few-public-methods",
"too-few-public-methods"
]

[tool.ruff]
Expand Down Expand Up @@ -161,7 +160,7 @@ lint.ignore = [
"TCH",
"PLR",
"INP",
"RET",
"RET"
]
lint.select = ["ALL"]

Expand Down Expand Up @@ -191,5 +190,5 @@ git_describe_command = [
"--tags",
"--long",
"--match",
"v*.*",
"v*.*"
]
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ setenv =
PRE_COMMIT_COLOR = always
PYTHONHASHSEED = 0
VIRTUALENV_NO_DOWNLOAD = 1
devel,lint,py{39,310,311,312,313},pkg,pre: PIP_CONSTRAINT = /dev/null
devel,lint,py{310,311,312,313},pkg,pre: PIP_CONSTRAINT = /dev/null

allowlist_externals =
bash
Expand Down Expand Up @@ -110,7 +110,7 @@ commands =
white_list_externals =
sh

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

0 comments on commit c049ede

Please sign in to comment.