Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
python-version: ["3.11", "3.13", "3.15"]
foca: ["0.19.0", "0.20.0", "0.21.0", "0.22.0", dev]
foca: ["0.19.0", "0.20.0", "0.21.0", "0.22.0", "0.23.0", dev]
include:
- foca: "0.19.0"
foca-spec: "foca==0.19.0"
Expand All @@ -178,6 +178,8 @@ jobs:
foca-spec: "foca==0.21.0"
- foca: "0.22.0"
foca-spec: "foca==0.22.0"
- foca: "0.23.0"
foca-spec: "foca==0.23.0"
- foca: dev
foca-spec: "foca @ git+https://github.com/elixir-cloud-aai/foca@dev"
env:
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ repositories work the same way.

<!-- --8<-- [start:status] -->
**Status:** the plugin API is new in FOCA 0.18.0; the plugins support
FOCA 0.19 (the first release with the plugin store) to 0.22. Plugins so
far, all experimental and released as 0.1.x: `generic.routing.random`,
FOCA 0.19 (the first release with the plugin store) to 0.23. Plugins so
far, all experimental: `generic.routing.random`,
`tes.routing.distance` and `tes.data.crypt4gh`, plus the example
`generic.example.noop`, the template of new plugins (never published).
`wes.workflow.trs` and `wes.workflow.git` (run WES workflows from a TRS
or from Git repositories) and `wes.routing.workflow-type` (route WES runs
by their workflow type) are not released yet: they need FOCA's WES run
requests, which are on FOCA's `dev` branch only. The latest release train
is `foca-plugins` 0.3.0 (without `tes.data.crypt4gh`, which the next train
pins).
is `foca-plugins` 0.4.0.
Comment thread
uniqueg marked this conversation as resolved.
Resolved
<!-- --8<-- [end:status] -->

