vici: Generate a version specific setup.py for setuptools installation
authorMartin Willi <martin@revosec.ch>
Wed, 25 Feb 2015 15:18:29 +0000 (16:18 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 18 Mar 2015 12:59:14 +0000 (13:59 +0100)
src/libcharon/plugins/vici/python/.gitignore
src/libcharon/plugins/vici/python/Makefile.am
src/libcharon/plugins/vici/python/setup.py.in [new file with mode: 0644]

index f8575eb..1c77ee5 100644 (file)
@@ -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 (file)
index 0000000..9b85565
--- /dev/null
@@ -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",
+    )
+)