Potential improvement for editable installs
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
- 35/100
Hướng nghiên cứu
Bắt đầu với pip-api's pip_api/_parse_requirements.py quanh dòng 248 và kiểm tra cách pip-requirements-parser biểu diễn EditableRequirement khi không có phân mảnh egg. Xác định là hoàn thành khi các editable install dựa trên thư mục lấy tên và phiên bản gói từ setup.py thay vì để req là None, với các bài kiểm thử bao quát trường hợp đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I noticed another small difference between pip-api and pip-requirements-parser which I'd like to bring up.
At the moment, pip-requirements-parser relies on an egg fragment being at the end of an editable install in order to infer its name/specifier. Otherwise, the EditableRequirement's req member is set to None.
pip-api has some special logic that checks whether the editable installation points to a directory. If so, it checks that directory for a setup.py and attempts to parse the package name and version out of the file. You can find the relevant logic here.
How do you feel about having this logic in pip-requirements-parser? I appreciate that this logic perhaps goes a bit beyond "parsing" but it'd be useful since not all editable requirements have an egg fragment.
- Ngôn ngữ chính
- Python
- Star
- 20
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 aboutcode-org/pip-requirements-parser
-
Quadratic comment split on a requirements file line (pip_requirements_parser.py:1058)Có thể làm lại được @Anurag-S1ngh đã nhận 25 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aboutcode-org/pip-requirements-parser#30 · 1 bình luận ·
-
Support PEP 561 Distributing and Packaging Type Information (py.typed marker)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 60/100
-
Tests failures with packaging 26.0Có thể đã có người làm @s-t-e-v-e-n-k đã nhận 290 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Doesn't support local paths to wheelsCó thể làm lại được @Anurag-S1ngh đã nhận 18 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
aboutcode-org/pip-requirements-parser#26 · 3 bình luận ·
-
[BUG] VCS URLs are detected as path on linux systemsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
Tất cả issue của aboutcode-org/pip-requirements-parser
Issue tương tự
-
author-page correction move-papers
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
acl-org/acl-anthology#10978 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PostgreSQL results table stores labels with single quotes, and a double quote in a label fails the writeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
HKUDS/CLI-Anything#652 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Project-N-E-K-O/N.E.K.O#3813 ·
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 78/100
Dao-AILab/flash-attention#3191 ·
Maintainer thường phản hồi trong vòng 4 ngày