aboutcode-org / aboutcode-org/python-inspector

Dependencies from pyproject.toml not recognized in Python Inspector

Offen
#197 1 Kommentar 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
23
Forks
28
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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:
```toml
[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:

```bash
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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.