Keep VERSION for the Nix build, maintained by the release bot after adopting release-tools

Aperta
#442 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
44/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

Start with nix/monoprop.nix, README.md, and .github/workflows/deploy.yml, then find developer docs that describe updating VERSION at release time. Confirm how the release stub configures version-files and how the existing version check and PR change detection work. Done when the release bot maintains root VERSION, the docs describe its new meaning, and the tag version check still passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation

🤖 AI text below 🤖

Summary

When monoprop adopts release-tools, keep the root VERSION file and let the release bot maintain it (version-files: "VERSION" in the release stub), and update what the repository says about it: the file stops meaning "the latest stable release".

Why the file stays

nix/monoprop.nix builds in the Nix sandbox, which has no .git, so setuptools-scm can't see the tags; the derivation reads version ? builtins.readFile ../VERSION and passes it as SETUPTOOLS_SCM_PRETEND_VERSION. A flake can't read tags either (only self.rev, self.revCount), and the version has to be a real one: downstream flakes consume ps.monoprop, and nixpkgs checks Python dependency constraints at build time (pythonRuntimeDepsCheck), so a placeholder such as 0.0.0+g<rev> would break any monoprop>=… requirement. This is the case version-files is for.

What the file holds after adoption

The bot writes it; nobody edits it by hand any more:

Where VERSION says
A release tag (alpha, beta, release candidate, final, patch) that release's version: the tag's commit records it
release/X.Y the newest final of that line, once it has one
main X.(Y+1).0.dev0 after each X.Y.0: a Nix build of main reports the series it develops, no longer the last stable release

So deploy.yml's "Check release version" step keeps passing for every tag the bot pushes, and a Nix build of main still satisfies >= the latest final. One limit: during the next series' alphas, betas and release candidates, main says X.(Y+1).0.dev0, below them, so a downstream flake that requires one of those pre-releases can't build against main.

Changes, in the adoption PR or before it

  • nix/monoprop.nix, the comment above version: "VERSION records the latest stable release" becomes "the release bot keeps VERSION in step with the release tags; on main it holds the next series as X.(Y+1).0.dev0".
  • README.md, "Nix sandbox builds read the latest stable release from the root VERSION file": the same change.
  • Any developer doc that says to update VERSION at release time: remove the step.
  • .github/workflows/deploy.yml: the release-version check stays (it moves from the release event to the tag push with the rest of the publish workflow); the changed-version detection for PRs stays useful.

Related

tinite has the same file with no reader, and drops it instead (tinite#153). C++ code in Python builds should take its version from SKBUILD_PROJECT_VERSION_FULL, as cpp/CMakeLists.txt here already does.

Lingua principale
C++
Stelle
52
Fork
2
Merge medio
1g 2h
PR unite (30g)
22

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Algorithmiq/monoprop

Tutte le issue di Algorithmiq/monoprop

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.