vici: Generate a version specific setup.py for setuptools installation

This commit is contained in:
Martin Willi 2015-02-25 16:18:29 +01:00
parent 2c8c52c4e2
commit 1e2ec9f96a
3 changed files with 41 additions and 0 deletions

View File

@ -1 +1,5 @@
*.pyc
build
dist
vici.egg-info
setup.py

View 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 > $@

View File

@ -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",
)
)