Skip to content

Commit

Permalink
build(python): minimum required Python version is now 3.10
Browse files Browse the repository at this point in the history
Style changes require at least Python 3.10, so this should be reflected in code.

BREAKING CHANGE: Minimum Python version is now 3.10.
  • Loading branch information
jacksonj04 committed Dec 19, 2024
1 parent f071e71 commit 2367429
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@main
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.10
- name: Run image
uses: abatilo/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.10"

- name: Run pre-commit
uses: pre-commit/[email protected]
Expand All @@ -23,10 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.10
- name: Run image
uses: abatilo/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
hooks:
- id: jsonschema-gentypes
files: src/ds_caselaw_utils/data/schema/courts.schema.json
language_version: python3.9
language_version: python3.10

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## Unreleased

### BREAKING CHANGE

- Minimum Python version is now 3.10.

## v2.0.1 (2024-11-25)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-gentypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ generate:
# The minimum Python version that the code should support. By default the
# currently executing Python version is chosen. Note that the output
# may require typing_extensions to be installed.
python_version: "3.9"
python_version: "3.10"
9 changes: 2 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"


[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
"ruamel.yaml" = "^0.18.0"
typing-extensions = "^4.12.2"

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.9
python_version = 3.10
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
Expand Down

0 comments on commit 2367429

Please sign in to comment.