Repository navigation
build: support FOCA 0.19 - #36
Merged
Merged
Conversation
Raise the FOCA bounds of the plugins to >=0.18.0,<0.20, test them against FOCA 0.18.0, 0.19.0 and dev, declare that they store nothing (data_stored, listed by FOCA 0.19), and release them as 0.1.1. The unreleased meta train 0.1.0 pins the new versions. Closes #32 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThe PR adds FOCA 0.19 compatibility while retaining FOCA 0.18 support, implemented through widened dependency ranges, explicit empty plugin-store metadata, 0.1.1 plugin releases, updated meta-package pins and documentation, and CI coverage for the lower bound, newest release, and development FOCA. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #36 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 551 553 +2
Branches 71 71
=========================================
+ Hits 551 553 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Part of #32 Co-Authored-By: Claude Opus 5.5 <[email protected]>
uniqueg
marked this pull request as ready for review
November 1, 2026 02:46
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="plugins/generic/routing/random/pyproject.toml" line_range="42" />
<code_context>
- "foca>=0.18.0,<0.19",
+ # The plugin API of FOCA 0.18 and 0.19 (`foca.plugins`, API version 1);
+ # raise the upper bound once CI has tested the next minor version
+ "foca>=0.18.0,<0.20",
"pydantic>=2.7,<3",
]
</code_context>
<issue_to_address>
**Maintainers are told FOCA 0.19 is unsupported**
When a maintainer follows the FOCA-upgrade instructions, `MAINTAINERS.md` says the plugin bounds are still `<0.19` and that FOCA 0.19 is forthcoming, so maintainers following its upgrade instructions will treat the tested 0.19 support as absent and repeat obsolete steps.
Update `MAINTAINERS.md` to state the current supported range and describe the process for the next FOCA release.
Also at `plugins/tes/routing/distance/pyproject.toml:42`, `plugins/generic/example/noop/pyproject.toml:51`.
</issue_to_address>
Linked issues
#32 build: support FOCA 0.19 · 6 of 6 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Raise the plugins’ FOCA bound to include 0.19 | ✅ Met | Both plugin packages now require foca>=0.18.0,<0.20. |
| 2 | Test the plugins against FOCA 0.19 | ✅ Met | The CI matrix includes FOCA 0.19.0 for each affected package. |
| 3 | Declare what the plugins store | ✅ Met | Both plugin classes declare data_stored = (), and their tests assert it. |
| 4 | Release new versions of both plugins | ✅ Met | Both plugin packages are version 0.1.1, with updated changelogs. |
| 5 | New releases install alongside FOCA 0.19 | ✅ Met | The 0.1.1 package metadata permits FOCA 0.19. |
| 6 | Listing entries satisfy FOCA 0.19’s listing spec (1.1.0) | ✅ Met | Both plugins declare data_stored; the PR reports verifying that FOCA 0.19 lists data_stored: [] and storage: local for each. |
Sourcery assessment
Approved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the plugins installable with FOCA 0.19 (proTES 0.4.0):
>=0.18.0,<0.20. FOCA0.19 keeps plugin API version 1; its changes for plugins are additive
(plugin store
ctx.store, class attributedata_stored, listing fieldsdata_stored/storage, listing spec 1.1.0).generic.routing.randomandtes.routing.distancedeclaredata_stored = ()explicitly (they use no plugin store; the distancecache stays per process, feat(distance): use plugin store for cache, budget #21), so the tests hold on FOCA 0.18, which
lacks the attribute. READMEs list "Data stored: none".
changelog sections; the unreleased meta train 0.1.0 now pins 0.1.1 and
declares
foca>=0.18.0,<0.20.and
dev;uv.lockhas FOCA 0.19.0.distance README (cache note).
Lower bound kept at 0.18.0, as both versions pass, so proTES 0.3 setups
can take the patch releases too.
Light lane: dependency ranges, versions, docs and the CI matrix; the only
code is a constant class attribute with tests.
Verification
Plugin tests with 100% coverage against FOCA 0.19.0 (locked) and, for
both plugins, against FOCA 0.18.0 (
uv pip install foca==0.18.0): pass(the new
data_storedasserts failed on 0.18.0 before the declaration)FOCA 0.19 listing (
foca.plugins.api.describe_pluginviaPluginHarness): both entries havedata_stored: [],storage: localpython -m scripts.packages mypyon FOCA 0.18.0 and 0.19.0: no issuesScript tests 100% coverage;
scripts.checks check;uv build --all-packages+scripts.checks dist dist(random and distance0.1.1, meta 0.1.0): pass;
uv lock --check: passruff check/format: pass.
pre-commit run --all-filescould not runlocally (the sandbox proxy refused fetching the updated hook repos);
CI's Lint job runs it.
CI: all 44 checks passed (incl. the FOCA 0.19.0 and 0.18.0 matrix
entries and Lint, which runs pre-commit)
Declined review findings
MAINTAINERS.mdFOCA note): the file is removedin docs: remove MAINTAINERS.md #37, which documents the procedure version-independently.
Closes #32
🤖 Generated with Claude Code