Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Closed
5 tasks done
ka7eh opened this issue Aug 24, 2023 · 1 comment · Fixed by #522
Closed
5 tasks done

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

ka7eh opened this issue Aug 24, 2023 · 1 comment · Fixed by #522
Assignees
Labels
bug This points to a verified bug in the code

Comments

@ka7eh
Copy link

ka7eh commented Aug 24, 2023

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

@ka7eh ka7eh added the bug This points to a verified bug in the code label Aug 24, 2023
@evansims evansims self-assigned this Aug 29, 2023
@evansims
Copy link
Member

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

github-merge-queue bot pushed a commit that referenced this issue Aug 31, 2023
### Changes

Fix issue with Python dependency version in 4.4.1

### References

fixes #517

### Testing

1. Start a new python project with:

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

In your pyproject.toml file

3. Add `auth0-python` with poetry `poetry add ../path/to/auth0-python`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants