diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5c42e6..91ff385 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # TODO: pyproject.toml points to a local vnpipe checkout (absolute path). CI needs vnpipe - # available at that path (e.g. an extra checkout step for the vnpipe repo) before `uv sync`. + # TODO: vnpipe is a private git dependency over SSH; CI needs a deploy key for it. - uses: astral-sh/setup-uv@v5 - run: uv sync --locked - name: Lint diff --git a/CLAUDE.md b/CLAUDE.md index 751948c..9aaeb98 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ # CLAUDE.md Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the pipeline -(`vnpipe`) lives in `../vnpipe` (path dependency in `pyproject.toml`). +(`vnpipe`) lives in its own repo (`../vnpipe`, git dependency on its `development` branch, pinned by `uv.lock`). ## Rules - Repo content in English; the game text is Spanish (from the source, never rewritten). @@ -21,8 +21,8 @@ Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the - Ren'Py SDK lives in `tools/renpy-sdk` (gitignored; may be a symlink shared between worktrees) or `RENPY_SDK`. Inside the sandbox prefix SDK commands with `HOME=$TMPDIR/renpy-home`. Lint: `tools/renpy-sdk/renpy.sh vn lint`. Playthrough test and builds: `docs/running.md`. -- The `vnpipe` path in `pyproject.toml` is absolute (worktrees sit two levels deeper than the - main checkout); adjust it on another machine. +- vnpipe comes from git (pinned in `uv.lock`); after pushing vnpipe changes run + `uv lock --upgrade-package vnpipe`. Unpushed vnpipe: `uv run --with-editable ../vnpipe `. ## Branches and versions - `development` is the integration branch; `main` receives reviewed merges from it. diff --git a/pyproject.toml b/pyproject.toml index 38ce9ab..cf47a73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,11 +18,10 @@ dev = [ [tool.uv] package = false -# Absolute because uv resolves relative paths against the project directory and this repo is -# used from both the main checkout and `.worktrees/` (two levels deeper). From the main -# checkout alone this could be `../vnpipe`. Adjust to where vnpipe is cloned. +# vnpipe is pinned through uv.lock. After pushing vnpipe changes: `uv lock --upgrade-package vnpipe`. +# To try an unpushed vnpipe checkout: `uv run --with-editable ../vnpipe `. [tool.uv.sources] -vnpipe = { path = "/home/dasemu/Hacking/Darío/vnpipe", editable = true } +vnpipe = { git = "ssh://gitea@git.zenvairo.es:2222/dasemu/vnpipe.git", branch = "development" } [tool.ruff] line-length = 100 diff --git a/uv.lock b/uv.lock index 04b87fd..05ea980 100644 --- a/uv.lock +++ b/uv.lock @@ -35,7 +35,7 @@ dev = [ ] [package.metadata] -requires-dist = [{ name = "vnpipe", editable = "/home/dasemu/Hacking/Darío/vnpipe" }] +requires-dist = [{ name = "vnpipe", git = "ssh://git.zenvairo.es:2222/dasemu/vnpipe.git?branch=development" }] [package.metadata.requires-dev] dev = [ @@ -357,20 +357,8 @@ wheels = [ [[package]] name = "vnpipe" version = "0.1.0" -source = { editable = "/home/dasemu/Hacking/Darío/vnpipe" } +source = { git = "ssh://git.zenvairo.es:2222/dasemu/vnpipe.git?branch=development#58b4fcba46368915fadde0c7520a24dd6301fcad" } dependencies = [ { name = "jsonschema" }, { name = "pillow" }, ] - -[package.metadata] -requires-dist = [ - { name = "jsonschema", specifier = ">=4.23" }, - { name = "pillow", specifier = ">=11.0" }, -] - -[package.metadata.requires-dev] -dev = [ - { name = "pytest", specifier = ">=8.3" }, - { name = "ruff", specifier = ">=0.8" }, -]