pants icon indicating copy to clipboard operation
pants copied to clipboard

`poetry_requirements` does not handle `allow-prereleases` field

Open wilsonliam opened this issue 4 years ago • 4 comments

allow-prereleases field ignored when parsing dictionary attributes: https://github.com/pantsbuild/pants/blob/2a496aa3687defca9b75e52f832443b5baa1fb61/src/python/pants/backend/python/macros/poetry_requirements.py#L112-L132

wilsonliam avatar Jul 13 '21 00:07 wilsonliam

After trying some hacky workarounds with limited testing success, I feel like this is best left to be resolved once pip options are usable (cf. #12327); specifically the pip --pre flag.

wilsonliam avatar Jul 15 '21 09:07 wilsonliam

@Eric-Arellano Where should we stand on this, now that we have a "native" lockfile which is better than Poetry's?

thejcannon avatar May 22 '22 20:05 thejcannon

Still useful probably - this is intended for the poetry_requirements target generator, which parses pyproject.toml and ignores poetry.lock

Eric-Arellano avatar May 23 '22 14:05 Eric-Arellano

This issue has been open for over one year without activity and is not labeled as a bug. It has been labeled as stale to invite any further updates. If you can confirm whether the issue is still applicable to the latest version of Pants, appears in other contexts, or its priority has changed, please let us know. Please feel free to close this issue if it is no longer relevant.

github-actions[bot] avatar Dec 02 '25 04:12 github-actions[bot]