You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have encountered an issue with the Authlib library's dependency management, specifically related to the cryptography package. The current setup.py includes an "unpinned" version specification for cryptography, as shown below:
fromsetuptoolsimportsetup# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.setup(
name="Authlib",
install_requires=[
"cryptography>=3.2",
],
)
This configuration does not restrict the cryptography package to a specific version. As a result, the installation may attempt to use any version starting from 3.2. However, starting from version 3.4, cryptography requires Rust to build from source, which introduces additional dependencies and complications for users who do not have Rust installed on their systems.
Proposed Solution:
To mitigate this issue, we recommend pinning the cryptography version to the latest version that does not require Rust (version 3.3.2). The updated setup.py should look like this:
fromsetuptoolsimportsetup# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.setup(
name="Authlib",
install_requires=[
"cryptography>=3.2,<3.4",
],
)
This change will ensure compatibility and avoid the Rust dependency issue for users.
Thank you for your attention to this matter. We look forward to the resolution.
The text was updated successfully, but these errors were encountered:
Hello,
We have encountered an issue with the Authlib library's dependency management, specifically related to the cryptography package. The current setup.py includes an "unpinned" version specification for cryptography, as shown below:
This configuration does not restrict the cryptography package to a specific version. As a result, the installation may attempt to use any version starting from 3.2. However, starting from version 3.4, cryptography requires Rust to build from source, which introduces additional dependencies and complications for users who do not have Rust installed on their systems.
Proposed Solution:
To mitigate this issue, we recommend pinning the cryptography version to the latest version that does not require Rust (version 3.3.2). The updated setup.py should look like this:
This change will ensure compatibility and avoid the Rust dependency issue for users.
Thank you for your attention to this matter. We look forward to the resolution.
The text was updated successfully, but these errors were encountered: