Skip to content

Cannot install when python version is set like ">=3.10" in pyproject.toml #517

Closed

Description

@ka7eh

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

It seems the latest changes in 4.4.1 in requirements.txt (https://github.com/auth0/auth0-python/blob/4.4.1/requirements.txt) causes issue if python version is specified like ">=..." in pyproject.toml.

This is the error I'm getting when I try to add this package with poetry:

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

Because no versions of auth0-python match >4.4.1,<5.0.0
 and auth0-python (4.4.1) requires Python >=3.7,<4.0, auth0-python is forbidden.
So, because fastapi-auth0 depends on auth0-python (^4.4.1), version solving failed.

Reproduction

  1. Start a new python project with the following in pyproject.toml:
[tool.poetry]
name = "auth0"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.10"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
  1. Add auth0-python with poetry (tested with poetry v1.6.1): poetry add auth0-python.

Additional context

No response

auth0-python version

4.4.1

Python version

3.10

Activity

  1. added
    bugThis points to a verified bug in the code
    on Aug 24, 2023
  2. self-assigned this
    on Aug 29, 2023
  3. evansims commented on Aug 29, 2023

    @evansims
    Contributor

    Hi @ka7eh 👋 Thanks for the heads up, I'll investigate and get back to you.

  4. added a commit that references this issue on Aug 31, 2023
    5e4f09a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugThis points to a verified bug in the code

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions