Skip to content

build: require FOCA 0.16 and Python 3.11+ #156

Closed

Description

@uniqueg

Why?

FOCA 0.16.0 keeps HTTP headers of exceptions (Allow, WWW-Authenticate: Bearer, Retry-After; foca#343), drops Python 3.10 (end of life in October 2026), and adds auth options used across ELIXIR On-Cloud (e.g. the at+jwt type check, foca#338). cloud-registry v0.3.0 should ship with it (user decision, 2026-10-21).

How?

  1. Require foca>=0.16,<0.17 and use the base image elixircloud/foca:0.16.0-py3.13 (Python 3.13).
  2. requires-python = ">=3.11", classifiers 3.11-3.13 (as supported), CI tests Python 3.11 (minimum) and 3.13 (image).
  3. Adopt the new FOCA options where they apply (e.g. require at+jwt access tokens; LS Login issues RFC 9068 tokens) and check the problem responses for 401/405 in tests.
  4. Update docs and the 0.3.0 release notes.

Acceptance criteria

  • The app runs on FOCA 0.16.0 / Python 3.13; CI tests 3.11 and 3.13.
  • 405 responses carry Allow, 401 responses WWW-Authenticate: Bearer; tests cover it.
  • Release notes updated.

Update (2026-10-22)

The registry ships as a container image, so it targets one Python version only: that of the base image (user decision, 2026-10-22). This replaces the Python parts of the plan above:

  • requires-python = ">=3.13", only the 3.13 classifier, tooling targets (ruff target-version, mypy python_version) 3.13; base image elixircloud/foca:0.16.0-py3.13.
  • CI: one test job on Python 3.13, no matrix and no 3.14 job; job names don't contain the Python version (the test job becomes "Run tests (mongomock)", next to "Run tests (MongoDB 7.0)" and the aggregate "Run tests"), so required checks don't change when Python is bumped.
  • Acceptance criterion "CI tests 3.11 and 3.13" becomes "CI tests 3.13 (the image's Python)".

Activity

  1. added
    priority: high
    status: blocked
    type: maintenance
    workload: hours
    on Oct 21, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 22, 2026
  3. removed
    status: in progress
    on Oct 22, 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: maintenanceworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions