5 Commits

Author SHA1 Message Date
66c1c5c55f chore(changelog): update changelog for v0.4.0
All checks were successful
Build and Publish nightly package / build-and-publish (release) Successful in 33s
2025-11-27 18:58:29 +00:00
89c4a4a073 chore(version): bump version to 0.4.0
All checks were successful
Auto Changelog & (Release) / release (push) Successful in 8s
Build and Publish nightly package / build-and-publish (push) Successful in 33s
2025-11-27 19:58:18 +01:00
72cb0cc20f chore(changelog): update unreleased changelog 2025-11-27 18:57:52 +00:00
39f01b266f fix(archive): skip categories with zero or unset days config
All checks were successful
Auto Changelog & (Release) / release (push) Successful in 6s
Build and Publish nightly package / build-and-publish (push) Successful in 31s
2025-11-27 19:57:43 +01:00
31c3f7d438 feat(archive): enable multithreaded zstd compression 2025-11-27 19:57:43 +01:00
4 changed files with 16 additions and 3 deletions

View File

@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file.
## [0.4.0](https://git.0xmax42.io/maxp/repoCat/compare/v0.3.0..v0.4.0) - 2025-11-27
### 🚀 Features
- *(archive)* Enable multithreaded zstd compression - ([31c3f7d](https://git.0xmax42.io/maxp/repoCat/commit/31c3f7d43880210f8056e4484b441e5f30500184))
### 🐛 Bug Fixes
- *(archive)* Skip categories with zero or unset days config - ([39f01b2](https://git.0xmax42.io/maxp/repoCat/commit/39f01b266f9d58509a6fb69fcd0734a85b2fd0ff))
## [0.3.0](https://git.0xmax42.io/maxp/repoCat/compare/v0.2.0..v0.3.0) - 2025-11-27
### 🚀 Features

View File

@@ -1 +1 @@
0.3.0
0.4.0

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "repocat"
version = "0.3.0"
version = "0.4.0"
description = ""
authors = ["Max P. <Mail@MPassarello.de>"]
readme = "README.md"

View File

@@ -28,7 +28,7 @@ def archive_repo(source: Path, target_dir: Path, dry_run: bool) -> Path:
return archive_path
with open(archive_path, "wb") as f:
cctx = zstandard.ZstdCompressor(level=20)
cctx = zstandard.ZstdCompressor(level=20, threads=-1)
with cctx.stream_writer(f) as compressor:
with tarfile.open(fileobj=compressor, mode="w|") as tar:
tar.add(source, arcname=source.name)
@@ -70,6 +70,9 @@ def run(
if category and cat.config.name not in category:
continue
if cat.config.days == 0 or cat.config.days is None:
continue
limit_days = cat.config.days if cat.config.days is not None else older_than
for repo in cat.repos: