Skip to content

build: use FOCA 0.18.0 from PyPI #6

Closed

Description

@uniqueg

Problem

FOCA v0.18.0, with the plugin engine (foca.plugins) and its plugin test kit (foca.plugins.testing, foca.plugins.pytest_plugin), is released on PyPI. The scaffold (#1, #2) still installs FOCA from its dev branch, declares foca>=0.17.1.dev0 and runs no contract checks. Plugins can't be released like this. The places to change are marked TODO(FOCA 0.18.0) and listed in MAINTAINERS.md, step 5.

Proposal

  • Remove the Git source of FOCA (tool.uv.sources in the root pyproject.toml), so FOCA comes from PyPI, and re-lock.
  • Raise the FOCA requirement of the example plugin and the meta distribution to foca>=0.18.0,<0.19.
  • CI: add FOCA 0.18.0 as the lowest version of the test matrix and keep FOCA dev as the newest.
  • Let Dependabot update FOCA again.
  • Template tests: use FOCA's test kit (PluginHarness, the builders, check_plugin_contract through the plugin_contract fixture), so every plugin created from the template runs the contract checks. Keep the test that loads the plugin through its installed entry point.
  • Docs: update the status, compatibility and testing notes (README, docs/writing-plugins.md, docs/contributing.md, MAINTAINERS.md, the example's README).

Acceptance criteria

  • No TODO(FOCA 0.18.0) left.
  • CI tests the example against FOCA 0.18.0 and dev, with the contract checks, at 100% coverage.
  • uv lock --check passes, with FOCA from PyPI.

Activity

  1. added
    priority: high
    status: in progress
    type: ci / cd
    type: maintenance
    workload: hours
    on Oct 27, 2026
  2. removed
    status: in progress
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: ci / cdtype: maintenanceworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions