Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v7.2.0-5-g30b73b4
_commit: v7.3.0-24-g169e035
_src_path: gh:eccenca/cmem-plugin-template
author_mail: cmempy-developer@eccenca.com
author_name: eccenca GmbH
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5

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

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: '3.13'

- name: Install and configure poetry
uses: snok/install-poetry@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5

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

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: '3.13'

- name: Install and configure poetry
uses: snok/install-poetry@v1
Expand Down
8 changes: 3 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
default:
image: docker-registry.eccenca.com/eccenca-python:v3.11.9-2
image: docker-registry.eccenca.com/eccenca-python:v3.13.8
# all jobs can be interrupted in case a new commit is pushed
interruptible: true
before_script:
Expand Down Expand Up @@ -53,10 +53,7 @@ pytest:
junit:
- dist/junit-pytest.xml
paths:
- dist/badge-coverage.svg
- dist/badge-tests.svg
- dist/coverage
- dist/coverage.xml
- dist/*

deptry:
stage: test
Expand All @@ -74,6 +71,7 @@ build:
- mypy
- pytest
- safety
- deptry
script:
- task build
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.13
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.

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

## [2.0.0] 2024-10-16

### Changed

- Update of dependencies and template
- validation of python 3.13 compatibility

### Breaking Change

- Requires python 3.13 now (>= CMEM 25.3.x)


## [1.1.0] 2024-06-24

### Changed
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ includes:
custom:
taskfile: ./TaskfileCustom.yaml
optional: true
flatten: true
plugin:
taskfile: .tasks-plugin.yml
optional: true
flatten: true

tasks:

Expand Down
1,558 changes: 837 additions & 721 deletions poetry.lock

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ keywords = [
homepage = "https://github.com/eccenca/cmem-plugin-ulid"

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

[tool.poetry.dependencies.cmem-plugin-base]
version = "^4.12.1"
version = "^4.15.0"
allow-prereleases = false

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

[tool.poetry.group.dev.dependencies]
deptry = "^0.23.0"
deptry = "^0.23.1"
genbadge = {extras = ["coverage"], version = "^1.1.2"}
mypy = "^1.16.1"
pip = "^25.1.1"
pytest = "^8.4.1"
pytest-cov = "^6.2.1"
mypy = "^1.18.2"
pip = "^25.2"
pytest = "^8.4.2"
pytest-cov = "^7.0.0"
pytest-dotenv = "^0.5.2"
pytest-html = "^4.1.1"
pytest-memray = { version = "^1.7.0", markers = "platform_system != 'Windows'" }
ruff = "^0.12.0"
pytest-memray = { version = "^1.8.0", markers = "platform_system != 'Windows'" }
ruff = "^0.13.3"
safety = "^1.10.3"

[build-system]
Expand Down
6 changes: 3 additions & 3 deletions tests/test_ulid.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def test_execution() -> None:
def test_fails() -> None:
"""Test fails."""
# no inputs allowed
with pytest.raises(ValueError, match="Plugin does not support processing input entities."):
with pytest.raises(ValueError, match=r"Plugin does not support processing input entities."):
ULIDTransformPlugin().transform(inputs=[["2000-05-22", "2021-12-12", "1904-02-29"]])

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