oxtimeline/setup.py

40 lines
987 B
Python
Raw Normal View History

2009-01-18 08:39:14 +00:00
# setup.py
# -*- coding: UTF-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
2010-11-25 10:32:10 +00:00
try:
from setuptools import setup
except:
from distutils.core import setup
def get_bzr_version():
import os
2011-10-07 16:00:17 +00:00
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()
2011-10-08 08:29:29 +00:00
if rev:
return u'%s' % rev
2010-11-25 10:32:10 +00:00
return u'unknown'
2009-01-18 08:39:14 +00:00
2010-10-16 13:48:00 +00:00
setup(name="oxtimeline",
2010-11-25 10:32:10 +00:00
version="1.0.%s" % get_bzr_version() ,
2009-01-18 08:39:14 +00:00
scripts = [
2010-10-14 10:37:14 +00:00
'bin/oxtimeline',
2009-01-18 08:39:14 +00:00
],
packages = [
2010-10-16 13:48:00 +00:00
'oxtimeline',
2009-01-18 08:39:14 +00:00
],
2010-11-03 21:27:29 +00:00
author="0x2620",
author_email="0x2620@0x2620.org",
description="extract timelines from videos",
2009-01-18 08:39:14 +00:00
classifiers = [
2010-11-03 21:27:29 +00:00
'Development Status :: 5 - Production/Stable',
2009-01-18 08:39:14 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
2010-11-03 21:27:29 +00:00
'Topic :: Utilities'
2009-01-18 08:39:14 +00:00
],
)