test_exporter_exports_extra_index_url_and_trusted_host fails
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách chạy tests/test_exporter.py::test_exporter_exports_extra_index_url_and_trusted_host và kiểm tra entry point của exporter được test sử dụng. Công việc được xem là hoàn tất khi requirements.txt được tạo ra bao gồm các dòng trusted-host và extra-index-url như trong đầu ra mong đợi, đồng thời giữ nguyên các yêu cầu về package hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― test_exporter_exports_extra_index_url_and_trusted_host ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
tmp_path = PosixPath('/tmp/pytest-of-yuri/pytest-1/test_exporter_exports_extra_in0'), poetry = <poetry.poetry.Poetry object at 0x954ed7c10>
def test_exporter_exports_extra_index_url_and_trusted_host(
tmp_path: Path, poetry: Poetry
) -> None:
poetry.pool.add_repository(
LegacyRepository(
"custom",
"http://example.com/simple",
),
priority=Priority.EXPLICIT,
)
poetry.locker.mock_lock_data( # type: ignore[attr-defined]
{
"package": [
{
"name": "foo",
"version": "1.2.3",
"optional": False,
"python-versions": "*",
"dependencies": {"bar": "*"},
},
{
"name": "bar",
"version": "4.5.6",
"optional": False,
"python-versions": "*",
"source": {
"type": "legacy",
"url": "http://example.com/simple",
"reference": "",
},
},
],
"metadata": {
"python-versions": "*",
"content-hash": "123456789",
"files": {"foo": [], "bar": []},
},
}
)
set_package_requires(poetry)
exporter = Exporter(poetry, NullIO())
exporter.export("requirements.txt", tmp_path, "requirements.txt")
with (tmp_path / "requirements.txt").open(encoding="utf-8") as f:
content = f.read()
expected = f"""\
--trusted-host example.com
--extra-index-url http://example.com/simple
bar==4.5.6 ; {MARKER_PY}
foo==1.2.3 ; {MARKER_PY}
"""
> assert content == expected
E assert '\nbar==4.5.6...ion < "4.0"\n' == '--trusted-ho...ion < "4.0"\n'
E - --trusted-host example.com
E - --extra-index-url http://example.com/simple
E
E bar==4.5.6 ; python_version >= "2.7" and python_version < "2.8" or python_version >= "3.6" and python_version < "4.0"
E foo==1.2.3 ; python_version >= "2.7" and python_version < "2.8" or python_version >= "3.6" and python_version < "4.0"
tests/test_exporter.py:2722: AssertionError
Version: 1.4.0
Python-3.9
FreeBSD 13.2
- Ngôn ngữ chính
- Python
- Star
- 336
- Fork
- 60
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 1
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 python-poetry/poetry-plugin-export
-
pylock.toml export drops wheels when the sdist sorts between wheelsCó thể đã có người làm @RaphaelFakhri đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Does not installĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
python-poetry/poetry-plugin-export#341 · 5 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
python-poetry/poetry-plugin-export#340 · 1 bình luận ·
Tất cả issue của python-poetry/poetry-plugin-export
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
NVIDIA/auto-ontology#463 ·
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 86/100
NousResearch/hermes-agent#151165 ·
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 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
code-health
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tinaudio/synth-setter#3750 ·
-
[Bug] vllm-sr config migrate drops providers.models[].deploymentCó thể đã có người làm @Bevisy đã nhận hôm nay. Đang mởneeds-acceptance wg/developer-experience-ecosystem
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
vllm-project/semantic-router#5996 ·
Maintainer thường phản hồi trong vòng 2 ngày