Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for py39 #269

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 3 additions & 4 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 Expand Up @@ -156,7 +155,7 @@ jobs:

- name: Check for expected number of coverage.xml reports
run: |
JOBS_PRODUCING_COVERAGE=7
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
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
Loading