Dependencies from pyproject.toml not recognized in Python Inspector

Đang mở
#197 1 bình luận 4 reaction 0 người được giao Xem trên GitHub

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ệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Tái hiện báo cáo bằng pyproject.toml được cung cấp và lệnh python-inspector -p 3.12 -o linux --json inspector_output.json. Theo dõi cách Python Inspector đọc siêu dữ liệu của dự án và so sánh kết quả với các dependency được khai báo dưới [project].dependencies; hoàn tất khi requests và numpy xuất hiện trong đầu ra JSON.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,

I’m encountering an issue where the python-inspector tool does not recognize dependencies listed in my pyproject.toml file. Here are the details:

Environment
  • Python Inspector Version: 0.12.0
  • Python Version: 3.12
  • Operating System: Linux, Ubuntu 22.04
Steps to Reproduce
  1. Prepare a directory with the following pyproject.toml file:

    [build-system]
    requires = ["setuptools", "wheel"]
    build-backend = "setuptools.build_meta"
    
    [project]
    name = "example-project"
    version = "0.1.0"
    dependencies = [
        "requests>=2.25.1",
        "numpy>=1.20.0",
    ]
    
  2. Run the Python Inspector tool:

    python-inspector -p 3.12 -o linux --json inspector_output.json
    
  3. Observe the output.

Expected Behavior

Dependencies listed in the pyproject.toml file (requests and numpy) should be recognized and included in the output.

Actual Behavior

The dependencies from pyproject.toml are not recognized or included in the output.

Additional Information

This issue arose while using ORT, which depends on python-inspector. It seems like the problem originates from python-inspector itself when analyzing pyproject.toml.

Please let me know if you need further details or logs!

Thanks,
Boaz

Ngôn ngữ chính
Python
Star
23
Fork
29
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aboutcode-org/python-inspector

Tất cả issue của aboutcode-org/python-inspector

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.