**Read the [documentation][docs]** for installing plugins, writing them,
Expand All @@ -62,7 +61,7 @@ Install plugins into the environment of the gateway app, usually in an
image derived from the app's image, then enable them in the app's
configuration (FOCA's `plugins` section): installed is not enabled. Either
a group or subgroup of a release train, as an extra of the meta
distribution `foca-plugins` (e.g., `foca-plugins[tes]==0.3.0`), or single
distribution `foca-plugins` (e.g., `foca-plugins[tes]==0.4.0`), or single
plugin distributions (`foca-plugin-<group>-<subgroup>-<name>`).
<!-- --8<-- [end:install] -->

Expand Down
12 changes: 6 additions & 6 deletions docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ dependencies (and scanner findings) out of their images.
!!! note "Experimental plugins only"

The plugins released so far, `generic.routing.random` and
`tes.routing.distance` (0.1.3 each) and `tes.data.crypt4gh` (0.1.0),
are experimental; the latest release train is `foca-plugins` 0.3.0,
which doesn't pin `tes.data.crypt4gh` yet (the next train will).
`tes.routing.distance` (0.2.0 each) and `tes.data.crypt4gh` (0.1.1),
are experimental; the latest release train is `foca-plugins` 0.4.0,
which pins all three.
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
Distributions named below that don't exist yet are examples of the
naming scheme.

Expand All @@ -33,15 +33,15 @@ FOCA versions that it declares.
| `foca-plugins[experimental]` | all experimental plugins | all three plugins |

The column "Now" shows the extras on `dev`, for the next release train;
`tes.data.crypt4gh` and the extra `[tes-data]` are in no released train yet.
those of `foca-plugins` 0.4.0 are the same.
`wes.workflow.trs`, `wes.workflow.git` and `wes.routing.workflow-type` are
in no extra yet: they can't be released before FOCA releases the WES run
requests of its plugin API, which they need (see their READMEs).

For example:

```bash
pip install "foca-plugins[tes-routing]==0.3.0"
pip install "foca-plugins[tes-routing]==0.4.0"
```

The example plugin `generic.example.noop` is never published, so it is in
Expand All @@ -54,7 +54,7 @@ of this repository with those of others, e.g. (the second name is an
example):

```bash
pip install "foca-plugin-tes-routing-distance==0.1.3" "org-example-cost-routing==<version>"
pip install "foca-plugin-tes-routing-distance==0.2.0" "org-example-cost-routing==<version>"
```

Each plugin declares the FOCA versions that it supports (`foca>=X,<Y`) and
Expand Down
4 changes: 2 additions & 2 deletions docs/writing-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ supports and the default one (3.11, 3.13, 3.15), and with the lowest
supported FOCA version, 0.19.0, the first release with the plugin store
(`ctx.store`; the lower bound of every plugin, `foca>=0.19.0`; 0.18.0, the
first release with the plugin API, is no longer supported), the later FOCA
releases up to the newest, 0.20.0, 0.21.0 and 0.22.0 (the upper bounds are
`<0.23`), and FOCA's `dev` branch, from Git, so that changes of the plugin API show before FOCA releases them. The
releases up to the newest, 0.20.0, 0.21.0, 0.22.0 and 0.23.0 (the upper
bounds are `<0.24`), and FOCA's `dev` branch, from Git, so that changes of the plugin API show before FOCA releases them. The
development environment has the newest FOCA release (`uv.lock`), or FOCA's
`dev` branch while a plugin needs features that FOCA hasn't released yet
(`[tool.uv.sources]` in the root `pyproject.toml`, locked to a commit).
Expand Down
26 changes: 26 additions & 0 deletions meta/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@ release notes (Breaking changes, Features, Security, Fixes, Documentation,
Maintenance; empty ones left out), each entry with its issue and pull
request numbers (see "Releasing" in the docs).

## 0.4.0

Release train for FOCA 0.23: the plugins of 0.3.0 in new versions, plus
`tes.data.crypt4gh`, each tested against FOCA 0.19, 0.20, 0.21, 0.22 and
0.23 (`foca>=0.19.0,<0.24`; FOCA 0.18 is no longer supported). Pins:

- `foca-plugin-generic-routing-random` 0.2.0
- `foca-plugin-tes-data-crypt4gh` 0.1.1
- `foca-plugin-tes-routing-distance` 0.2.0

### Breaking changes

- Drop FOCA 0.18 (`foca>=0.19.0`), as all plugins do; `tes.routing.distance`
0.2.0 has breaking changes of its own (see its changelog) (#21).

### Features

- Pin `tes.data.crypt4gh` 0.1.1 in the extras `tes`, `tes-data` and
`experimental` (#96, #97).

### Maintenance

- Support FOCA 0.23 in the meta distribution (`foca>=0.19.0,<0.24`),
tested against FOCA 0.23.0 (#96, #97).
- Pin the plugins' versions for FOCA 0.23 (#96, #97).

## 0.3.0

Release train for FOCA 0.22: the same plugins as in 0.2.0, in new versions,
Expand Down
22 changes: 11 additions & 11 deletions meta/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
name = "foca-plugins"
# Semantic version of the release train, derived from the changes of its
# pins (see "Releasing" in the docs); set in the release pull request
version = "0.3.0"
version = "0.4.0"
description = "Selections of the FOCA gateway plugins of ELIXIR On-Cloud"
readme = "README.md"
# FOCA's `requires-python`, as in the plugins
Expand All @@ -31,7 +31,7 @@ classifiers = [
]
# The FOCA versions that the train was tested with; set in the release pull
# request
dependencies = ["foca>=0.19.0,<0.23"]
dependencies = ["foca>=0.19.0,<0.24"]

# Extras per group (`<group>`) and subgroup (`<group>-<subgroup>`), plus
# `all` (stable plugins only) and `experimental` (experimental ones). Each
Expand All @@ -42,20 +42,20 @@ dependencies = ["foca>=0.19.0,<0.23"]
# the example plugin `generic.example.noop` is never published, so it is in
# no extra
[project.optional-dependencies]
generic = ["foca-plugin-generic-routing-random==0.1.3"]
generic-routing = ["foca-plugin-generic-routing-random==0.1.3"]
generic = ["foca-plugin-generic-routing-random==0.2.0"]
generic-routing = ["foca-plugin-generic-routing-random==0.2.0"]
tes = [
"foca-plugin-tes-data-crypt4gh==0.1.0",
"foca-plugin-tes-routing-distance==0.1.3",
"foca-plugin-tes-data-crypt4gh==0.1.1",
"foca-plugin-tes-routing-distance==0.2.0",
]
tes-data = ["foca-plugin-tes-data-crypt4gh==0.1.0"]
tes-routing = ["foca-plugin-tes-routing-distance==0.1.3"]
tes-data = ["foca-plugin-tes-data-crypt4gh==0.1.1"]
tes-routing = ["foca-plugin-tes-routing-distance==0.2.0"]
wes = []
all = []
experimental = [
"foca-plugin-generic-routing-random==0.1.3",
"foca-plugin-tes-data-crypt4gh==0.1.0",
"foca-plugin-tes-routing-distance==0.1.3",
"foca-plugin-generic-routing-random==0.2.0",
"foca-plugin-tes-data-crypt4gh==0.1.1",
"foca-plugin-tes-routing-distance==0.2.0",
]

# The plugins that the extras may pin come from the workspace: uv refuses
Expand Down
2 changes: 1 addition & 1 deletion plugins/generic/example/noop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and is **not published**.
| Maturity | experimental |
| Data transfers | none |
| Data stored | none (no plugin store) |
| FOCA | 0.19, 0.20, 0.21, 0.22 (`>=0.19.0,<0.23`) |
| FOCA | 0.19, 0.20, 0.21, 0.22, 0.23 (`>=0.19.0,<0.24`) |

## What it does

Expand Down
4 changes: 2 additions & 2 deletions plugins/generic/example/noop/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ classifiers = [
# <<< template only
]
dependencies = [
# The plugin API of FOCA 0.19 to 0.22 (`foca.plugins`, API version 1);
# The plugin API of FOCA 0.19 to 0.23 (`foca.plugins`, API version 1);
# raise the upper bound once CI has tested the next minor version
"foca>=0.19.0,<0.23",
"foca>=0.19.0,<0.24",
"pydantic>=2.7,<3",
]

Expand Down
12 changes: 10 additions & 2 deletions plugins/generic/routing/random/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ Features, Security, Fixes, Documentation, Maintenance; empty ones left
out), each entry with its issue and pull request numbers (see "Releasing"
in the docs).

## Unreleased
## 0.2.0

Support for FOCA 0.23: the plugin now installs alongside FOCA 0.19 to
0.23; FOCA 0.18 is no longer supported.

### Breaking changes

- Drop FOCA 0.18 (`foca>=0.19.0,<0.23`), as all plugins of the repository
- Drop FOCA 0.18 (`foca>=0.19.0`), as all plugins of the repository
do: `tes.routing.distance` needs FOCA 0.19's plugin store (#21).

### Maintenance

- Support FOCA 0.23 (`foca>=0.19.0,<0.24`), tested against FOCA 0.23.0
(#96, #97).

## 0.1.3

Support for FOCA 0.21 and 0.22: the plugin now installs alongside FOCA
Expand Down
2 changes: 1 addition & 1 deletion plugins/generic/routing/random/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ proTES's random task distribution.
| Maturity | experimental |
| Data transfers | none |
| Data stored | none (no plugin store) |
| FOCA | 0.19, 0.20, 0.21, 0.22 (`>=0.19.0,<0.23`) |
| FOCA | 0.19, 0.20, 0.21, 0.22, 0.23 (`>=0.19.0,<0.24`) |

## What it does

Expand Down
6 changes: 3 additions & 3 deletions plugins/generic/routing/random/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
name = "foca-plugin-generic-routing-random"
# SemVer, bumped in the release pull request (tag
# `foca-plugin-generic-routing-random-v<version>`; see "Releasing" in the docs)
version = "0.1.3"
version = "0.2.0"
Comment thread
uniqueg marked this conversation as resolved.
Resolved
description = "FOCA gateway plugin that routes requests to the backends in random order"
readme = "README.md"
# FOCA's `requires-python` (plugins run in the environments of FOCA apps)
Expand All @@ -37,9 +37,9 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
# The plugin API of FOCA 0.19 to 0.22 (`foca.plugins`, API version 1);
# The plugin API of FOCA 0.19 to 0.23 (`foca.plugins`, API version 1);
# raise the upper bound once CI has tested the next minor version
"foca>=0.19.0,<0.23",
"foca>=0.19.0,<0.24",
"pydantic>=2.7,<3",
]

Expand Down
12 changes: 12 additions & 0 deletions plugins/tes/data/crypt4gh/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ changes in the sections of the release notes (Breaking changes, Features,
Security, Fixes, Documentation, Maintenance; empty ones left out), each
entry with its issue and pull request numbers (see "Releasing" in the docs).

## 0.1.1

Support for FOCA 0.23: the plugin now installs alongside FOCA 0.19 to
0.23, with the decryption image
`elixircloud/foca-plugin-tes-data-crypt4gh-decrypt:0.1.1`; it changes
nothing else.

### Maintenance

- Support FOCA 0.23 (`foca>=0.19.0,<0.24`), tested against FOCA 0.23.0
(#96, #97).

## 0.1.0

The first release of the plugin, the successor of proTES's Crypt4GH
Expand Down
2 changes: 1 addition & 1 deletion plugins/tes/data/crypt4gh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ middleware of proTES.
| Maturity | experimental |
| Data transfers | none |
| Data stored | none (no plugin store) |
| FOCA | 0.19, 0.20, 0.21, 0.22 (`>=0.19.0,<0.23`) |
| FOCA | 0.19, 0.20, 0.21, 0.22, 0.23 (`>=0.19.0,<0.24`) |

## What it does

Expand Down
6 changes: 3 additions & 3 deletions plugins/tes/data/crypt4gh/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
name = "foca-plugin-tes-data-crypt4gh"
# SemVer, bumped in the release pull request (tag
# `foca-plugin-tes-data-crypt4gh-v<version>`; see "Releasing" in the docs)
version = "0.1.0"
version = "0.1.1"
description = "FOCA gateway plugin that decrypts the Crypt4GH inputs of TES tasks in an extra executor"
readme = "README.md"
# FOCA's `requires-python` (plugins run in the environments of FOCA apps)
Expand All @@ -37,9 +37,9 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
# The plugin API of FOCA 0.19 to 0.22 (`foca.plugins`, API version 1);
# The plugin API of FOCA 0.19 to 0.23 (`foca.plugins`, API version 1);
# raise the upper bound once CI has tested the next minor version
"foca>=0.19.0,<0.23",
"foca>=0.19.0,<0.24",
"pydantic>=2.7,<3",
]

Expand Down
14 changes: 12 additions & 2 deletions plugins/tes/routing/distance/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ Features, Security, Fixes, Documentation, Maintenance; empty ones left
out), each entry with its issue and pull request numbers (see "Releasing"
in the docs).

## Unreleased
## 0.2.0

The plugin keeps the locations of addresses in FOCA's plugin store,
shared by all processes and replicas, limits the uncached `dbip` lookups
of each caller per day, and installs alongside FOCA 0.19 to 0.23; FOCA
0.18 is no longer supported. Check the breaking changes before upgrading.

### Breaking changes

- Require FOCA 0.19 (`foca>=0.19.0,<0.23`), for its plugin store (#21).
- Require FOCA 0.19 (`foca>=0.19.0`), for its plugin store (#21).
- With `provider: dbip`, each caller now gets at most 100 uncached
lookups per day by default (`dbip_user_daily_lookups`; set `null` for
the earlier behaviour), and the plugin keeps locations and lookup counts
Expand All @@ -31,6 +36,11 @@ in the docs).
(#21).
- Declare the plugin's entries in the plugin store (`data_stored`) (#21).

### Maintenance

- Support FOCA 0.23 (`foca>=0.19.0,<0.24`), tested against FOCA 0.23.0
(#96, #97).

## 0.1.3

Support for FOCA 0.21 and 0.22: the plugin now installs alongside FOCA
Expand Down
2 changes: 1 addition & 1 deletion plugins/tes/routing/distance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ successor of proTES's distance-based task distribution.
| Maturity | experimental |
| Data transfers | none by default; with `provider: dbip`, db-ip.com and Nominatim (see [Data transfers](#data-transfers)) |
| Data stored | none by default; with `provider: dbip`, located addresses and daily lookup counts per caller, by hashes (see [Data stored](#data-stored)) |
| FOCA | 0.19, 0.20, 0.21, 0.22 (`>=0.19.0,<0.23`) |
| FOCA | 0.19, 0.20, 0.21, 0.22, 0.23 (`>=0.19.0,<0.24`) |

## What it does

Expand Down
6 changes: 3 additions & 3 deletions plugins/tes/routing/distance/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
name = "foca-plugin-tes-routing-distance"
# SemVer, bumped in the release pull request (tag
# `foca-plugin-tes-routing-distance-v<version>`; see "Releasing" in the docs)
version = "0.1.3"
version = "0.2.0"
description = "FOCA gateway plugin that routes TES tasks to the backends closest to their input data"
readme = "README.md"
# FOCA's `requires-python` (plugins run in the environments of FOCA apps)
Expand All @@ -37,9 +37,9 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
# The plugin API of FOCA 0.19 to 0.22 (`foca.plugins`, API version 1);
# The plugin API of FOCA 0.19 to 0.23 (`foca.plugins`, API version 1);
# raise the upper bound once CI has tested the next minor version
"foca>=0.19.0,<0.23",
"foca>=0.19.0,<0.24",
"pydantic>=2.7,<3",
# Reads the offline GeoIP database (MaxMind DB format, e.g., DB-IP Lite)
"maxminddb>=2.6,<4",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.