From 1a6324fd0c5c66d5241cdd62fdb889f6dd1cabc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Thu, 7 Apr 2022 21:56:11 +0200 Subject: [PATCH 1/2] setup.cfg: Add optional gssapi dependency To install nbxmpp together with the optional dependeny run `pip install .[gssapi]`. --- setup.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index b6ca9ff..a6c3da9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ version = 3.0.0-dev2 description = XMPP Library author = Yann Leboulanger, Philipp Hoerist author_email = gajim-devel@gajim.org -long_description = file: README.md +long_description = file: README.md long_description_content_type = text/markdown keywords = xmpp chat url = https://dev.gajim.org/gajim/python-nbxmpp @@ -20,6 +20,9 @@ install_requires = precis-i18n>=1.0.0 idna +[options.extras_require] +gssapi = gssapi + [options.packages.find] exclude = test* -- GitLab From 2c74f928f2ff2573b40c7fadc3cc52eaf936e370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Thu, 7 Apr 2022 22:06:40 +0200 Subject: [PATCH 2/2] README: Add install instruction for optional dependency --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1d1ca67..0135539 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ Run the following: pip install . +or + + pip install .[gssapi] + +to also install the optional dependency `gssapi`. + ### Usage To use python-nbxmpp, `import nbxmpp` in your application. -- GitLab