From 1d7b6a31f06b8a1344a6807b806aec179fdc0294 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 9 Oct 2009 16:53:52 +0200 Subject: [PATCH] only use distutils, add requirements.txt --- requirements.txt | 2 ++ setup.py | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..33ace54 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +simplejson +chardet diff --git a/setup.py b/setup.py index b1239c8..5f00134 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,29 @@ #!/usr/bin/env python # vi:si:et:sw=4:sts=4:ts=4 # encoding: utf-8 -from setuptools import setup, find_packages +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="oxlib", - version="0.1", + version="1.0.%s" % get_bzr_version() , description="python-oxlib some tools to build tools", author="0x", author_email="code@0xdb.org", url="http://code.0xdb.org/oxlib", download_url="http://code.0xdb.org/oxlib/download", license="GPLv3", - packages=find_packages(), + packages=['oxlib'], zip_safe=False, - install_requires=[ - 'simplejson', - 'chardet', - ], keywords = [ ], classifiers = [ - 'Development Status :: 3 - Alpha', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules',