Skip to content

Packaging: fix pyproject, runtime and dev dependencies #70

Closed

Description

@uniqueg

Why?

The packaging metadata and the dependency setup are inconsistent and partly broken:

  • pyproject.toml has no [build-system] table and no requires-python; the only classifier for Python is Programming Language :: Python :: 3.8, although CI uses 3.10 and the image 3.12.
  • version = "0.2.0" is set statically, but [tool.setuptools.dynamic.version] also points to a file cloud_registry/version that does not exist. [tool.setuptools.dynamic.optional-dependencies] is configured but optional-dependencies is not listed in dynamic. Both are dead configuration.
  • [tool.black] sets max-line-length, which is not a black option (black's is line-length).
  • requirements.txt lists yq==3.2.3 as a runtime dependency, but the Python package never uses it; only update-config-map.sh (the Helm config job, see Helm chart: configure app via values and FOCA overlays #67) calls the yq CLI, and the Dockerfile installs yq separately anyway.
  • Dev dependencies are years old (mypy==0.971, coverage==6.3.2, mongomock==4.0.0, pytest==7.1.1, black==24.3.0). Dependabot updates arrive only for some of them, and there is no .github/dependabot.yml to control them (no GitHub Actions or Docker updates).

How?

  1. pyproject.toml: add [build-system] (setuptools), requires-python = ">=3.10", classifiers for 3.10 to 3.12; remove the dead dynamic version and optional-dependencies settings; fix the black key (line-length).
  2. Remove yq from requirements.txt; keep the pip install yq in the Dockerfile until Helm chart: configure app via values and FOCA overlays #67 removes the config job.
  3. Bump the dev dependencies to current versions (including mongomock 4.3 and a current mypy); fix whatever the new versions flag. This supersedes build(deps-dev): bump black from 24.3.0 to 26.3.1 #55 and build(deps-dev): bump pytest from 7.1.1 to 9.0.3 #57 if they have not been merged by then.
  4. Add .github/dependabot.yml for pip, github-actions and docker, grouped and on a weekly or monthly schedule.

Acceptance criteria

  • pip install . and python -m build work in a clean environment without warnings about the configuration.
  • yq is no longer a Python runtime dependency; the image still builds and the Helm job still works.
  • All checks pass with the bumped dev dependencies.
  • Dependabot opens grouped PRs for pip, Actions and Docker.

Dependencies: #69 (green CI on Dependabot PRs).


Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).

Activity

  1. added
    priority: medium
    type: delivery
    type: maintenance
    workload: hours
    ecp-wp4: M4.1
    on Oct 20, 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

    ecp-wp4: M4.1priority: mediumtype: deliverytype: maintenanceworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions