From: Martin Willi Date: Wed, 25 Feb 2015 15:18:29 +0000 (+0100) Subject: vici: Generate a version specific setup.py for setuptools installation X-Git-Tag: 5.3.0rc1~28^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e2ec9f96a010e0e74d88ace7859ff5289736e49;p=thirdparty%2Fstrongswan.git vici: Generate a version specific setup.py for setuptools installation --- diff --git a/src/libcharon/plugins/vici/python/.gitignore b/src/libcharon/plugins/vici/python/.gitignore index 0d20b6487c..5c45898418 100644 --- a/src/libcharon/plugins/vici/python/.gitignore +++ b/src/libcharon/plugins/vici/python/.gitignore @@ -1 +1,5 @@ *.pyc +build +dist +vici.egg-info +setup.py diff --git a/src/libcharon/plugins/vici/python/Makefile.am b/src/libcharon/plugins/vici/python/Makefile.am index f8575eb210..1c77ee5c7a 100644 --- a/src/libcharon/plugins/vici/python/Makefile.am +++ b/src/libcharon/plugins/vici/python/Makefile.am @@ -1,5 +1,11 @@ EXTRA_DIST = LICENSE MANIFEST.in \ + setup.py.in \ vici/__init__.py \ vici/exception.py \ vici/protocol.py \ vici/session.py + +setup.py: $(srcdir)/setup.py.in + $(AM_V_GEN) sed \ + -e "s:@EGG_VERSION@:$(PACKAGE_VERSION):" \ + $(srcdir)/setup.py.in > $@ diff --git a/src/libcharon/plugins/vici/python/setup.py.in b/src/libcharon/plugins/vici/python/setup.py.in new file mode 100644 index 0000000000..9b8556595b --- /dev/null +++ b/src/libcharon/plugins/vici/python/setup.py.in @@ -0,0 +1,31 @@ +from setuptools import setup + + +long_description = ( + "The strongSwan VICI protocol allows external application to monitor, " + "configure and control the IKE daemon charon. This python package provides " + "a native client side implementation of the VICI protocol, well suited to " + "script automated tasks in a reliable way." +) + +setup( + name="vici", + version="@EGG_VERSION@", + description="Native python interface for strongSwan VICI", + author="Bjorn Schuberg", + url="https://wiki.strongswan.org/projects/strongswan/wiki/Vici", + license="MIT", + packages=["vici"], + long_description=long_description, + include_package_data=True, + classifiers=( + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python :: 2.7", + "Topic :: Security", + "Topic :: Software Development :: Libraries", + ) +)