From d2849d44efcc3763ac28f3f6f233d2c0566a4d0f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 9 Oct 2009 16:52:22 +0200 Subject: [PATCH] only use distutils, add requirements.txt --- requirements.txt | 1 + setup.py | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..67f19ac --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +oxlib diff --git a/setup.py b/setup.py index efb4c4f..75ef72e 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +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 -import os +def get_bzr_version(): + import os + rev = int(os.popen('bzr revno').read()) + if rev: + return u'%s' % rev + return u'unknown' setup( name="oxweb", - version="0.1", - description="collection of scrapers for various websites", + version="1.0.%s" % get_bzr_version() , + description="collection of scrapers for the web", author="0x", author_email="code@0xdb.org", url="http://code.0xdb.org/oxweb", download_url="http://code.0xdb.org/oxweb/download", license="GPLv3", - packages=find_packages(), + packages=['oxweb'], zip_safe=False, - install_requires=[ - 'oxlib', - ], keywords = [ ], classifiers = [ - 'Development Status :: 3 - Alpha', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules',