1 #! /usr/bin/env python
2 # $Id: setup.py,v 1.13 2001-08-03 07:18:57 richard Exp $
4 from distutils.core import setup, Extension
5 from distutils.util import get_platform
7 from glob import glob
8 import os
9 from roundup.templatebuilder import makeHtmlBase
11 try:
12 import unittest
13 except:
14 print 'Skipping unit tests (no unittest module found)'
15 else:
16 print 'Running unit tests...'
17 import test
18 test.go()
20 templates = 'classic', 'extended'
21 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ]
22 installdatafiles = []
24 for t in templates:
25 makeHtmlBase(os.path.join('roundup', 'templates', t))
26 packagelist.append('roundup.templates.%s'%t)
27 packagelist.append('roundup.templates.%s.detectors'%t)
28 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*'))
29 tfiles = filter(os.path.isfile, tfiles)
32 setup ( name = "roundup",
33 version = "0.2.6",
34 description = "Roundup issue tracking system.",
35 author = "Richard Jones",
36 author_email = "richard@sourceforge.net",
37 url = 'http://sourceforge.net/projects/roundup/',
38 packages = packagelist,
39 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server']
40 )
42 #
43 # $Log: not supported by cvs2svn $
44 # Revision 1.12 2001/08/03 02:51:06 richard
45 # detect unit tests
46 #
47 # Revision 1.11 2001/08/03 01:54:58 richard
48 # Started stuff off for the 0.2.5 release
49 #
50 # Revision 1.10 2001/07/30 07:17:44 richard
51 # Just making sure we've got the right version in there for development.
52 #
53 # Revision 1.9 2001/07/29 23:34:26 richard
54 # Added unit tests so they're run whenever we package/install/whatever.
55 #
56 # Revision 1.8 2001/07/29 09:43:46 richard
57 # Make sure that the htmlbase is up-to-date when we build a source dist.
58 #
59 # Revision 1.7 2001/07/29 08:37:58 richard
60 # changes
61 #
62 # Revision 1.6 2001/07/29 07:01:39 richard
63 # Added vim command to all source so that we don't get no steenkin' tabs :)
64 #
65 # Revision 1.5 2001/07/28 00:39:18 richard
66 # changes for the 0.2.1 distribution build.
67 #
68 # Revision 1.4 2001/07/27 07:20:17 richard
69 # Makefile is now obsolete - setup does what it used to do.
70 #
71 # Revision 1.3 2001/07/27 06:56:25 richard
72 # Added scripts to the setup and added the config so the default script
73 # install dir is /usr/local/bin.
74 #
75 # Revision 1.2 2001/07/26 07:14:27 richard
76 # Made setup.py executable, added id and log.
77 #
78 #
79 #
80 # vim: set filetype=python ts=4 sw=4 et si