forked from lepinkainen/pyfibot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpavement.py
76 lines (63 loc) · 2.06 KB
/
pavement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
import os
from paver.easy import *
import paver.virtual
import paver.setuputils
from paver import svn
from paver.setuputils import setup, find_package_data, find_packages
with file("requirements.txt") as f:
install_requires = f.read().splitlines()
options(
virtualenv=Bunch(
packages_to_install=[],
install_paver = True,
paver_command_line=None,
no_site_packages=True
),
)
setup(
name='pyfibot',
version='0.9.4',
description='Python IRC bot',
long_description='An event-based IRC bot, based on twisted.words.protocols.irc',
url='https://github.com/lepinkainen/pyfibot',
author='Riku Lindblad',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Environment :: Console',
'Framework :: Twisted',
'Operating System :: OS Independent',
'Topic :: Communications :: Chat :: Internet Relay Chat'
],
license='MIT',
packages=['pyfibot', 'pyfibot.modules', 'pyfibot.util', 'pyfibot.lib'],
zip_safe=False,
install_requires=install_requires,
test_suite='nose.collector',
entry_points={
'console_scripts': ['pyfibot = pyfibot:main']
}
)
@task
@needs('generate_setup', 'minilib', 'setuptools.command.sdist')
def sdist():
"""Overrides sdist to make sure that our setup.py is generated."""
pass
@task
def prepare(options):
pass
@task
def bootstrap(options):
"""create virtualenv"""
try:
import virtualenv
except ImportError, e:
raise RuntimeError("virtualenv is needed for bootstrap")
options.virtualenv.no_site_packages = False
options.virtualenv.packages_to_install = install_requires
options.bootstrap.no_site_packages = False
options.virtualenv.paver_command_line='prepare'
call_task('paver.virtual.bootstrap')