No dependency floor in pyproject.toml is tested
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
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions, python
- Lĩnh vực
- build-system, ci-cd, testing
Hướng nghiên cứu
Bắt đầu với pyproject.toml và các workflow test.yml, docs.yml, build.yml và release.yml hiện có, sau đó xem xét cách các ràng buộc trong floors.txt tương tác với việc cài đặt thông thường và cô lập. Thêm một lượt chạy CI cho Python 3.11 để kiểm tra các phiên bản tối thiểu đã khai báo, đồng thời thêm các assertion về metadata của wheel như mô tả ở những nơi phù hợp; được xem là hoàn tất khi bộ test chạy thành công với các phiên bản tối thiểu và các assertion phân biệt được các phiên bản Hatchling được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
pyproject.toml declares eight >= floors. None of them is tested — every CI
leg installs the newest of everything, so each floor is a claim nobody has
checked.
| Declaration | Where | Exercised by CI? |
|---|---|---|
lxml>=5.0 |
dependencies |
No — pip install -e .[dev] takes the newest |
hypothesis>=6 |
dev |
No |
lxml-stubs>=0.5 |
dev |
No |
pytest>=8 |
dev |
No |
pytest-cov>=5 |
dev |
No |
mkdocs-material>=9 |
docs |
No — docs.yml takes the newest |
mkdocs-static-i18n>=1.2 |
docs |
No |
mkdocstrings[python]>=0.27 |
docs |
No |
hatchling>=1.27 |
build-system |
No |
requires-python = ">=3.11" is the exception, and is well covered: test.yml
runs a 3.11 leg on ubuntu and windows, [tool.mypy] python_version = "3.11"
type-checks against it, and CONTRIBUTING tells developers to develop on it. The
exact pins (mypy, ruff, build, twine) enforce themselves.
lxml>=5.0 is the one that matters to users: it is the only runtime dependency,
and the floor is a public compatibility promise. Nothing has ever installed
lxml 5.0 against this test suite.
Proposal
One CI leg on the Python floor that installs the declared minimums and runs the
suite:
floors:
runs-on: ubuntu-latest
# python-version: "3.11"
- run: python -m pip install -e .[dev] -c floors.txt
- run: python -m pytest
floors.txt lists each declaration as == (lxml==5.0, pytest==8.0, …).
pip has no --resolution lowest — that is uv — so a constraints file is the
mechanism. The build-backend floor needs PIP_CONSTRAINT instead, since it is
resolved into build's isolated environment rather than the install
environment.
Expect this to fail at first and to move some floors up. That is the point: a
floor that fails is a floor that was wrong.
Related: the license-metadata assertion
Hatchling before 1.27 builds this project's wheel without complaint and emits
license = "MIT" as a legacy free-text field, dropping License-Expression and
License-File; twine check passes that wheel (see #24). A floor alone cannot
catch it, so build.yml and release.yml want a step asserting those two fields
are present in the built wheel — about nine lines of YAML each, verified to pass
a 1.32.0 wheel and fail a 1.26.3 one. It belongs with this work rather than
ahead of it: it would otherwise be the only enforced package floor in the file.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 0
- Merge trung bình
- 9 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không 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 sillsdev/python-sil-lift
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
sillsdev/python-sil-lift#15 ·
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
sillsdev/python-sil-lift#45 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
sillsdev/python-sil-lift#35 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
sillsdev/python-sil-lift#33 ·
-
Evaluate full API surface for anything unnecessaryCó thể đã có người làm @imnasnainaec đã nhận 22 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
sillsdev/python-sil-lift#30 · 1 bình luận · 1 người được giao ·
Tất cả issue của sillsdev/python-sil-lift
Issue tương tự
-
Custom provider API keys collide on one host: env slot keyed on host:port only, not URL pathĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#140958 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bisect issue233186Đang mởbisect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dtcxzyw/llvm-bisect-service#548 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
sallowayma-git/IELTS-practice#248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
anthropics/claude-plugins-official#6763 · 10 bình luận · 10 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày