Compare commits
5 Commits
4ea3b28081
...
v0.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 66c1c5c55f | |||
|
89c4a4a073
|
|||
| 72cb0cc20f | |||
|
39f01b266f
|
|||
|
31c3f7d438
|
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## [0.3.0](https://git.0xmax42.io/maxp/repoCat/compare/v0.2.0..v0.3.0) - 2025-11-27
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 Features
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "repocat"
|
name = "repocat"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["Max P. <Mail@MPassarello.de>"]
|
authors = ["Max P. <Mail@MPassarello.de>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def archive_repo(source: Path, target_dir: Path, dry_run: bool) -> Path:
|
|||||||
return archive_path
|
return archive_path
|
||||||
|
|
||||||
with open(archive_path, "wb") as f:
|
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 cctx.stream_writer(f) as compressor:
|
||||||
with tarfile.open(fileobj=compressor, mode="w|") as tar:
|
with tarfile.open(fileobj=compressor, mode="w|") as tar:
|
||||||
tar.add(source, arcname=source.name)
|
tar.add(source, arcname=source.name)
|
||||||
@@ -70,6 +70,9 @@ def run(
|
|||||||
if category and cat.config.name not in category:
|
if category and cat.config.name not in category:
|
||||||
continue
|
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
|
limit_days = cat.config.days if cat.config.days is not None else older_than
|
||||||
|
|
||||||
for repo in cat.repos:
|
for repo in cat.repos:
|
||||||
|
|||||||
Reference in New Issue
Block a user