Mercurial > bitten > bitten-test
annotate setup.py @ 99:efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
author | cmlenz |
---|---|
date | Mon, 18 Jul 2005 17:35:21 +0000 |
parents | 001f77d05cdc |
children | 4bee62474361 |
rev | line source |
---|---|
4 | 1 #!/usr/bin/env python |
5 | 2 # -*- coding: iso8859-1 -*- |
3 # | |
4 # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> | |
5 # | |
6 # Bitten is free software; you can redistribute it and/or | |
7 # modify it under the terms of the GNU General Public License as | |
8 # published by the Free Software Foundation; either version 2 of the | |
9 # License, or (at your option) any later version. | |
10 # | |
11 # Trac is distributed in the hope that it will be useful, | |
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 # General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU General Public License | |
17 # along with this program; if not, write to the Free Software | |
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
19 # | |
20 # Author: Christopher Lenz <cmlenz@gmx.de> | |
4 | 21 |
99
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
22 import ez_setup # From http://peak.telecommunity.com/DevCenter/setuptools |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
23 ez_setup.use_setuptools() |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
24 |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
25 |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
26 from setuptools import setup, find_packages |
68 | 27 from distutils import util |
78
001f77d05cdc
Include {{{templates}}} and {{{htdocs}}} dir in dist/install.
cmlenz
parents:
68
diff
changeset
|
28 from glob import glob |
6 | 29 |
19
9db5f8eddb0d
Proper {{{optparse}}}-based command-line interface for master and slave.
cmlenz
parents:
17
diff
changeset
|
30 from bitten import __version__ as VERSION |
22 | 31 from bitten.util.testrunner import unittest |
0 | 32 |
68 | 33 scripts = ['scripts/bitten', 'scripts/bittend'] |
34 if util.get_platform()[:3] == 'win': | |
35 scripts = [script + '.bat' for script in scripts] | |
36 | |
99
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
37 setup(name='bitten', version=VERSION, author="Christopher Lenz", |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
38 author_email="cmlenz@gmx.de", url="http://bitten.cmlenz.net/", |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
39 packages=find_packages(exclude=["*.tests*"]), |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
40 package_data={'bitten.trac_ext': ['templates/*.cs', 'htdocs/*.*']}, |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
41 scripts=scripts, test_suite='bitten.tests.suite', zip_safe=True, |
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
42 cmdclass={'unittest': unittest}) |