Skip to content

fix(ci): upgrade poetry 1.4.2 -> 2.2.1 and add package-mode = false#1365

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:bob/fix-ci-poetry-2x
Jul 22, 2026
Merged

fix(ci): upgrade poetry 1.4.2 -> 2.2.1 and add package-mode = false#1365
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:bob/fix-ci-poetry-2x

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

Problem

All submodule poetry.lock files are already in Poetry 2.x format (lock-version 2.0/2.1), but CI installs poetry==1.4.2, which can't read them. Every job logs the compatibility warning repeatedly. This fix was originally PR #1328, but that branch had accumulated a month of drift and stale submodule/workflow history that made it non-trivial to rebase — so this is a fresh PR with only the two-file change that matters.

Fix

  1. Pin poetry==2.2.1 in both Qt and Tauri build steps in release.yml
    • 2.2.1 is the latest Poetry 2.x release that supports Python ≥ 3.9; 2.3.x requires ≥ 3.10, which conflicts with the matrix's python-version: 3.9
  2. Add package-mode = false to the root pyproject.toml
    • Required for Poetry 2.x: the root aggregator has no installable packages, so Poetry 2 raises an error without this flag

What's NOT changed (vs #1328)

  • The aw-core submodule is left at c4d31b8 (current master pointer) — the relock from aw-core#140 is already an ancestor, so that change is already included
  • No other workflow changes

Validation

Triggers the full build matrix. The previous run on current master (run 29907291656) showed all jobs passing but with repeated Poetry lock-format warnings — this PR removes those warnings.

Closes #1328

All submodule lock files are already in Poetry 2.x format (lock-version 2.0/2.1)
but CI was installing poetry==1.4.2, causing repeated compatibility warnings.

- Pin poetry==2.2.1 in both Qt and Tauri build steps in release.yml
  (2.2.1 is the latest that supports Python >=3.9; 2.3.x needs >=3.10)
- Add package-mode = false to root pyproject.toml for Poetry 2.x compatibility
  (the root aggregator has no packages to publish)

Supersedes ActivityWatch#1328 which had stale submodule/workflow history from June.
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the release builds to use Poetry 2 and marks the repository root as a non-package project. The main changes are:

  • Pin Poetry 2.2.1 in the Qt release job.
  • Pin Poetry 2.2.1 in the Tauri release job.
  • Set package-mode = false in the root Poetry configuration.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.github/workflows/release.yml Updates both release jobs to install Poetry 2.2.1, which supports their Python 3.9 matrix and Poetry 2 lockfiles.
pyproject.toml Disables package mode for a root project used to manage development dependencies rather than build an installable package.

Reviews (1): Last reviewed commit: "fix(ci): upgrade poetry 1.4.2 -> 2.2.1 a..." | Re-trigger Greptile

@ErikBjare
ErikBjare merged commit 908b99a into ActivityWatch:master Jul 22, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants