pandora_client/setup.py
2011-12-30 18:47:28 +05:30

48 lines
1.2 KiB
Python

#!/usr/bin/env python
# vi:si:et:sw=4:sts=4:ts=4
# encoding: utf-8
try:
from setuptools import setup
except:
from distutils.core import setup
def get_bzr_version():
import os
info = os.path.join(os.path.dirname(__file__), '.bzr/branch/last-revision')
if os.path.exists(info):
f = open(info)
rev = int(f.read().split()[0])
f.close()
if rev:
return u'%s' % rev
return u'unknown'
setup(
name="pandora_client",
version="0.2.%s" % get_bzr_version() ,
description='''pandora_client - commandline client and python api for pan.do/ra
can be used interact with pan.do/ra instance via its api.
or instead of OxFF to keep archive and pan.do/ra instance in sync.
''',
author="j",
author_email="j@mailb.org",
url="http://code.0x2620.org/pandora_client",
download_url="http://code.0x2620.org/pandora_client/download",
license="GPLv3",
scripts = [
'bin/pandora_client',
],
packages=[
'pandora_client'
],
install_requires=['ox'],
keywords = [
],
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License (GPL)',
],
)