setting up a development environment is difficult
Đang mở
Chưa có ai nhận issue này.
bug
infrastructure
P2
- Ngôn ngữ chính
- Python
- Star
- 18.8k
- Fork
- 2.8k
- Merge trung bình
- 16 giờ 26 phút
- Pull request đã merge (30 ngày)
- 21
Mô tả
I recently spun up a dev environment for contributing a PR to plotly.py and ran into some issues that I think can be addressed fairly readily.
- pytest is pinned to 3.5.1 in
packages/python/plotly/optional-requirements.txtand this version simply didn't run, failing with an internalTypeError. I upgraded it to 7.4.2 and it worked. Is there a reason its pinned to such an old version? can this be unpinned? contributing.mddoes not currently mention the dependancy on Plotly Orca. I was rather surprised to come back to all my tests failing, and somewhat hilariously theorcaUbuntu screen reader reading a large chunk of Pytest's terminal output to me. Just adding an external dependency in the testing section would do the trick I reckon.- There were a number of missing packages required by optional tests that aren't in
packages/python/plotly/optional-requirements.txtso those tests failed. The following packages need to be added:polars vaex scikit-image statsmodels pyarrow
btw for 1,the error thrown by pytest 3.5.1 is:
File "/home/ned/.pyenv/versions/3.11.6/envs/book/lib/python3.11/site-packages/_pytest/assertion/rewrite.py", line 332, in _rewrite_test
co = compile(tree, fn.strpath, "exec", dont_inherit=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: required field "lineno" missing from alias
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.
Hướng nghiên cứu
Bắt đầu với packages/python/plotly/optional-requirements.txt và contributing.md, sau đó tái hiện lỗi pytest 3.5.1 trong môi trường Python 3.11 được báo cáo. Kiểm tra các phần phụ thuộc của các bài kiểm thử tùy chọn và tài liệu kiểm thử. Hoàn tất khi thiết lập được ghi lại trong tài liệu chạy các bài kiểm thử mà không gặp lỗi pytest đã báo cáo hoặc lỗi do thiếu gói.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- build-system, documentation, testing
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100