Commit d22102d
committed
Extract palace.opds into a uv workspace package
Stacked on the palace-util extraction. Move palace.manager.opds into a
new workspace package at packages/palace-opds/ (namespace palace.opds)
and retarget all callers. The OPDS model tree is generic and reusable
across Palace projects; making it a standalone workspace member lets us
publish it independently without dragging in palace-manager.
palace-opds depends on palace-util for the three small cross-cutting
symbols the models need (PalaceValueError, utc_now/to_utc, LoggerMixin).
Callers rewritten (palace.manager.opds.* → palace.opds.*):
- 17 source files across palace.manager.{api, celery, data_layer, feed,
integration, sqlalchemy}.
- 15 test files across tests/manager/**.
Moved tests:
- tests/manager/opds/** → packages/palace-opds/tests/opds/**. The 5
tests that only use OPDS2FilesFixture / OPDS2WithODLFilesFixture as
type annotations now import them under TYPE_CHECKING so the package
tests don't need tests.fixtures.files at import time; pytest still
injects the fixtures at runtime via the root-conftest plugin.
- tests/manager/opds/types/test_language.py: replace LogLevel.warning
with stdlib logging.WARNING so the test has no palace.manager import.
Tooling:
- pyproject.toml: palace-opds added to [project.dependencies],
workspace members, mypy files/mypy_path, coverage source, pytest
testpaths. tests-mypy override picks up "opds.*".
- docker/Dockerfile, docker/Dockerfile.baseimage: copy
packages/palace-opds/pyproject.toml in the cache layer alongside
palace-util.
- README.md, CLAUDE.md: workspace section extended with palace-opds.1 parent 5001201 commit d22102d
78 files changed
Lines changed: 260 additions & 151 deletions
File tree
- docker
- packages/palace-opds
- src/palace/opds
- lcp
- odl
- types
- tests/opds
- lcp
- odl
- types
- src/palace/manager
- api/controller
- celery/tasks
- data_layer
- feed/serializer
- integration/license
- boundless
- model
- opds
- odl
- opds1
- opds2
- sqlalchemy/model
- tests
- fixtures
- manager
- celery/tasks
- data_layer
- feed
- integration/license/opds
- odl
- service/celery
- sqlalchemy/model
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
File renamed without changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
File renamed without changes.
0 commit comments