Skip to content

Commit 06eb521

Browse files
authored
Merge pull request #2 from eccenca/feature/upgradeTemplate-CMEM-6741
upgrade template
2 parents b8e925d + 0196947 commit 06eb521

10 files changed

Lines changed: 875 additions & 747 deletions

File tree

.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-24-g169e035
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ 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+
## [2.0.0] 2024-10-16
8+
9+
### Changed
10+
11+
- Update of dependencies and template
12+
- validation of python 3.13 compatibility
13+
14+
### Breaking Change
15+
16+
- Requires python 3.13 now (>= CMEM 25.3.x)
17+
18+
719
## [1.1.0] 2024-06-24
820

921
### 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: 837 additions & 721 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ keywords = [
1616
homepage = "https://github.com/eccenca/cmem-plugin-ulid"
1717

1818
[tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
19-
python = "^3.11"
19+
python = "^3.13"
2020
python-ulid = "^3.0.0"
2121

2222
[tool.poetry.dependencies.cmem-plugin-base]
23-
version = "^4.12.1"
23+
version = "^4.15.0"
2424
allow-prereleases = false
2525

2626
[tool.poetry.group.dev.dependencies.cmem-cmemc]
27-
version = "^25.3.0"
27+
version = ">=24.2.0"
2828

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

4242
[build-system]

tests/test_ulid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def test_execution() -> None:
2626
def test_fails() -> None:
2727
"""Test fails."""
2828
# no inputs allowed
29-
with pytest.raises(ValueError, match="Plugin does not support processing input entities."):
29+
with pytest.raises(ValueError, match=r"Plugin does not support processing input entities."):
3030
ULIDTransformPlugin().transform(inputs=[["2000-05-22", "2021-12-12", "1904-02-29"]])
3131

32-
with pytest.raises(ValueError, match="Number of Values needs to be a positive integer."):
32+
with pytest.raises(ValueError, match=r"Number of Values needs to be a positive integer."):
3333
ULIDTransformPlugin(number_of_values=-0).transform(inputs=[])
34-
with pytest.raises(ValueError, match="Number of Values needs to be a positive integer."):
34+
with pytest.raises(ValueError, match=r"Number of Values needs to be a positive integer."):
3535
ULIDTransformPlugin(number_of_values=-1).transform(inputs=[])

0 commit comments

Comments
 (0)