pandoralocal/setup.py

46 lines
1.2 KiB
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
2011-12-22 12:48:51 +00:00
from distutils.core import setup
import os
2011-12-22 12:20:47 +00:00
def get_version():
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:
2011-12-22 12:48:51 +00:00
return '%s.%s' % (__version__, rev)
2011-12-22 12:20:47 +00:00
return '%s'%__version__
2011-12-22 12:48:51 +00:00
def get_package_data():
package_data = []
for root, folders, files in os.walk('pandoralocal/static'):
for f in files:
package_data.append(os.path.join(root, f)[len('pandoralocal/'):])
return package_data
2011-12-22 12:20:47 +00:00
setup(name="pandoralocal",
version=get_version() ,
scripts=[
'bin/pandoralocal',
],
packages=[
'pandoralocal',
],
2011-12-22 12:48:51 +00:00
package_data = {
'pandoralocal': get_package_data(),
},
2011-12-22 12:20:47 +00:00
author="0x2620",
author_email="0x2620@0x2620.org",
2011-12-22 12:48:51 +00:00
description=u"pandoralocal allows users to use local videos on a pan.do/ra site",
2011-12-22 12:20:47 +00:00
classifiers = [
2011-12-22 12:48:51 +00:00
'Development Status :: 4 - Beta',
2011-12-22 12:20:47 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)