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
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changes here will be overwritten by Copier
_commit: v7.1.0
_commit: v7.3.0-22-g87d8a9b
_src_path: gh:eccenca/cmem-plugin-template
author_mail: cmempy-developer@eccenca.com
author_name: eccenca GmbH
github_page: ''
github_page: https://github.com/eccenca/cmem-plugin-splitfile
project_description: Split a file into parts with a specified size
project_slug: splitfile
project_type: plugin
Expand Down
10 changes: 7 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 Expand Up @@ -57,6 +57,10 @@ jobs:
run: |
task check:pytest

- name: deptry
run: |
task check:deptry

- name: safety
run: |
task check:safety
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
13 changes: 8 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,12 @@ pytest:
junit:
- dist/junit-pytest.xml
paths:
- dist/badge-coverage.svg
- dist/badge-tests.svg
- dist/coverage
- dist/coverage.xml
- dist/*

deptry:
stage: test
script:
- task check:deptry

safety:
stage: test
Expand All @@ -69,6 +71,7 @@ build:
- mypy
- pytest
- safety
- deptry
script:
- task build
artifacts:
Expand Down
6 changes: 4 additions & 2 deletions .idea/cmem-plugin-splitfile.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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Validate size unit parameter.

### Changed

- update template and fix according test suite
- ensured python 3.13 compatability
- python 3.13 now required

## [1.0.3] 2025-02-11

### Changed
Expand Down
3 changes: 2 additions & 1 deletion README-public.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Split a text file into parts with a specified size.

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

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

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


[![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)
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]

[cmem-link]: https://documentation.eccenca.com
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Split a text file into parts with a specified size.

[![eccenca Corporate Memory][cmem-shield]][cmem-link]
[![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)
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]

## Development
Expand Down
10 changes: 9 additions & 1 deletion 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 Expand Up @@ -68,7 +70,6 @@ tasks:
| head -1 | cut -d " " -f 2 | cut -d "." -f 1-2

poetry:install:
internal: true
desc: Install dependencies managed by Poetry
run: once
deps:
Expand Down Expand Up @@ -110,6 +111,7 @@ tasks:
cmds:
- task: check:ruff
- task: check:mypy
- task: check:deptry
- task: check:safety

check:pytest:
Expand Down Expand Up @@ -159,6 +161,12 @@ tasks:
# ignore 51358 safety - dev dependency only
- poetry run safety check -i 51358

check:deptry:
desc: Complain about unused or missing dependencies
<<: *preparation
cmds:
- poetry run deptry .

check:ruff:
desc: Complain about everything else
<<: *preparation
Expand Down
Loading