diff options
| author | Christian Heimes <cheimes@redhat.com> | 2017-02-16 15:27:49 +0100 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2017-03-02 14:43:37 +0100 |
| commit | 2e784336b0fe99baa47cf3e024f744ed56dc12ec (patch) | |
| tree | 7e475f1959f400ff8534a1d4e6da465628695240 /packaging/ipa/setup.py | |
| parent | ed7a03a1af8b556247b929635e2972be4f2b32e4 (diff) | |
Packaging: Add placeholder packages
The ipa and freeipa packages are placeholders to prevent PyPI squashing
attacks and reserve the names for future use. `pip install ipa` installs
ipaclient.
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'packaging/ipa/setup.py')
| -rwxr-xr-x | packaging/ipa/setup.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/ipa/setup.py b/packaging/ipa/setup.py new file mode 100755 index 000000000..403389b25 --- /dev/null +++ b/packaging/ipa/setup.py @@ -0,0 +1,23 @@ +# +# Copyright (C) 2017 FreeIPA Contributors see COPYING for license +# +"""Dummy package for FreeIPA + +Please install ipaclient instead. +""" + +from os.path import abspath, dirname +import sys + +if __name__ == '__main__': + # include ../../ for ipasetup.py + sys.path.append(dirname(dirname(dirname(abspath(__file__))))) + from ipasetup import ipasetup # noqa: E402 + + ipasetup( + name='ipa', + doc = __doc__, + install_requires=[ + "ipaclient", + ] + ) |
