Skip to content

keyring as optional dependency? #1008

@ax3l

Description

@ax3l

Your Environment

  1. Your operating system:

Ubuntu 20.04 on PPC64le

  1. Version of python you are running:

3.8 - 3.11

  1. How did you install twine? Did you use your operating system's package manager or pip or something else?

pip

  1. Version of twine you have installed (include complete output of):

latest

  1. Which package repository are you targeting?

PyPI.org

The Issue

I am trying to upload my new ppc64le wheels with twine from Travis-CI (OSS-free partner queue sponsored by IBM). It looks like installing twine pulls cryptography through keyring as an unconditional dependency.

That install fails because on ppc64le there is no wheel for cryptography and then it falls back to a from-source build (Cryptography requires Rust >=1.41.0 which is hard to get on Ubuntu 20.04).

The Cryptography people (cc @reaperhulk) pointed me here, because they think the problem can be solved by making keyring an optional dependency of twine.

Steps to Reproduce

See: pyca/cryptography#6086

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