Skip to content

Commit 1fd9247

Browse files
Merge pull request #14 from eccenca/feature/updateTemplate-CMEM-6741
Update template
2 parents a9cc2ce + e83debe commit 1fd9247

File tree

10 files changed

+782
-655
lines changed

10 files changed

+782
-655
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v7.2.0-5-g30b73b4
2+
_commit: v7.3.0-22-g87d8a9b
33
_src_path: gh:eccenca/cmem-plugin-template
44
author_mail: cmempy-developer@eccenca.com
55
author_name: eccenca GmbH

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020

2121
steps:
2222
- name: Check out repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Install Task
2626
uses: arduino/setup-task@v2
2727

2828
- name: Set up python
2929
id: setup-python
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
3131
with:
32-
python-version: '3.11'
32+
python-version: '3.13'
3333

3434
- name: Install and configure poetry
3535
uses: snok/install-poetry@v1

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717

1818
steps:
1919
- name: Check out repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121

2222
- name: Install Task
2323
uses: arduino/setup-task@v2
2424

2525
- name: Set up python
2626
id: setup-python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
29-
python-version: '3.11'
29+
python-version: '3.13'
3030

3131
- name: Install and configure poetry
3232
uses: snok/install-poetry@v1

.gitlab-ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
default:
3-
image: docker-registry.eccenca.com/eccenca-python:v3.11.9-2
3+
image: docker-registry.eccenca.com/eccenca-python:v3.13.8
44
# all jobs can be interrupted in case a new commit is pushed
55
interruptible: true
66
before_script:
@@ -53,10 +53,7 @@ pytest:
5353
junit:
5454
- dist/junit-pytest.xml
5555
paths:
56-
- dist/badge-coverage.svg
57-
- dist/badge-tests.svg
58-
- dist/coverage
59-
- dist/coverage.xml
56+
- dist/*
6057

6158
deptry:
6259
stage: test
@@ -74,6 +71,7 @@ build:
7471
- mypy
7572
- pytest
7673
- safety
74+
- deptry
7775
script:
7876
- task build
7977
artifacts:

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.13

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)
66

7+
## [Unreleased]
8+
9+
### Changed
10+
11+
- update template and adjust tests accordingly
12+
- ensure python 3.13 compatability
13+
- python 3.13 required
14+
715
## [4.1.0] 2025-07-17
816

917
### Changed

Taskfile.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ includes:
2020
custom:
2121
taskfile: ./TaskfileCustom.yaml
2222
optional: true
23+
flatten: true
2324
plugin:
2425
taskfile: .tasks-plugin.yml
2526
optional: true
27+
flatten: true
2628

2729
tasks:
2830

poetry.lock

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

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords = [
1515
homepage = "https://github.com/eccenca/cmem-plugin-shapes"
1616

1717
[tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
18-
python = "^3.11"
18+
python = "^3.13"
1919
validators = "^0.35.0"
2020
rdflib = "^7.1.4"
2121
cmem-cmempy = "^25"
@@ -28,16 +28,16 @@ allow-prereleases = false
2828
version = "^25.3.0"
2929

3030
[tool.poetry.group.dev.dependencies]
31-
deptry = "^0.23.0"
31+
deptry = "^0.23.1"
3232
genbadge = {extras = ["coverage"], version = "^1.1.2"}
33-
mypy = "^1.16.1"
34-
pip = "^25.1.1"
35-
pytest = "^8.4.1"
36-
pytest-cov = "^6.2.1"
33+
mypy = "^1.18.2"
34+
pip = "^25.2"
35+
pytest = "^8.4.2"
36+
pytest-cov = "^7.0.0"
3737
pytest-dotenv = "^0.5.2"
3838
pytest-html = "^4.1.1"
39-
pytest-memray = { version = "^1.7.0", markers = "platform_system != 'Windows'" }
40-
ruff = "^0.12.0"
39+
pytest-memray = { version = "^1.8.0", markers = "platform_system != 'Windows'" }
40+
ruff = "^0.13.3"
4141
safety = "^1.10.3"
4242

4343
[build-system]

tests/test_shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from tests.cmemc_command_utils import run, run_without_assertion
2727

2828
DATETIME_PATTERN = re.compile(
29-
r'^"[1-9][0-9]{3}-[0-1][1-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9].[0-9]{3}Z"\^\^'
29+
r'^"[1-9][0-9]{3}-(0[1-9]|1[0-2])-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9].[0-9]{3}Z"\^\^'
3030
"<http://www.w3.org/2001/XMLSchema#dateTime>"
3131
)
3232

@@ -124,7 +124,7 @@ def test_workflow_execution(graph_setup: GraphSetupFixture) -> None:
124124
test = Graph().parse(f"{FIXTURE_DIR}/test_shapes.ttl")
125125
assert isomorphic(result_graph, test)
126126
with pytest.raises(
127-
ValueError, match="Graph <http://docker.localhost/my-persons-shapes> already exists."
127+
ValueError, match=r"Graph <http://docker.localhost/my-persons-shapes> already exists."
128128
):
129129
ShapesPlugin(
130130
data_graph_iri=graph_setup.dataset_iri,

0 commit comments

Comments
 (0)