Setup docs still say `python setup.py install`, but `setup.py` was removed
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 93/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Cập nhật các lệnh cài đặt trong README.md, docs/index.md, docs/guide.md và docs/installation.md, sau đó sửa hướng dẫn về các dependency kiểm thử trong CONTRIBUTING.md bằng test extra được định nghĩa trong pyproject.toml. Hãy bắt đầu bằng cách đối chiếu các tệp đó với pyproject.toml; hoàn tất khi các lệnh cài đặt và kiểm thử được ghi trong tài liệu khớp với cấu hình hiện tại của dự án.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
The instructions for installing Python Fire from source tell users to run python setup.py install (or python setup.py develop). setup.py was removed when the project moved to pyproject.toml, so following these instructions fails right away. CONTRIBUTING.md also says the test dependencies are "listed in setup.py" and names mock, which is no longer a dependency (the tests use unittest.mock from the standard library).
Files needing change
| File | Line | Current text |
|---|---|---|
README.md |
25 | python setup.py install |
docs/index.md |
25 | python setup.py install |
docs/guide.md |
19 | python setup.py install |
docs/installation.md |
8 | python setup.py install ... python setup.py develop |
CONTRIBUTING.md |
51 | "install the test dependencies listed in setup.py (e.g. pytest, mock, termcolor, and hypothesis)" |
Suggested fix
Replace the old commands with their pip equivalents, which I verified locally in a fresh virtual environment:
- Install from source:
pip install . - Install for development:
pip install -e . - Install with test dependencies:
pip install -e ".[test]"(thetestextra inpyproject.toml), then runpytest
Suggested wording for CONTRIBUTING.md line 51:
To do this, first install the test dependencies with
pip install -e ".[test]"(they are listed under[project.optional-dependencies]inpyproject.toml). Then run the tests by runningpytestin the root directory of the repository.
Following these instructions, pip install -e ".[test]" followed by python -m pytest installs and runs the full test suite (273 tests collected).
- Ngôn ngữ chính
- Python
- Star
- 28.2k
- Fork
- 1.5k
- 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
- Không có Dockerfile hay 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 google/python-fire
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google/python-fire#733 ·
-
External pager resets custom SIGINT handlers to SIG_DFLCó thể đã có người làm @hugosmoreira đã nhận 14 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
google/python-fire#723 · 1 bình luận ·
-
EllipsisMiddleTruncate exceeds requested width when only the ellipsis fitsCó thể đã có người làm @hugosmoreira đã nhận 14 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
google/python-fire#722 · 1 bình luận ·
-
Windows ANSI initialization uses nonexistent subprocess.STD_OUTPUT_HANDLECó thể đã có người làm @Fire162 đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
google/python-fire#721 · 1 bình luận ·
-
Calling an async command from an active event loop raises RuntimeError and leaves an unawaited coroutineCó thể đã có người làm @aashish254 đã nhận 20 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
google/python-fire#716 ·
Tất cả issue của google/python-fire
Issue tương tự
-
`destroy` sans terminal répond « Aborted. » au lieu de réclamer `--yes` comme `clean` et `reset`Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
stephrobert/dsoxlab#354 ·
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 77/100
jasonacox/pypowerwall#472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: DoubleMLRDDData accepts a score_col that is no data column (as in its docstring example); the running variable then becomes a covariate and RDFlex failsCó thể đã có người làm @vrjdev đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DoubleML/doubleml-for-py#455 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Có thể đã có người làm @rohit-jsfreaky đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Graphify-Labs/graphify#5110 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
assafelovic/gpt-researcher#2277 ·
Maintainer thường phản hồi trong vòng 10 ngày