From 9fabfa1c8e0a819fbe7c100d9d610d6413a3f1eb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 12 Oct 2009 15:10:22 +0200 Subject: [PATCH] add setup.py --- setup.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f52cf53 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# vi:si:et:sw=4:sts=4:ts=4 +# encoding: utf-8 +from distutils.core import setup + +def get_bzr_version(): + import os + rev = int(os.popen('bzr revno').read()) + if rev: + return u'%s' % rev + return u'unknown' + +setup( + name="oxdjango", + version="1.0.%s" % get_bzr_version() , + description="django utils and usefull stuff", + author="0x", + author_email="code@0xdb.org", + url="http://code.0xdb.org/oxdjango", + download_url="http://code.0xdb.org/python-oxdjango/download", + license="GPLv3", + package_dir = {'ox.django': 'django'}, + packages=['ox.django'], + keywords = [ + ], + classifiers = [ + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], +) +