Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make allow-prereleases a tri-state setting to really forbid pre-releases if the setting is false and keep default behavior to allow pre-releases only if necessary #783

Merged

Conversation

radoering
Copy link
Member

@radoering radoering commented Oct 27, 2024

Values of allow-prereleases:

  • not set (default): only use pre-release versions if no stable version satisfies the constraint
  • false: do not allow pre-release versions even if this means there is no solution
  • true: do not distinguish between stable and pre-release versions

This PR only allows None as a value / makes sure that the value of the property is None if not set (instead of False). The behavior is implemented downstream in python-poetry/poetry#9798.

…eases if the setting is `false` and keep default behavior to allow pre-releases only if necessary
@radoering radoering force-pushed the allow-pre-releases-tri-state branch from 251adbc to 61ae21b Compare November 16, 2024 04:43
@radoering radoering merged commit 616d7bf into python-poetry:main Nov 17, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants