这是indexloc提供的服务,不要输入任何密码
Skip to content

automatic installation of cryptography lib #1079

@amin-farjadi

Description

@amin-farjadi

Cryptographic dependency is automatically installed

Expected Result

pip install pyjwt should only install pyjwt and, cryptographic optional dependency can be installed via pip install pyjwt[crypto] according to docs

Actual Result

pip install pyjwt==2.10.1 installs cryptography 45.0.5.

Reproduction Steps

pip install pyjwt==2.10.1

ls -alh ./.venv/lib/python3.12/site-packages/ shows cryptography dir and cryptography-45.0.5.dist-info dir

System Information

python -m jwt.help
{
  "cryptography": {
    "version": "45.0.5"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.12.1"
  },
  "platform": {
    "release": "24.5.0",
    "system": "Darwin"
  },
  "pyjwt": {
    "version": "2.10.1"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions