Skip to content

Commit

Permalink
Make pyscard dependency optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Oct 24, 2024
1 parent e3446a8 commit 260c26b
Show file tree
Hide file tree
Showing 5 changed files with 715 additions and 695 deletions.
6 changes: 6 additions & 0 deletions docs/packaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ For more information, see the `click documentation`_.
.. _click documentation: https://click.palletsprojects.com/en/8.1.x/shell-completion/

Unfortunately, man pages for ``nitropy`` are currently not available and cannot be generated automatically.

Optional dependencies
--------------------

To limit the need to install pyscard, it is made optional.
If you make it an optional dependency of your package, please patch ``pynitrokey/cli/nk3/pcsc_absent.py`` to indicate users how they can install it.
1 change: 1 addition & 0 deletions pynitrokey/cli/nk3/pcsc_absent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PCSC_ABSENT = "pyscard is not available, please consult https://docs.nitrokey.com/nitrokey3/linux/troubleshooting#pcsc-unavailable for more information"
Loading

0 comments on commit 260c26b

Please sign in to comment.