Skip to content

Commit 399277b

Browse files
authored
Only test python versions 3.9+ since poetry only supports that, fix CI and prproject.toml (#170)
* only test python versions 3.9+ since poetry only supports that * update deploy with new python versions * poetry now implements PEP 621 * project authors must be an object now * update version check since version is now in project section * Update check_version.yml * Update check_version.yml
1 parent df7b9be commit 399277b

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/workflows/check_version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
5050
var pyproject = toml.parse(await fs.readFile('pyproject.toml', 'utf8'))
5151
var old_pyproject = toml.parse(await fs.readFile('old_pyproject.toml', 'utf8'))
52-
52+
5353
var msg_body = ""
54-
if (semver.gte(old_pyproject.tool.poetry.version, pyproject.tool.poetry.version)) {
54+
if (semver.gte(old_pyproject.project.version, pyproject.project.version)) {
5555
msg_body = (
56-
`Update the version in [pyproject.toml](https://github.com/${{ github.event.pull_request.head.repo.full_name }}/blob/${{ github.head_ref }}/pyproject.toml) if you want this PR to generate a new release (main is ${old_pyproject.tool.poetry.version} >= ${pyproject.tool.poetry.version}).`
56+
`Update the version in [pyproject.toml](https://github.com/${{ github.event.pull_request.head.repo.full_name }}/blob/${{ github.head_ref }}/pyproject.toml) if you want this PR to generate a new release (main is ${old_pyproject.project.version} >= ${pyproject.project.version}).`
5757
)
5858
} else {
5959
msg_body = "Version has been updated in pyproject.toml."

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v3
46-
- name: Set up Python 3.8
46+
- name: Set up Python 3.10
4747
uses: actions/setup-python@v3
4848
with:
49-
python-version: '3.8'
49+
python-version: '3.10'
5050
- name: Install Poetry
5151
uses: snok/install-poetry@v1
5252
- name: Install Python dependencies
@@ -70,8 +70,8 @@ jobs:
7070

7171
strategy:
7272
matrix:
73-
python-version: [3.8, 3.9, '3.10', '3.11']
74-
git-version: [2.17.0, 2.35.0, 2.37.1]
73+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
74+
git-version: ['2.17.0', '2.35.0', '2.37.1']
7575

7676
steps:
7777
- uses: actions/checkout@v3

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: Set up Python 3.8
19+
- name: Set up Python 3.10
2020
uses: actions/setup-python@v3
2121
with:
22-
python-version: '3.8'
22+
python-version: '3.10'
2323
- name: Install Poetry
2424
uses: snok/install-poetry@v1
2525
- name: Install Python dependencies
@@ -42,7 +42,7 @@ jobs:
4242

4343
strategy:
4444
matrix:
45-
python-version: [3.8, 3.9, '3.10', '3.11']
45+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
4646
git-version: [2.17.0, 2.35.0, 2.37.1]
4747

4848
steps:

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
[tool.poetry]
1+
[project]
22
name = "mkdocs-multirepo-plugin"
33
version = "0.8.3"
44
description = "Build documentation in multiple repos into one site."
5-
authors = ["jdoiro3 <[email protected]>"]
5+
authors = [
6+
{ name="Joseph Doiron", email="[email protected]" }
7+
]
68
license = "MIT"
79
readme = "README.md"
810
homepage = "https://pypi.org/project/mkdocs-multirepo-plugin/"

0 commit comments

Comments
 (0)