pandoralocal/setup.py

39 lines
981 B
Python
Raw Normal View History

2011-12-22 12:20:47 +00:00
# setup.py
# -*- coding: UTF-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
try:
from setuptools import setup
except:
from distutils.core import setup
def get_version():
import os
from pandoralocal.version import __version__
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.%s' % (__version__, rev)
return '%s'%__version__
setup(name="pandoralocal",
version=get_version() ,
scripts=[
'bin/pandoralocal',
],
packages=[
'pandoralocal',
],
author="0x2620",
author_email="0x2620@0x2620.org",
description="pandoralocal allows users to use local videos on a pan.do/ra site",
classifiers = [
'Development Status :: 1 - Development/Unstable',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)