Skip to content

Commit 6509b84

Browse files
Merge pull request #5 from eccenca/feature/updateTemplate-CMEM-6741
Update template
2 parents d62e08d + d710821 commit 6509b84

19 files changed

Lines changed: 1536 additions & 1046 deletions

.copier-answers.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changes here will be overwritten by Copier
2-
project_slug=mattermost
2+
package_dir=cmem_plugin_mattermost
33

.copier-answers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v6.1.0
2+
_commit: v7.3.0-24-g169e035
33
_src_path: gh:eccenca/cmem-plugin-template
44
author_mail: hannes.hartmann@eccenca.com
55
author_name: Hannes Hartmann
66
github_page: https://github.com/eccenca/cmem-plugin-mattermost
77
project_description: Send messages to Mattermost channels and users.
88
project_slug: mattermost
9+
project_type: plugin
910
pypi: true
1011

.github/workflows/check.yml

Lines changed: 8 additions & 4 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
26-
uses: arduino/setup-task@v1
26+
uses: arduino/setup-task@v2
2727

2828
- name: Set up python
2929
id: setup-python
30-
uses: actions/setup-python@v4
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
@@ -57,6 +57,10 @@ jobs:
5757
run: |
5858
task check:pytest
5959
60+
- name: deptry
61+
run: |
62+
task check:deptry
63+
6064
- name: safety
6165
run: |
6266
task check:safety

.github/workflows/publish.yml

Lines changed: 4 additions & 4 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
23-
uses: arduino/setup-task@v1
23+
uses: arduino/setup-task@v2
2424

2525
- name: Set up python
2626
id: setup-python
27-
uses: actions/setup-python@v4
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: 8 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.4
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,12 @@ 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/*
57+
58+
deptry:
59+
stage: test
60+
script:
61+
- task check:deptry
6062

6163
safety:
6264
stage: test
@@ -69,6 +71,7 @@ build:
6971
- mypy
7072
- pytest
7173
- safety
74+
- deptry
7275
script:
7376
- task build
7477
artifacts:

.idea/cmem-plugin-mattermost.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.python-version

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

.tasks-plugin.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# https://taskfile.dev
2+
---
3+
version: '3'
4+
5+
tasks:
6+
7+
install:
8+
desc: Install plugin package in Corporate Memory
9+
cmds:
10+
- task build
11+
- poetry run cmemc admin workspace python install dist/cmem_plugin_mattermost*.tar.gz
12+
- poetry run cmemc admin workspace python list-plugins
13+
14+
uninstall:
15+
desc: Unnstall plugin package in Corporate Memory
16+
cmds:
17+
- task build
18+
- poetry run cmemc admin workspace python uninstall cmem-plugin-mattermost
19+
- poetry run cmemc admin workspace python list-plugins

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+
## [2.3.0] 2025-10-20
8+
9+
### Changed
10+
11+
- upgrade template for python 3.13 compatability
12+
- changed from pytest_docker_compose to pytest-docker in test suite
13+
- this was needed since urllib required a certain docker version that pytest_docker_compose could not fulfill
14+
715
## [2.2.0] 2024-03-24
816

917
### Changed

README-public.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@
22

33
Send messages to [Mattermost](https://mattermost.com/). channels and users.
44

5-
This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com).
5+
[![eccenca Corporate Memory][cmem-shield]][cmem-link]
66

7-
You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line
8-
clients like this:
7+
This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line client like this:
98

10-
```shell-session
9+
```
1110
cmemc admin workspace python install cmem-plugin-mattermost
1211
```
12+
[![workflow](https://github.com/eccenca/cmem-plugin-mattermost/actions/workflows/check.yml/badge.svg)](https://github.com/eccenca/cmem-plugin-mattermost/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-mattermost)](https://pypi.org/project/cmem-plugin-mattermost) [![license](https://img.shields.io/pypi/l/cmem-plugin-mattermost)](https://pypi.org/project/cmem-plugin-mattermost)
13+
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
14+
15+
[cmem-link]: https://documentation.eccenca.com
16+
[cmem-shield]: https://img.shields.io/endpoint?url=https://dev.documentation.eccenca.com/badge.json
17+
[poetry-link]: https://python-poetry.org/
18+
[poetry-shield]: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
19+
[ruff-link]: https://docs.astral.sh/ruff/
20+
[ruff-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=Code%20Style
21+
[mypy-link]: https://mypy-lang.org/
22+
[mypy-shield]: https://www.mypy-lang.org/static/mypy_badge.svg
23+
[copier]: https://copier.readthedocs.io/
24+
[copier-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json

0 commit comments

Comments
 (0)