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

Proper Python 3.11 support #445

Closed
YaraslauZhylko opened this issue Dec 22, 2022 · 0 comments · Fixed by #446
Closed

Proper Python 3.11 support #445

YaraslauZhylko opened this issue Dec 22, 2022 · 0 comments · Fixed by #446

Comments

@YaraslauZhylko
Copy link
Contributor

YaraslauZhylko commented Dec 22, 2022

I was going to try redis-om out in my project, but turned out that the supported Python versions of redis-om

python = "^3.7,<=3.11"

does not match the Python requirements in my project:

python = "~3.11"

Here's the error message:

$ poetry add redis-om==0.1.1

Updating dependencies
Resolving dependencies... (0.0s)

The current project's Python requirement (>=3.11,<3.12) is not compatible with some of the required packages Python requirement:
  - redis-om requires Python >=3.7,<=3.11, so it will not be satisfied for Python >3.11,<3.12

Because <project name> depends on redis-om (0.1.1) which requires Python >=3.7,<=3.11, version solving failed.

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

    For redis-om, a possible solution would be to set the `python` property to "3.11"

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

Seems like the proper way to support Python 3.11 in redis-om would be to set the Python requirements to:

python = ">=3.7,<3.12"

PR: #446

@YaraslauZhylko YaraslauZhylko closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
@YaraslauZhylko YaraslauZhylko changed the title Support Python 3.11 Propper Python 3.11 support Dec 22, 2022
@YaraslauZhylko YaraslauZhylko changed the title Propper Python 3.11 support Proper Python 3.11 support Dec 23, 2022
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 a pull request may close this issue.

1 participant