Keep VERSION for the Nix build, maintained by the release bot after adopting release-tools
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 44/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- build-system
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🤖 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 aboveversion: "VERSION records the latest stable release" becomes "the release bot keeps VERSION in step with the release tags; onmainit holds the next series asX.(Y+1).0.dev0".README.md, "Nix sandbox builds read the latest stable release from the rootVERSIONfile": the same change.- Any developer doc that says to update
VERSIONat release time: remove the step. .github/workflows/deploy.yml: the release-version check stays (it moves from thereleaseevent to the tag push with the rest of the publish workflow); thechanged-versiondetection 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.
- Ngôn ngữ chính
- C++
- Star
- 52
- Fork
- 2
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Algorithmiq/monoprop
-
Exported inner_product() reads past the end of its second argument (undocumented precondition)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Algorithmiq/monoprop#193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Algorithmiq/monoprop#192 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug performance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Algorithmiq/monoprop#191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Algorithmiq/monoprop#189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use ty instead of pyrightĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Algorithmiq/monoprop#429 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Algorithmiq/monoprop
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
simnJS/AnyPS5#735 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Niko1221/Strata#7719 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
area:tests kind:test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày