~max-rabkin/ibid/unihan-rescraped

517 by Russell Cloran
Make .tac and setup.py executable
1
#!/usr/bin/env python
867.1.3 by Stefano Rivera
Commas
2
# Copyright (c) 2008-2010, Michael Gorven
845.1.3 by Stefano Rivera
Stamp root and attic
3
# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
517 by Russell Cloran
Make .tac and setup.py executable
4
837.1.1 by Stefano Rivera
Add an option to setup.py to ignore dependencies
5
from sys import version_info, argv
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
6
694.7.1 by Michael Gorven
Fix manifest to create proper sdist which can then be installed.
7
from setuptools import setup
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
8
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
9
install_requires=[
863 by Stefano Rivera
Remove html2text from lib, it's easy_installable and deb in progress
10
    'BeautifulSoup',
867 by Stefano Rivera
Remove embedded configobj
11
    'configobj>=4.7.0',
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
12
    'dnspython',
13
    'feedparser',
863 by Stefano Rivera
Remove html2text from lib, it's easy_installable and deb in progress
14
    'html2text',
15
    'html5lib',
16
    'jinja',
694.7.12 by Michael Gorven
Add/fix some dependencies.
17
    'pyopenssl',
18
    'pysqlite',
889.5.26 by Stefano Rivera
Use a Porter stemmer in help searches. Include a pure-Python implementation until PyStemmer is available in Debian
19
    'PyStemmer',
740.1.1 by Stefano Rivera
Use datetime instead of struct_time, to allow use of %z. Use python-dateutil to provide Local TZ detection
20
    'python-dateutil',
863 by Stefano Rivera
Remove html2text from lib, it's easy_installable and deb in progress
21
    'SOAPpy',
694.7.14 by Michael Gorven
Bump SQLAlchemy requirement to 0.5 since <0.5 doesn't work on OS X.
22
    'SQLAlchemy>=0.5', # Works with >=0.4.6 except on OS X
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
23
    'Twisted',
867 by Stefano Rivera
Remove embedded configobj
24
    'wokkel>=0.6.3',
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
25
]
26
27
if version_info[0] == 2 and version_info[1] < 6:
28
    install_requires.append('simplejson')
29
if version_info[0] == 2 and version_info[1] < 5:
694.7.12 by Michael Gorven
Add/fix some dependencies.
30
    install_requires.append('cElementTree')
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
31
837.1.1 by Stefano Rivera
Add an option to setup.py to ignore dependencies
32
if argv[1:] == ['install', '--no-dependencies']:
33
    argv.pop()
34
    install_requires = None
35
125 by Michael Gorven
Add setup.py using setuptools
36
setup(
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
37
    name='Ibid',
908.2.11 by Stefano Rivera
Release shall be 0.1.0
38
    version='0.1.0',
694.7.7 by Michael Gorven
Change description and keywords.
39
    description='Multi-protocol general purpose chat bot',
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
40
    url='http://ibid.omnia.za.net/',
694.7.7 by Michael Gorven
Change description and keywords.
41
    keywords='chat bot irc jabber twisted messaging',
349 by Michael Gorven
config: Use pkg_resources to read configspec. (Hopefully) get egg building correct.
42
    author='Ibid Developers',
43
    author_email='ibid@omnia.za.net',
546.1.1 by Stefano Rivera
Specify License in setup.py
44
    license='MIT',
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
45
    py_modules=['ibid'],
694.7.11 by Michael Gorven
Handle specific dependencies for Python 2.4 and 2.5.
46
    install_requires=install_requires,
694.7.13 by Michael Gorven
Add SOAPpy and dependency link to the Ibid egg repo, and make imdbpy an extra dependency.
47
    extras_require = {
48
        'imdb': ['imdbpy'],
863 by Stefano Rivera
Remove html2text from lib, it's easy_installable and deb in progress
49
        'memory': ['objgraph'],
50
        'asciiart': ['python-aalib'],
694.7.13 by Michael Gorven
Add SOAPpy and dependency link to the Ibid egg repo, and make imdbpy an extra dependency.
51
    },
52
    dependency_links=[
53
        'http://ibid.omnia.za.net/eggs/',
54
        'http://wokkel.ik.nu/downloads',
55
    ],
818.4.1 by Michael Gorven
Move lib/ and data/ into the ibid module.
56
    packages=['ibid', 'tracibid', 'twisted', 'contrib', 'factpacks'],
352 by Michael Gorven
Move tracibid to root and install along with Ibid. Install Twisted plugin.
57
    entry_points={
58
        'trac.plugins': ['tracibid = tracibid.notifier'],
59
    },
760.5.6 by Stefano Rivera
Whitespace: setup.py
60
    scripts=[
61
        'scripts/ibid',
760.5.7 by Stefano Rivera
Install ibid-db
62
        'scripts/ibid-db',
879 by Stefano Rivera
Install ibid-*graph
63
        'scripts/ibid-factpack',
64
        'scripts/ibid-knab-import',
65
        'scripts/ibid-memgraph',
66
        'scripts/ibid-objgraph',
67
        'scripts/ibid-pb-client',
760.5.6 by Stefano Rivera
Whitespace: setup.py
68
        'scripts/ibid-plugin',
69
        'scripts/ibid-setup',
70
        'scripts/ibid.tac',
71
    ],
72
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
73
    include_package_data=True,
694.7.1 by Michael Gorven
Fix manifest to create proper sdist which can then be installed.
74
    zip_safe=False,
125 by Michael Gorven
Add setup.py using setuptools
75
)
347 by Michael Gorven
setup.py: Add function to pull version from bzr tags, and possibly the latest revision.
76
77
# vi: set et sta sw=4 ts=4: