Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Remove upper constraint on Python < 4 #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edgarrmondragon
Copy link

@edgarrmondragon edgarrmondragon commented Oct 27, 2024

It causes problems for downstream dependents, even indirectly, specially
for Poetry. Most recently:

Because my-package depends on rsa (4.7) which requires Python >=3.5, <4, version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For rsa, a possible solution would be to set the `python` property to ">=3.8,<4"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

From the comments in the Discourse by Core developers and SC members, there probably won't be a Python 4 so I think it's fine to remove this constraint.

It causes problems for downstream dependents, even indirectly, specially
for Poetry. Most recently:

```
Because my-package depends on rsa (4.7) which requires Python >=3.5, <4, version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For rsa, a possible solution would be to set the `python` property to ">=3.8,<4"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers
```

From the comments in the [Discourse](https://discuss.python.org) by Core
developers and SC members, there probably won't a Python 4 so I think
it's fine to remove this constraint.
Copy link
Contributor

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants