Mercurial > p > roundup > code
annotate setup.py @ 199:0345753f27cf
updated version number for 0.2.6
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Aug 2001 07:18:57 +0000 |
| parents | c610319d11aa |
| children | 40d7be9708f6 |
| rev | line source |
|---|---|
|
85
fe0b33370244
Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents:
78
diff
changeset
|
1 #! /usr/bin/env python |
|
199
0345753f27cf
updated version number for 0.2.6
Richard Jones <richard@users.sourceforge.net>
parents:
197
diff
changeset
|
2 # $Id: setup.py,v 1.13 2001-08-03 07:18:57 richard Exp $ |
|
85
fe0b33370244
Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents:
78
diff
changeset
|
3 |
|
78
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
4 from distutils.core import setup, Extension |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
5 from distutils.util import get_platform |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
6 |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
7 from glob import glob |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
8 import os |
|
133
4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
Richard Jones <richard@users.sourceforge.net>
parents:
129
diff
changeset
|
9 from roundup.templatebuilder import makeHtmlBase |
|
78
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
10 |
|
197
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
11 try: |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
12 import unittest |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
13 except: |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
14 print 'Skipping unit tests (no unittest module found)' |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
15 else: |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
16 print 'Running unit tests...' |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
17 import test |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
18 test.go() |
|
135
79bc5f0a0dde
Added unit tests so they're run whenever we package/install/whatever.
Richard Jones <richard@users.sourceforge.net>
parents:
133
diff
changeset
|
19 |
|
78
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
20 templates = 'classic', 'extended' |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
21 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
22 installdatafiles = [] |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
23 |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
24 for t in templates: |
|
133
4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
Richard Jones <richard@users.sourceforge.net>
parents:
129
diff
changeset
|
25 makeHtmlBase(os.path.join('roundup', 'templates', t)) |
|
78
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
26 packagelist.append('roundup.templates.%s'%t) |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
27 packagelist.append('roundup.templates.%s.detectors'%t) |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
28 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
29 tfiles = filter(os.path.isfile, tfiles) |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
30 |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
31 |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
32 setup ( name = "roundup", |
|
199
0345753f27cf
updated version number for 0.2.6
Richard Jones <richard@users.sourceforge.net>
parents:
197
diff
changeset
|
33 version = "0.2.6", |
| 129 | 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'] | |
|
78
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
40 ) |
|
edcca72de643
first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
41 |
|
85
fe0b33370244
Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents:
78
diff
changeset
|
42 # |
|
fe0b33370244
Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents:
78
diff
changeset
|
43 # $Log: not supported by cvs2svn $ |
|
199
0345753f27cf
updated version number for 0.2.6
Richard Jones <richard@users.sourceforge.net>
parents:
197
diff
changeset
|
44 # Revision 1.12 2001/08/03 02:51:06 richard |
|
0345753f27cf
updated version number for 0.2.6
Richard Jones <richard@users.sourceforge.net>
parents:
197
diff
changeset
|
45 # detect unit tests |
|
0345753f27cf
updated version number for 0.2.6
Richard Jones <richard@users.sourceforge.net>
parents:
197
diff
changeset
|
46 # |
|
197
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
47 # Revision 1.11 2001/08/03 01:54:58 richard |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
48 # Started stuff off for the 0.2.5 release |
|
c610319d11aa
detect unit tests
Richard Jones <richard@users.sourceforge.net>
parents:
194
diff
changeset
|
49 # |
|
194
30c3a37b699f
Started stuff off for the 0.2.5 release
Richard Jones <richard@users.sourceforge.net>
parents:
164
diff
changeset
|
50 # Revision 1.10 2001/07/30 07:17:44 richard |
|
30c3a37b699f
Started stuff off for the 0.2.5 release
Richard Jones <richard@users.sourceforge.net>
parents:
164
diff
changeset
|
51 # Just making sure we've got the right version in there for development. |
|
30c3a37b699f
Started stuff off for the 0.2.5 release
Richard Jones <richard@users.sourceforge.net>
parents:
164
diff
changeset
|
52 # |
|
164
90073d289028
Just making sure we've got the right version in there for development.
Richard Jones <richard@users.sourceforge.net>
parents:
135
diff
changeset
|
53 # Revision 1.9 2001/07/29 23:34:26 richard |
|
90073d289028
Just making sure we've got the right version in there for development.
Richard Jones <richard@users.sourceforge.net>
parents:
135
diff
changeset
|
54 # Added unit tests so they're run whenever we package/install/whatever. |
|
90073d289028
Just making sure we've got the right version in there for development.
Richard Jones <richard@users.sourceforge.net>
parents:
135
diff
changeset
|
55 # |
|
135
79bc5f0a0dde
Added unit tests so they're run whenever we package/install/whatever.
Richard Jones <richard@users.sourceforge.net>
parents:
133
diff
changeset
|
56 # Revision 1.8 2001/07/29 09:43:46 richard |
|
79bc5f0a0dde
Added unit tests so they're run whenever we package/install/whatever.
Richard Jones <richard@users.sourceforge.net>
parents:
133
diff
changeset
|
57 # Make sure that the htmlbase is up-to-date when we build a source dist. |
|
79bc5f0a0dde
Added unit tests so they're run whenever we package/install/whatever.
Richard Jones <richard@users.sourceforge.net>
parents:
133
diff
changeset
|
58 # |
|
133
4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
Richard Jones <richard@users.sourceforge.net>
parents:
129
diff
changeset
|
59 # Revision 1.7 2001/07/29 08:37:58 richard |
|
4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
Richard Jones <richard@users.sourceforge.net>
parents:
129
diff
changeset
|
60 # changes |
|
4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
Richard Jones <richard@users.sourceforge.net>
parents:
129
diff
changeset
|
61 # |
| 129 | 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 # | |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
105
diff
changeset
|
65 # Revision 1.5 2001/07/28 00:39:18 richard |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
105
diff
changeset
|
66 # changes for the 0.2.1 distribution build. |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
105
diff
changeset
|
67 # |
|
105
3bed67f2394c
changes for the 0.2.1 distribution build.
Richard Jones <richard@users.sourceforge.net>
parents:
97
diff
changeset
|
68 # Revision 1.4 2001/07/27 07:20:17 richard |
|
3bed67f2394c
changes for the 0.2.1 distribution build.
Richard Jones <richard@users.sourceforge.net>
parents:
97
diff
changeset
|
69 # Makefile is now obsolete - setup does what it used to do. |
|
3bed67f2394c
changes for the 0.2.1 distribution build.
Richard Jones <richard@users.sourceforge.net>
parents:
97
diff
changeset
|
70 # |
|
97
ea5d6029a4bd
Makefile is now obsolete - setup does what it used to do.
Richard Jones <richard@users.sourceforge.net>
parents:
93
diff
changeset
|
71 # Revision 1.3 2001/07/27 06:56:25 richard |
|
ea5d6029a4bd
Makefile is now obsolete - setup does what it used to do.
Richard Jones <richard@users.sourceforge.net>
parents:
93
diff
changeset
|
72 # Added scripts to the setup and added the config so the default script |
|
ea5d6029a4bd
Makefile is now obsolete - setup does what it used to do.
Richard Jones <richard@users.sourceforge.net>
parents:
93
diff
changeset
|
73 # install dir is /usr/local/bin. |
|
ea5d6029a4bd
Makefile is now obsolete - setup does what it used to do.
Richard Jones <richard@users.sourceforge.net>
parents:
93
diff
changeset
|
74 # |
|
93
b68df6a509c9
Added scripts to the setup and added the config...
Richard Jones <richard@users.sourceforge.net>
parents:
85
diff
changeset
|
75 # Revision 1.2 2001/07/26 07:14:27 richard |
|
b68df6a509c9
Added scripts to the setup and added the config...
Richard Jones <richard@users.sourceforge.net>
parents:
85
diff
changeset
|
76 # Made setup.py executable, added id and log. |
|
85
fe0b33370244
Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents:
78
diff
changeset
|
77 # |
|
93
b68df6a509c9
Added scripts to the setup and added the config...
Richard Jones <richard@users.sourceforge.net>
parents:
85
diff
changeset
|
78 # |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
105
diff
changeset
|
79 # |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
105
diff
changeset
|
80 # vim: set filetype=python ts=4 sw=4 et si |
