Skip to content

Update Poetry to 2.5.1 and require 3-day min release age - #16

Open
evgeny-stakewise wants to merge 3 commits into
masterfrom
poetry-2.5
Open

evgeny-stakewise wants to merge 3 commits into
masterfrom
poetry-2.5

Conversation

@evgeny-stakewise

@evgeny-stakewise evgeny-stakewise commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Update Poetry and protect against supply chain attacks by ignoring freshly published dependency releases.

  • Pin Poetry 2.5.1 in CI (it installed the latest Poetry before) and bump the Poetry cache key
  • Add poetry.toml with solver.min-release-age = 3: dependency releases younger than 3 days are skipped during resolution
  • Add requires-poetry = ">=2.4" so older Poetry fails instead of silently ignoring the age setting
  • Move project metadata to the PEP 621 [project] section, require poetry-core>=2.0.0 to build it
  • Switch to Python 3.12: requires-python, mypy target and CI; bump pylint to 3.3.9 and mypy to 1.18.2, the old versions don't run on 3.12
  • Regenerate poetry.lock in the 2.1 lock format, no package versions changed
  • Pin CI actions to commit SHAs and run on ubuntu-24.04, like the other StakeWise repos; the workflow failed to start with tag-pinned actions

Built wheel metadata is unchanged except the license: License-Expression: MIT (PEP 639) replaces License and the MIT classifier.
The package now requires Python 3.12+.

Impact: developers need Poetry >= 2.4 locally (poetry self update 2.5.1). poetry lock --no-update no longer exists, plain poetry lock now keeps locked versions.

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.

1 participant