conda / grayskull

Grayskull :skull: - Recipe generator for Conda
https://conda.github.io/grayskull/
Apache License 2.0
315 stars 66 forks source link

[BUG] Incorrect parsing of `tool.poetry.dependencies` in `pyproject.toml` #534

Open jan-janssen opened 5 months ago

jan-janssen commented 5 months ago

Describe the bug tool.poetry.dependencies dependence like llama-index-core = "^0.10.11.post1" are incorrectly parsed as llama-index-core => 0.10.11.post1,<0.10.12 while they should be parsed as llama-index-core => 0.10.11.post1,<0.11 based on the documentation in https://python-poetry.org/docs/dependency-specification/#caret-requirements

To Reproduce Steps to reproduce the behavior:

grayskull pypi llama-index-cli=0.1.11

Expected behavior Given the input llama-index-core = "^0.10.11.post1" it should return llama-index-core => 0.10.11.post1,<0.11 rather than llama-index-core => 0.10.11.post1,<0.10.12.

Environment:

jan-janssen commented 5 months ago

Issue: https://github.com/conda-forge/llama-index-feedstock/pull/68