diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5da9fd..4cb13d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" @@ -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: diff --git a/README.md b/README.md index 951dc16..cb16375 100644 --- a/README.md +++ b/README.md @@ -40,16 +40,15 @@ repositories work the same way. **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. **Read the [documentation][docs]** for installing plugins, writing them, @@ -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---`). diff --git a/docs/installing.md b/docs/installing.md index 3bc6ec6..cdf10d0 100644 --- a/docs/installing.md +++ b/docs/installing.md @@ -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. Distributions named below that don't exist yet are examples of the naming scheme. @@ -33,7 +33,7 @@ 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). @@ -41,7 +41,7 @@ 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 @@ -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==" +pip install "foca-plugin-tes-routing-distance==0.2.0" "org-example-cost-routing==" ``` Each plugin declares the FOCA versions that it supports (`foca>=X,=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). diff --git a/meta/CHANGELOG.md b/meta/CHANGELOG.md index 75835b1..ce21b66 100644 --- a/meta/CHANGELOG.md +++ b/meta/CHANGELOG.md @@ -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, diff --git a/meta/pyproject.toml b/meta/pyproject.toml index 3b3c072..5b4186c 100644 --- a/meta/pyproject.toml +++ b/meta/pyproject.toml @@ -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 @@ -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 (``) and subgroup (`-`), plus # `all` (stable plugins only) and `experimental` (experimental ones). Each @@ -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 diff --git a/plugins/generic/example/noop/README.md b/plugins/generic/example/noop/README.md index 80d359a..fc5f482 100644 --- a/plugins/generic/example/noop/README.md +++ b/plugins/generic/example/noop/README.md @@ -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 diff --git a/plugins/generic/example/noop/pyproject.toml b/plugins/generic/example/noop/pyproject.toml index 02cdc0f..06f6307 100644 --- a/plugins/generic/example/noop/pyproject.toml +++ b/plugins/generic/example/noop/pyproject.toml @@ -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", ] diff --git a/plugins/generic/routing/random/CHANGELOG.md b/plugins/generic/routing/random/CHANGELOG.md index 9a08cc2..87634aa 100644 --- a/plugins/generic/routing/random/CHANGELOG.md +++ b/plugins/generic/routing/random/CHANGELOG.md @@ -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 diff --git a/plugins/generic/routing/random/README.md b/plugins/generic/routing/random/README.md index 96d3676..5efa566 100644 --- a/plugins/generic/routing/random/README.md +++ b/plugins/generic/routing/random/README.md @@ -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 diff --git a/plugins/generic/routing/random/pyproject.toml b/plugins/generic/routing/random/pyproject.toml index 5583f1e..d813722 100644 --- a/plugins/generic/routing/random/pyproject.toml +++ b/plugins/generic/routing/random/pyproject.toml @@ -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`; see "Releasing" in the docs) -version = "0.1.3" +version = "0.2.0" 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) @@ -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", ] diff --git a/plugins/tes/data/crypt4gh/CHANGELOG.md b/plugins/tes/data/crypt4gh/CHANGELOG.md index b180f3b..16bea95 100644 --- a/plugins/tes/data/crypt4gh/CHANGELOG.md +++ b/plugins/tes/data/crypt4gh/CHANGELOG.md @@ -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 diff --git a/plugins/tes/data/crypt4gh/README.md b/plugins/tes/data/crypt4gh/README.md index d2549b4..f512988 100644 --- a/plugins/tes/data/crypt4gh/README.md +++ b/plugins/tes/data/crypt4gh/README.md @@ -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 diff --git a/plugins/tes/data/crypt4gh/pyproject.toml b/plugins/tes/data/crypt4gh/pyproject.toml index 647dc01..2237411 100644 --- a/plugins/tes/data/crypt4gh/pyproject.toml +++ b/plugins/tes/data/crypt4gh/pyproject.toml @@ -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`; 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) @@ -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", ] diff --git a/plugins/tes/routing/distance/CHANGELOG.md b/plugins/tes/routing/distance/CHANGELOG.md index ed9bcc8..bc75b6c 100644 --- a/plugins/tes/routing/distance/CHANGELOG.md +++ b/plugins/tes/routing/distance/CHANGELOG.md @@ -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 @@ -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 diff --git a/plugins/tes/routing/distance/README.md b/plugins/tes/routing/distance/README.md index b217279..e242b51 100644 --- a/plugins/tes/routing/distance/README.md +++ b/plugins/tes/routing/distance/README.md @@ -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 diff --git a/plugins/tes/routing/distance/pyproject.toml b/plugins/tes/routing/distance/pyproject.toml index 898724e..e6e99b2 100644 --- a/plugins/tes/routing/distance/pyproject.toml +++ b/plugins/tes/routing/distance/pyproject.toml @@ -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`; 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) @@ -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", diff --git a/uv.lock b/uv.lock index ded3dbd..918dd26 100644 --- a/uv.lock +++ b/uv.lock @@ -1294,7 +1294,7 @@ requires-dist = [ [[package]] name = "foca-plugin-generic-routing-random" -version = "0.1.3" +version = "0.2.0" source = { editable = "plugins/generic/routing/random" } dependencies = [ { name = "foca" }, @@ -1309,7 +1309,7 @@ requires-dist = [ [[package]] name = "foca-plugin-tes-data-crypt4gh" -version = "0.1.0" +version = "0.1.1" source = { editable = "plugins/tes/data/crypt4gh" } dependencies = [ { name = "foca" }, @@ -1324,7 +1324,7 @@ requires-dist = [ [[package]] name = "foca-plugin-tes-routing-distance" -version = "0.1.3" +version = "0.2.0" source = { editable = "plugins/tes/routing/distance" } dependencies = [ { name = "foca" }, @@ -1386,7 +1386,7 @@ requires-dist = [ [[package]] name = "foca-plugins" -version = "0.3.0" +version = "0.4.0" source = { editable = "meta" } dependencies = [ { name = "foca" },