diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-10-27 14:04:58 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-16 22:58:39 +0100 |
commit | 8346e1b067483d4d836627a267805bbe8d6e7efa (patch) | |
tree | e4206cfe30c39cfcc7aebfa8937ea1620c623822 /ipasetup.py.in | |
parent | 6ca96b3db03d4f3c5dbf465ca3d36bd563771c47 (diff) | |
download | freeipa-8346e1b067483d4d836627a267805bbe8d6e7efa.tar.gz freeipa-8346e1b067483d4d836627a267805bbe8d6e7efa.tar.xz freeipa-8346e1b067483d4d836627a267805bbe8d6e7efa.zip |
Add install requirements to Python packages
https://fedorahosted.org/freeipa/ticket/6468
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipasetup.py.in')
-rw-r--r-- | ipasetup.py.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ipasetup.py.in b/ipasetup.py.in index 5eff1aee0..53309560d 100644 --- a/ipasetup.py.in +++ b/ipasetup.py.in @@ -18,6 +18,24 @@ import os import sys +PACKAGE_VERSION = { + 'cryptography': 'cryptography >= 0.9', + 'dnspython': 'dnspython >= 1.11.1', + 'gssapi': 'gssapi > 1.1.2', + 'ipaclient': 'ipaclient == @VERSION@', + 'ipalib': 'ipalib == @VERSION@', + 'ipaplatform': 'ipaplatform == @VERSION@', + 'ipapython': 'ipapython == @VERSION@', + 'ipaserver': 'ipaserver == @VERSION@', + 'kdcproxy': 'kdcproxy >= 0.3', + 'netifaces': 'netifaces >= 0.10.4', + 'python-nss': 'python-nss >= 0.16', + 'pyldap': 'pyldap >= 2.4.15', + 'qrcode': 'qrcode >= 5.0', + # 'yubico': 'yubico >= 1.2.3', +} + + common_args = dict( version="@VERSION@", license="GPLv3", @@ -56,11 +74,16 @@ old_path = os.path.abspath(os.getcwd()) def ipasetup(name, doc, **kwargs): doclines = doc.split("\n") + install_requires = list(kwargs.pop('install_requires', [])) + for i, entry in enumerate(install_requires): + install_requires[i] = PACKAGE_VERSION.get(entry, entry) + setup_kwargs = common_args.copy() setup_kwargs.update( name=name, description=doclines[0], long_description="\n".join(doclines[:2]), + install_requires=install_requires, **kwargs ) # exclude setup helpers from getting installed |