Sync with importlib_metadata for Python 3.16
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
- 48/100
Hướng nghiên cứu
Read the upstream importlib_metadata 9.0.1 and 9.1.0 changelogs linked in the issue, then compare their changes with Lib/importlib/metadata and its tests. Check each listed behavior and cleanup against the current Python 3.16 implementation; done when the applicable upstream changes are reflected and the relevant tests pass. The issue names _typing.py but does not identify specific test files.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Tracking issue for applying importlib_metadata changes to importlib.metadata in 3.16, continuing the pattern of #132947 (3.15) and #117089 (3.13).
This covers importlib_metadata 9.0.1 and 9.1.0:
- Prefer the greater metadata directory when a path supplies more than one. Children are now considered in reverse lexicographic order, so stale metadata left behind by an interrupted or unclean upgrade no longer shadows the version in use (#100666).
- Identify the distribution when a required metadata field is missing.
Distribution.nameand.versionnow raise aKeyErrornaming both the field and the distribution, andPathDistributionrenders itself as its metadata path. - Defer
EntryPoint.valuevalidation until use. Construction no longer validates, so one malformed entry point no longer prevents entry points in other groups from being selected (python/importlib_metadata#523). importlib.metadata.diagnoseno longer crashes on a metadata directory with no metadata file, or whose metadata declares no name; such distributions are reported by their location (python/importlib_metadata#548).SimplePath.joinpathandSimplePath.__truediv__takeotherpositional-only, sopathlib.Pathsatisfies the protocol under type checkers that compare parameter names (python/importlib_metadata#542).
Two further items that are cleanups rather than behavior changes:
Prepared.normalizereturns to there.subimplementation. The hand-rolled version from #143658 was reverted upstream, so keeping it here would be fresh drift.Lib/importlib/metadata/_typing.pyis removed along with its import. Its only export,md_none, lost its last call site whenDistribution.metadatabegan raisingMetadataNotFound(#143387), but the import line survived the merge that landed that change, leaving an unused module imported by nothing.
Linked PRs
- gh-160387
- Ngôn ngữ chính
- Python
- Star
- 77.8k
- Fork
- 37.7k
- Merge trung bình
- 12 giờ 27 phút
- Pull request đã merge (30 ngày)
- 710
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 python/cpython
-
3.16 build type-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
python/cpython#160829 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies infra topic-ensurepip
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
symtable: repr() of a Symbol raises TypeError under -X lazy_imports=allCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởstdlib topic-lazy-imports type-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
python/cpython#160810 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tarfile: extractfile(member).read() of a sparse member is slow due to repeated bytes concatenationĐang mởperformance stdlib triaged type-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
python/cpython#160774 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tests topic-profiling type-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
python/cpython#160334 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của python/cpython
Issue tương tự
-
Context/namespace resources fail in-cluster: "Invalid kube-config file. No configuration found."Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
awslabs/visual-asset-management-system#880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
netbox status: needs owner type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
netbox-community/netbox#23533 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts status: backlog type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
netbox-community/netbox-scripts#68 ·
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 91/100
marin-community/marin#10765 ·
Maintainer thường phản hồi trong vòng 1 ngày