Mercurial > p > roundup > code
comparison setup.py @ 135:79bc5f0a0dde
Added unit tests so they're run whenever we package/install/whatever.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 29 Jul 2001 23:34:26 +0000 |
| parents | 4377732e04bb |
| children | 90073d289028 |
comparison
equal
deleted
inserted
replaced
| 134:d3ffcf862fb7 | 135:79bc5f0a0dde |
|---|---|
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 # $Id: setup.py,v 1.8 2001-07-29 09:43:46 richard Exp $ | 2 # $Id: setup.py,v 1.9 2001-07-29 23:34:26 richard Exp $ |
| 3 | 3 |
| 4 from distutils.core import setup, Extension | 4 from distutils.core import setup, Extension |
| 5 from distutils.util import get_platform | 5 from distutils.util import get_platform |
| 6 | 6 |
| 7 from glob import glob | 7 from glob import glob |
| 8 import os | 8 import os |
| 9 from roundup.templatebuilder import makeHtmlBase | 9 from roundup.templatebuilder import makeHtmlBase |
| 10 | |
| 11 print 'Running unit tests...' | |
| 12 import test | |
| 13 test.go() | |
| 10 | 14 |
| 11 templates = 'classic', 'extended' | 15 templates = 'classic', 'extended' |
| 12 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] | 16 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] |
| 13 installdatafiles = [] | 17 installdatafiles = [] |
| 14 | 18 |
| 19 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) | 23 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) |
| 20 tfiles = filter(os.path.isfile, tfiles) | 24 tfiles = filter(os.path.isfile, tfiles) |
| 21 | 25 |
| 22 | 26 |
| 23 setup ( name = "roundup", | 27 setup ( name = "roundup", |
| 24 version = "0.2.2", | 28 version = "0.2.3", |
| 25 description = "Roundup issue tracking system.", | 29 description = "Roundup issue tracking system.", |
| 26 author = "Richard Jones", | 30 author = "Richard Jones", |
| 27 author_email = "richard@sourceforge.net", | 31 author_email = "richard@sourceforge.net", |
| 28 url = 'http://sourceforge.net/projects/roundup/', | 32 url = 'http://sourceforge.net/projects/roundup/', |
| 29 packages = packagelist, | 33 packages = packagelist, |
| 30 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'] | 34 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'] |
| 31 ) | 35 ) |
| 32 | 36 |
| 33 # | 37 # |
| 34 # $Log: not supported by cvs2svn $ | 38 # $Log: not supported by cvs2svn $ |
| 39 # Revision 1.8 2001/07/29 09:43:46 richard | |
| 40 # Make sure that the htmlbase is up-to-date when we build a source dist. | |
| 41 # | |
| 35 # Revision 1.7 2001/07/29 08:37:58 richard | 42 # Revision 1.7 2001/07/29 08:37:58 richard |
| 36 # changes | 43 # changes |
| 37 # | 44 # |
| 38 # Revision 1.6 2001/07/29 07:01:39 richard | 45 # Revision 1.6 2001/07/29 07:01:39 richard |
| 39 # Added vim command to all source so that we don't get no steenkin' tabs :) | 46 # Added vim command to all source so that we don't get no steenkin' tabs :) |
