From 00651ed00f347a05c7f84cc92c840bb2f21b51f8 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 29 Apr 2011 18:02:18 +0200 Subject: [PATCH] add a setup file add version declaration to module --- eopayment/__init__.py | 4 +++- setup.py | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/eopayment/__init__.py b/eopayment/__init__.py index 4935bcb..2d460bb 100644 --- a/eopayment/__init__.py +++ b/eopayment/__init__.py @@ -4,7 +4,9 @@ import logging from common import URL, HTML -__all__ = [ 'Payment', 'URL', 'HTML' ] +__all__ = [ 'Payment', 'URL', 'HTML', '__version__' ] + +__version__ = "0.0.1" SIPS = 'sips' SYSTEMPAY = 'systempayv2' diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4b7af5c --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python + +''' +Setup script for eopayment +''' + +import distutils +import eopayment + +distutils.core.setup(name='eopayment', + version=eopayment.__version__, + licence='GPLv3 or later', + description='Common API to access online payment services', + url='http://dev.entrouvert.org/projects/eopayment/', + author="Entr'ouvert", + auhtor_email="info@entrouvert.com", + maintainer="Benjamin Dauvergne", + maintainer_email="bdauvergne@entrouvert.com", + packages=['eopayment'])