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.3.0
_commit: v7.3.0-21-gd03545f
_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
3 changes: 2 additions & 1 deletion .idea/cmem-plugin-kafka.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.13
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ 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/)

## [Unreleased]

### Changed

- Update dependencies and template
- validation of python 3.13 compatability
- python 3.13 needed

## [3.3.0] 2025-10-07

### Changed
Expand Down
614 changes: 333 additions & 281 deletions poetry.lock

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ keywords = [
]
homepage = "https://github.com/eccenca/cmem-plugin-kafka"

[tool.poetry.dependencies]
# if you need to change python version here, change it also in .python-version
python = "^3.11"
[tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
python = "^3.13"
confluent-kafka = "^2.6.0"
defusedxml = "^0.7.1"
json-stream = "2.3.0"
Expand All @@ -35,16 +34,16 @@ version = "^25.3.0"

[tool.poetry.group.dev.dependencies]
cmem-plugin-examples = "^0.3.0"
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"
types-requests = "^2.31.0.10"
xmltodict = "^0.15.1"
Expand Down
10 changes: 5 additions & 5 deletions tests/test_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def test_execution_kafka_producer_new_topic(project: str) -> None:
with pytest.raises(
ValueError,
match=(
"The topic you configured, was just created."
" Save again if this ok for you."
" Otherwise, change the topic name."
r"The topic you configured, was just created."
r" Save again if this ok for you."
r" Otherwise, change the topic name."
),
):
KafkaProducerPlugin(
Expand Down Expand Up @@ -377,7 +377,7 @@ def test_validate_bootstrap_server() -> None:
"""Validate bootstrap service value"""
with pytest.raises(
cimpl.KafkaException,
match="KafkaError{code=_TRANSPORT,val=-195,"
match=r"KafkaError{code=_TRANSPORT,val=-195,"
'str="Failed to get metadata: Local: Broker transport failure"}',
):
KafkaConsumerPlugin(
Expand All @@ -404,7 +404,7 @@ def test_validate_auto_offset_reset_parameter(project: str, topic: str) -> None:

with pytest.raises(
KafkaException,
match="KafkaError{code=_AUTO_OFFSET_RESET,val=-140,"
match=r"KafkaError{code=_AUTO_OFFSET_RESET,val=-140,"
'str="no previously committed offset available: Local: No offset stored"}',
):
KafkaConsumerPlugin(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_validate_bootstrap_server() -> None:
"""Validate bootstrap service value"""
with pytest.raises(
cimpl.KafkaException,
match="KafkaError{code=_TRANSPORT,val=-195,"
match=r"KafkaError{code=_TRANSPORT,val=-195,"
'str="Failed to get metadata: Local: Broker transport failure"}',
):
KafkaProducerPlugin(
Expand Down