Skip to content

Commit 755a171

Browse files
Merge pull request #8 from eccenca/feature/updateTemplate-CMEM-6741
Update template
2 parents 8fee027 + 2bac783 commit 755a171

File tree

10 files changed

+1013
-855
lines changed

10 files changed

+1013
-855
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
2+
_commit: v7.3.0-21-gd03545f
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1717

1818
- testing infrastructure based in testcontainers
1919

20+
### Changed
21+
22+
- update template and ensure python 3.13 compatability
2023

2124
## [1.0.0] 2025-07-18
2225

cmem_plugin_ssh/execute_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def input_execution(
313313

314314
def no_input_execution(self, entities: list) -> None:
315315
"""Execute the command with no given input files"""
316-
stdin, stdout, stderr = self.ssh_client.exec_command(
316+
_, stdout, stderr = self.ssh_client.exec_command(
317317
self.command,
318318
timeout=self.timeout,
319319
)

poetry.lock

Lines changed: 985 additions & 828 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
@@ -14,27 +14,27 @@ keywords = [
1414
homepage = "https://github.com/eccenca/cmem-plugin-ssh"
1515

1616
[tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
17-
python = "^3.11"
17+
python = "^3.13"
1818
paramiko = "^3.5.1"
1919

2020
[tool.poetry.dependencies.cmem-plugin-base]
21-
version = "^4.10.2"
21+
version = "^4.12.1"
2222
allow-prereleases = false
2323

2424
[tool.poetry.group.dev.dependencies.cmem-cmemc]
25-
version = "^25.2.0"
25+
version = ">=24.2.0"
2626

2727
[tool.poetry.group.dev.dependencies]
28-
deptry = "^0.23.0"
28+
deptry = "^0.23.1"
2929
genbadge = {extras = ["coverage"], version = "^1.1.2"}
30-
mypy = "^1.15.0"
31-
pip = "^25.1.1"
32-
pytest = "^8.3.5"
33-
pytest-cov = "^6.1.1"
30+
mypy = "^1.18.2"
31+
pip = "^25.2"
32+
pytest = "^8.4.2"
33+
pytest-cov = "^7.0.0"
3434
pytest-dotenv = "^0.5.2"
3535
pytest-html = "^4.1.1"
36-
pytest-memray = { version = "^1.7.0", markers = "platform_system != 'Windows'" }
37-
ruff = "^0.11.11"
36+
pytest-memray = { version = "^1.8.0", markers = "platform_system != 'Windows'" }
37+
ruff = "^0.13.3"
3838
safety = "^1.10.3"
3939
testcontainers = "^4.12.0"
4040
types-paramiko = "^3.5.0.20250516"

tests/test_list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
def test_private_key_with_wrong_password(testing_environment: TestingEnvironment) -> None:
1616
"""Test encrypted private key with wrong password failure"""
17-
with pytest.raises(AuthenticationException, match="Authentication failed."):
17+
with pytest.raises(AuthenticationException, match="Authentication failed"):
1818
ListFiles(
1919
hostname=testing_environment.hostname,
2020
port=testing_environment.port,
@@ -83,7 +83,7 @@ def test_plugin_wrong_hostname(testing_environment: TestingEnvironment) -> None:
8383

8484
def test_plugin_wrong_username(testing_environment: TestingEnvironment) -> None:
8585
"""Test plugin execution with an incorrect port"""
86-
with pytest.raises(AuthenticationException, match="Authentication failed."):
86+
with pytest.raises(AuthenticationException, match="Authentication failed"):
8787
ListFiles(
8888
hostname=testing_environment.hostname,
8989
port=testing_environment.port,
@@ -134,7 +134,7 @@ def test_plugin_wrong_private_key(testing_environment: TestingEnvironment) -> No
134134

135135
def test_plugin_wrong_password(testing_environment: TestingEnvironment) -> None:
136136
"""Test plugin execution with an incorrect private key"""
137-
with pytest.raises(AuthenticationException, match="Authentication failed."):
137+
with pytest.raises(AuthenticationException, match="Authentication failed"):
138138
ListFiles(
139139
hostname=testing_environment.hostname,
140140
port=testing_environment.port,

0 commit comments

Comments
 (0)