Setuptools deprecation warning with setuptools-rust
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
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra lệnh gọi RustExtension trong setup.py và cấu hình tìm kiếm package find: trong setup.cfg, sau đó tái hiện cảnh báo build của cryptography. Xác định liệu setuptools-rust hay cấu hình của dự án nên cung cấp cryptography.hazmat.bindings._rust dưới dạng một package; hoàn tất khi package được phát hiện mà không có cảnh báo deprecation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In cryptography builds we have been getting this deprecation warning for a while:
setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
We declare cryptography.hazmat.bindings._rust as the target in our RustExtension call and then use the standard find: mechanisms in our setup.cfg. Is there something setuptools-rust needs to tell setuptools so that it auto-discovers this package without this warning? Or, quite possibly, something we need to do on our end because we've done something dumb? 😄
- Ngôn ngữ chính
- Python
- Star
- 680
- Fork
- 110
- Merge trung bình
- 3 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 PyO3/setuptools-rust
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PyO3/setuptools-rust#619 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PyO3/setuptools-rust#610 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PyO3/setuptools-rust#575 · 5 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
PyO3/setuptools-rust#507 · 3 bình luận ·
-
How to use with docker Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
PyO3/setuptools-rust#449 · 10 bình luận ·
Tất cả issue của PyO3/setuptools-rust
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/Repo2RLEnv#163 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NousResearch/hermes-agent#121143 ·