This commit is contained in:
@@ -18,6 +18,15 @@ jobs:
|
|||||||
run: uv sync --frozen
|
run: uv sync --frozen
|
||||||
- name: copy env
|
- name: copy env
|
||||||
run: cp .env.template .env
|
run: cp .env.template .env
|
||||||
|
- name: Install exiftool (system dependency)
|
||||||
|
run: |
|
||||||
|
if command -v exiftool >/dev/null 2>&1; then
|
||||||
|
echo "exiftool already installed"
|
||||||
|
elif command -v sudo >/dev/null 2>&1; then
|
||||||
|
sudo apt-get update && sudo apt-get install -y --no-install-recommends libimage-exiftool-perl
|
||||||
|
else
|
||||||
|
apt-get update && apt-get install -y --no-install-recommends libimage-exiftool-perl
|
||||||
|
fi
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
run: uv run pytest .
|
run: uv run pytest .
|
||||||
- name: Check formatting (black)
|
- name: Check formatting (black)
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ Requires a `.env` file with the following variables:
|
|||||||
- `llm_api_base_url`: Base URL for the LLM API.
|
- `llm_api_base_url`: Base URL for the LLM API.
|
||||||
- `llm_default_temperature`: Float value for temperature.
|
- `llm_default_temperature`: Float value for temperature.
|
||||||
|
|
||||||
|
## System Dependencies
|
||||||
|
- `exiftool` binary: required by `pyexiftool` at runtime, not installable via pip/uv.
|
||||||
|
- Arch: `perl-image-exiftool`
|
||||||
|
- Debian/Ubuntu: `libimage-exiftool-perl`
|
||||||
|
|
||||||
## Development Toolchain
|
## Development Toolchain
|
||||||
- **Dependency Management**: Use `uv`.
|
- **Dependency Management**: Use `uv`.
|
||||||
- **Python Version**: Requires Python `>=3.14`.
|
- **Python Version**: Requires Python `>=3.14`.
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ def read_metadata(path: Path) -> XmpMetadata | None:
|
|||||||
log.error(f"Could not read metadata from {path}: {exc}")
|
log.error(f"Could not read metadata from {path}: {exc}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MetadataWriter:
|
class MetadataWriter:
|
||||||
"""
|
"""
|
||||||
Write metadata (captions and keywords) to image files.
|
Write metadata (captions and keywords) to image files.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from photools3.metadata_writer import read_metadata
|
from photools3.metadata_writer import read_metadata
|
||||||
from test.test_photo import PATHS_DNG_EXAMPLES
|
from test.test_photo import PATHS_DNG_EXAMPLES
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user