Code

c046990558503f632edf9d2fcc1c08a1ee125b07
[roundup.git] / setup.py
1 #! /usr/bin/env python
2 # $Id: setup.py,v 1.12 2001-08-03 02:51:06 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.5",
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.11  2001/08/03 01:54:58  richard
45 # Started stuff off for the 0.2.5 release
46 #
47 # Revision 1.10  2001/07/30 07:17:44  richard
48 # Just making sure we've got the right version in there for development.
49 #
50 # Revision 1.9  2001/07/29 23:34:26  richard
51 # Added unit tests so they're run whenever we package/install/whatever.
52 #
53 # Revision 1.8  2001/07/29 09:43:46  richard
54 # Make sure that the htmlbase is up-to-date when we build a source dist.
55 #
56 # Revision 1.7  2001/07/29 08:37:58  richard
57 # changes
58 #
59 # Revision 1.6  2001/07/29 07:01:39  richard
60 # Added vim command to all source so that we don't get no steenkin' tabs :)
61 #
62 # Revision 1.5  2001/07/28 00:39:18  richard
63 # changes for the 0.2.1 distribution build.
64 #
65 # Revision 1.4  2001/07/27 07:20:17  richard
66 # Makefile is now obsolete - setup does what it used to do.
67 #
68 # Revision 1.3  2001/07/27 06:56:25  richard
69 # Added scripts to the setup and added the config so the default script
70 # install dir is /usr/local/bin.
71 #
72 # Revision 1.2  2001/07/26 07:14:27  richard
73 # Made setup.py executable, added id and log.
74 #
75 #
76 #
77 # vim: set filetype=python ts=4 sw=4 et si