Skip to content

Commit 804c638

Browse files
Merge pull request #3 from eccenca/feature/updateTemplate-CMEM-6741
Update template
2 parents d979acc + 1626117 commit 804c638

13 files changed

Lines changed: 1096 additions & 698 deletions

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v7.1.0
2+
_commit: v7.3.0-22-g87d8a9b
33
_src_path: gh:eccenca/cmem-plugin-template
44
author_mail: cmempy-developer@eccenca.com
55
author_name: eccenca GmbH
6-
github_page: ''
6+
github_page: https://github.com/eccenca/cmem-plugin-splitfile
77
project_description: Split a file into parts with a specified size
88
project_slug: splitfile
99
project_type: plugin

.github/workflows/check.yml

Lines changed: 7 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
@@ -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: 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: 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.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,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-splitfile.iml

Lines changed: 4 additions & 2 deletions
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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1111

1212
- Validate size unit parameter.
1313

14+
### Changed
15+
16+
- update template and fix according test suite
17+
- ensured python 3.13 compatability
18+
- python 3.13 now required
19+
1420
## [1.0.3] 2025-02-11
1521

1622
### Changed

README-public.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Split a text file into parts with a specified size.
44

55
[![eccenca Corporate Memory][cmem-shield]][cmem-link]
66

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 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:
88

99
```
1010
cmemc admin workspace python install cmem-plugin-splitfile
@@ -46,6 +46,7 @@ The path to the internal projects directory. If "Use internal projects directory
4646
this parameter has no effect.
4747

4848

49+
[![workflow](https://github.com/eccenca/cmem-plugin-splitfile/actions/workflows/check.yml/badge.svg)](https://github.com/eccenca/cmem-plugin-splitfile/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-splitfile)](https://pypi.org/project/cmem-plugin-splitfile) [![license](https://img.shields.io/pypi/l/cmem-plugin-splitfile)](https://pypi.org/project/cmem-plugin-splitfile)
4950
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
5051

5152
[cmem-link]: https://documentation.eccenca.com

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Split a text file into parts with a specified size.
44

5-
[![eccenca Corporate Memory][cmem-shield]][cmem-link]
5+
[![eccenca Corporate Memory][cmem-shield]][cmem-link][![workflow](https://github.com/eccenca/cmem-plugin-splitfile/actions/workflows/check.yml/badge.svg)](https://github.com/eccenca/cmem-plugin-splitfile/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-splitfile)](https://pypi.org/project/cmem-plugin-splitfile) [![license](https://img.shields.io/pypi/l/cmem-plugin-splitfile)](https://pypi.org/project/cmem-plugin-splitfile)
66
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
77

88
## Development

Taskfile.yaml

Lines changed: 9 additions & 1 deletion
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

@@ -68,7 +70,6 @@ tasks:
6870
| head -1 | cut -d " " -f 2 | cut -d "." -f 1-2
6971
7072
poetry:install:
71-
internal: true
7273
desc: Install dependencies managed by Poetry
7374
run: once
7475
deps:
@@ -110,6 +111,7 @@ tasks:
110111
cmds:
111112
- task: check:ruff
112113
- task: check:mypy
114+
- task: check:deptry
113115
- task: check:safety
114116

115117
check:pytest:
@@ -159,6 +161,12 @@ tasks:
159161
# ignore 51358 safety - dev dependency only
160162
- poetry run safety check -i 51358
161163

164+
check:deptry:
165+
desc: Complain about unused or missing dependencies
166+
<<: *preparation
167+
cmds:
168+
- poetry run deptry .
169+
162170
check:ruff:
163171
desc: Complain about everything else
164172
<<: *preparation

0 commit comments

Comments
 (0)