Skip to content

Commit 241a357

Browse files
committed
chore: Apply upstream template changes via Cruft
1 parent 0bdb7a3 commit 241a357

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

.cruft.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
3-
"commit": "8a4f543e999c7a2b4ab49c724bf84ff4192f4c94",
3+
"commit": "4aa8104df7e76fa2dcbf583dcec8052e81d915ef",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -18,9 +18,10 @@
1818
"repo_url": "https://github.com/pelican-plugins/graphviz",
1919
"dev_status": "5 - Production/Stable",
2020
"tests_exist": true,
21-
"python_version": ">=3.8.1,<4.0",
21+
"python_version": ">=3.10",
2222
"pelican_version": ">=4.5",
23-
"_template": "https://github.com/getpelican/cookiecutter-pelican-plugin"
23+
"_template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
24+
"_commit": "4aa8104df7e76fa2dcbf583dcec8052e81d915ef"
2425
}
2526
},
2627
"directory": null

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
persist-credentials: false
2323

@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343

4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
with:
4747
persist-credentials: false
4848

@@ -55,7 +55,7 @@ jobs:
5555
- name: Set up Python & PDM
5656
uses: pdm-project/setup-pdm@v4
5757
with:
58-
python-version: "3.10"
58+
python-version: "3.11"
5959

6060
- name: Install dependencies
6161
run: pdm install
@@ -75,12 +75,12 @@ jobs:
7575
id-token: write
7676

7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v5
7979

8080
- name: Set up Python
81-
uses: actions/setup-python@v5
81+
uses: actions/setup-python@v6
8282
with:
83-
python-version: "3.10"
83+
python-version: "3.11"
8484

8585
- name: Check release
8686
id: check_release

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55
# See https://pre-commit.com/hooks.html for info on hooks
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v5.0.0
8+
rev: v6.0.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-ast
@@ -21,8 +21,8 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.9.2
24+
rev: v0.14.2
2525
hooks:
26-
- id: ruff
26+
- id: ruff-check
2727
- id: ruff-format
2828
args: ["--check"]

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ classifiers = [
1515
"License :: OSI Approved :: GNU Affero General Public License v3",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
2120
"Programming Language :: Python :: 3.12",
2221
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2323
"Topic :: Internet :: WWW/HTTP",
2424
"Topic :: Software Development :: Libraries :: Python Modules",
2525
]
2626

27-
requires-python = ">=3.9,<4.0"
27+
requires-python = ">=3.10"
2828
dependencies = [
2929
"pelican>=4.5",
3030
"py3dns>=3.2",
@@ -42,7 +42,7 @@ markdown = ["markdown>=3.4"]
4242
[dependency-groups]
4343
lint = [
4444
"invoke>=2.2",
45-
"ruff>=0.9.1,<1.0.0",
45+
"ruff>=0.14.2,<1.0.0",
4646
]
4747
test = [
4848
"beautifulsoup4>=4.13",
@@ -60,7 +60,7 @@ source-includes = [
6060
"hello-world.png",
6161
]
6262
includes = ["pelican/"]
63-
excludes = ["tasks.py"]
63+
excludes = ["**/.DS_Store"]
6464

6565
[tool.autopub]
6666
project-name = "Graphviz"

tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
from invoke import task
88

99
logger = logging.getLogger(__name__)
10+
level = logging.INFO
11+
logger.setLevel(level)
12+
console_handler = logging.StreamHandler()
13+
console_handler.setLevel(level)
14+
logger.addHandler(console_handler)
1015

1116
PKG_NAME = "graphviz"
1217
PKG_PATH = Path(f"pelican/plugins/{PKG_NAME}")

0 commit comments

Comments
 (0)