Skip to content

Commit edba395

Browse files
authored
chore: update Python version and GitHub Actions to use latest versions (#451)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.2 → v0.14.3](astral-sh/ruff-pre-commit@v0.14.2...v0.14.3) * feat: add String.type property to retrieve the string type Close #443 Signed-off-by: Frost Ming <me@frostming.com> * chore: update Python version and GitHub Actions to use latest versions Signed-off-by: Frost Ming <me@frostming.com> * chore: drop support for Python 3.8 and update CI matrix Signed-off-by: Frost Ming <me@frostming.com> * Merge branch 'pre-commit-ci-update-config' into drop-py38 * chore: update poetry.lock for Python version changes and remove deprecated dependencies Signed-off-by: Frost Ming <me@frostming.com>
1 parent 5495784 commit edba395

File tree

6 files changed

+22
-34
lines changed

6 files changed

+22
-34
lines changed

.github/workflows/integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ Ubuntu, macOS, Windows ]
22-
python-version: [ "3.11" ]
22+
python-version: [ "3.12" ]
2323
project: [ "poetry", "poetry-core" ]
2424
include:
2525
- os: Ubuntu
@@ -34,16 +34,16 @@ jobs:
3434
shell: bash
3535
steps:
3636
- name: Checkout Source (${{ matrix.project }})
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
3838
with:
3939
repository: python-poetry/${{ matrix.project }}
4040

4141
- name: Checkout Source (tomlkit)
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4343
with:
4444
path: tomlkit
4545

46-
- uses: actions/setup-python@v5
46+
- uses: actions/setup-python@v6
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949

@@ -61,7 +61,7 @@ jobs:
6161
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
6262

6363
- name: Set up cache
64-
uses: actions/cache@v3
64+
uses: actions/cache@v5
6565
if: matrix.project != 'poetry-core'
6666
id: cache
6767
with:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v6
1515
with:
1616
submodules: "recursive"
1717

@@ -20,7 +20,7 @@ jobs:
2020
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: 3.x
2626

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-latest, macos-13, windows-latest]
20-
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13, 3.14]
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
with:
2525
submodules: "recursive"
2626

2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
allow-prereleases: true
@@ -46,7 +46,7 @@ jobs:
4646
poetry env use python
4747
4848
- name: Set up cache
49-
uses: actions/cache@v4
49+
uses: actions/cache@v5
5050
id: cache
5151
with:
5252
path: .venv

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Drop support for Python older than 3.9. Remove 3.8 from the CI matrix.
8+
59
### Added
610

711
- Custom encoders can now receive `_parent` and `_sort_keys` parameters to enable proper encoding of nested structures. ([#429](https://github.com/python-poetry/tomlkit/issues/429))

poetry.lock

Lines changed: 5 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ include = [
2121
]
2222

2323
[tool.poetry.dependencies]
24-
python = ">=3.8"
24+
python = ">=3.9"
2525

2626
[tool.poetry.group.dev.dependencies]
2727
pytest = "^7.2.0"

0 commit comments

Comments
 (0)