Skip to content

Commit 8e238ef

Browse files
Use darkseid (#48)
- Switch archive implementation to use [darkseid](https://github.com/Metron-Project/darkseid) - Shift most `main.py` functions to the [Comic](./perdoo/comic.py) class - Drop support for exporting as `.cb7` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9d777bc commit 8e238ef

33 files changed

+1168
-1702
lines changed

.github/workflows/publishing.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on: push
55
jobs:
66
build:
77
name: Build
8+
permissions:
9+
contents: read
810
runs-on: ubuntu-latest
911

1012
steps:
1113
- uses: actions/checkout@v4
1214
- uses: actions/setup-python@v5
1315
with:
14-
python-version: '3.12'
16+
python-version: '3.13'
1517
- name: Install pypa/build
1618
run: pip install build
1719
- name: Build a binary wheel and a source tarball
@@ -22,16 +24,17 @@ jobs:
2224
path: dist/
2325

2426
publish-to-pypi:
25-
name: Publish to PyPI
2627
if: startsWith(github.ref, 'refs/tags/')
2728
needs:
2829
- build
29-
runs-on: ubuntu-latest
30+
3031
environment:
3132
name: pypi
3233
url: https://pypi.org/p/perdoo
34+
name: Publish to PyPI
3335
permissions:
3436
id-token: write
37+
runs-on: ubuntu-latest
3538

3639
steps:
3740
- uses: actions/download-artifact@v4

.github/workflows/testing.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ jobs:
3030
- ubuntu-latest
3131
- macos-latest
3232
- windows-latest
33+
34+
permissions:
35+
contents: read
3336
runs-on: ${{ matrix.os }}
37+
3438
steps:
3539
- uses: actions/checkout@v4
3640
- uses: astral-sh/setup-uv@v6
@@ -40,10 +44,15 @@ jobs:
4044
run: uv sync --group tests
4145
- name: Run tests
4246
run: uv run pytest
47+
4348
collector:
44-
needs: [pytest]
4549
if: always()
50+
needs:
51+
- pytest
52+
53+
permissions: { }
4654
runs-on: ubuntu-latest
55+
4756
steps:
4857
- name: Check for failures
4958
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.11.11
3+
rev: v0.12.4
44
hooks:
55
- id: ruff-format
66
- id: ruff-check

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
Perdoo is designed to assist in sorting and organizing your comic collection by utilizing metadata files stored within comic archives.\
17-
Perdoo standardizes all your digital comics into a unified format (cb7, cbt, or cbz).\
17+
Perdoo standardizes all your digital comics into a unified format (cbz).\
1818
It adds and/or updates metadata files using supported services.\
1919
Unlike other tagging tools, Perdoo employs a manual approach when metadata files are absent, prompting users to enter the necessary Publisher/Series/Issue details for search purposes.
2020

@@ -62,12 +62,6 @@ Unlike other tagging tools, Perdoo employs a manual approach when metadata files
6262
<!-- RICH-CODEX hide_command: true -->
6363
![`uv run Perdoo settings locate --help`](docs/img/perdoo-settings-locate.svg)
6464

65-
</details>
66-
<details><summary>Perdoo settings update</summary>
67-
68-
<!-- RICH-CODEX hide_command: true -->
69-
![`uv run Perdoo settings update --help`](docs/img/perdoo-settings-update.svg)
70-
7165
</details>
7266

7367
## Supported Formats
@@ -81,9 +75,7 @@ Unlike other tagging tools, Perdoo employs a manual approach when metadata files
8175

8276
### Output Extensions
8377

84-
- .cbt
85-
- .cbz _(Default)_
86-
- .cb7 _(Requires installing `cb7` dependencies: `pipx install perdoo[cb7]`)_
78+
- .cbz
8779

8880
### Metadata Files
8981

docs/img/perdoo-archive-view.svg

Lines changed: 49 additions & 59 deletions
Loading

docs/img/perdoo-commands.svg

Lines changed: 49 additions & 73 deletions
Loading

docs/img/perdoo-import.svg

Lines changed: 49 additions & 125 deletions
Loading

docs/img/perdoo-settings-locate.svg

Lines changed: 53 additions & 41 deletions
Loading

0 commit comments

Comments
 (0)