1 |
neurogeek 09/02/25 20:59:36 |
2 |
|
3 |
Added: happydoc-3.1-setup.py |
4 |
Log: |
5 |
Version bump. Closes bug #201280 |
6 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.27-gentoo-r7 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/happydoc/files/happydoc-3.1-setup.py |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/happydoc/files/happydoc-3.1-setup.py?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/happydoc/files/happydoc-3.1-setup.py?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: happydoc-3.1-setup.py |
15 |
=================================================================== |
16 |
#!/usr/bin/env python |
17 |
# |
18 |
# $Id: happydoc-3.1-setup.py,v 1.1 2009/02/25 20:59:36 neurogeek Exp $ |
19 |
# |
20 |
# Time-stamp: <02/02/05 10:00:12 dhellmann> |
21 |
# |
22 |
# Copyright 2001 Doug Hellmann. |
23 |
# |
24 |
# |
25 |
# All Rights Reserved |
26 |
# |
27 |
# Permission to use, copy, modify, and distribute this software and |
28 |
# its documentation for any purpose and without fee is hereby |
29 |
# granted, provided that the above copyright notice appear in all |
30 |
# copies and that both that copyright notice and this permission |
31 |
# notice appear in supporting documentation, and that the name of Doug |
32 |
# Hellmann not be used in advertising or publicity pertaining to |
33 |
# distribution of the software without specific, written prior |
34 |
# permission. |
35 |
# |
36 |
# DOUG HELLMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
37 |
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN |
38 |
# NO EVENT SHALL DOUG HELLMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
39 |
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
40 |
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
41 |
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
42 |
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
43 |
# |
44 |
"""Distutils setup file for HappyDoc |
45 |
|
46 |
""" |
47 |
|
48 |
__rcs_info__ = { |
49 |
# |
50 |
# Creation Information |
51 |
# |
52 |
'module_name' : '$RCSfile: happydoc-3.1-setup.py,v $', |
53 |
'rcs_id' : '$Id: happydoc-3.1-setup.py,v 1.1 2009/02/25 20:59:36 neurogeek Exp $', |
54 |
'creator' : 'Doug Hellmann <doug@×××××××.net>', |
55 |
'project' : 'HappyDoc', |
56 |
'created' : 'Sat, 03-Feb-2001 12:51:26 EST', |
57 |
|
58 |
# |
59 |
# Current Information |
60 |
# |
61 |
'author' : '$Author: neurogeek $', |
62 |
'version' : '$Revision: 1.1 $', |
63 |
'date' : '$Date: 2009/02/25 20:59:36 $', |
64 |
} |
65 |
try: |
66 |
__version__ = __rcs_info__['version'].split(' ')[1] |
67 |
except: |
68 |
__version__ = '0.0' |
69 |
|
70 |
# |
71 |
# Import system modules |
72 |
# |
73 |
from distutils.core import setup |
74 |
import string |
75 |
import sys |
76 |
|
77 |
# |
78 |
# Import Local modules |
79 |
# |
80 |
|
81 |
# |
82 |
# Module |
83 |
# |
84 |
|
85 |
BSD_LICENSE=""" |
86 |
|
87 |
Copyright 2001, 2002 Doug Hellmann. |
88 |
|
89 |
All Rights Reserved |
90 |
|
91 |
Permission to use, copy, modify, and distribute this software and |
92 |
its documentation for any purpose and without fee is hereby |
93 |
granted, provided that the above copyright notice appear in all |
94 |
copies and that both that copyright notice and this permission |
95 |
notice appear in supporting documentation, and that the name of Doug |
96 |
Hellmann not be used in advertising or publicity pertaining to |
97 |
distribution of the software without specific, written prior |
98 |
permission. |
99 |
|
100 |
DOUG HELLMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
101 |
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN |
102 |
NO EVENT SHALL DOUG HELLMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
103 |
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
104 |
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
105 |
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
106 |
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
107 |
""" |
108 |
|
109 |
LONG_DESCRIPTION = """ |
110 |
HappyDoc is a tool for extracting documentation from Python source |
111 |
code. It differs from other such applications by the fact that it |
112 |
uses the parse tree for a module to derive the information used in |
113 |
its output, rather that importing the module directly. This allows |
114 |
the user to generate documentation for modules which need special |
115 |
context to be imported. |
116 |
""" |
117 |
|
118 |
|
119 |
def cvsProductVersion(cvsVersionString='$Name: $'): |
120 |
"""Function to return the version number of the program. |
121 |
|
122 |
The value is taken from the CVS tag, assuming the tag has the form: |
123 |
|
124 |
rX_Y_Z |
125 |
|
126 |
Where X is the major version number, Y is the minor version |
127 |
number, and Z is the optional sub-minor version number. |
128 |
""" |
129 |
cvs_version_parts=string.split(cvsVersionString) |
130 |
if len(cvs_version_parts) >= 3: |
131 |
app_version = string.strip(cvs_version_parts[1]).replace('_', '.') |
132 |
if app_version and app_version[0] == 'r': |
133 |
app_version = app_version[1:] |
134 |
else: |
135 |
app_version = 'WORKING' |
136 |
return app_version |
137 |
|
138 |
|
139 |
|
140 |
if sys.platform == 'win32': |
141 |
platform_specific_scripts = ['happydocwin.py'] |
142 |
else: |
143 |
platform_specific_scripts = ['happydoc'] |
144 |
|
145 |
setup ( |
146 |
name = 'HappyDoc', |
147 |
version = cvsProductVersion(), |
148 |
|
149 |
description = 'HappyDoc Automatic Documentation System', |
150 |
long_description = LONG_DESCRIPTION, |
151 |
|
152 |
author = 'Doug Hellmann', |
153 |
author_email = 'doug@×××××××.net', |
154 |
|
155 |
url = 'http://happydoc.sourceforge.net', |
156 |
licence = BSD_LICENSE, |
157 |
|
158 |
platforms = ('Any',), |
159 |
keywords = ('documentation', 'extraction', 'source', 'docstring', '__doc__'), |
160 |
|
161 |
packages = [ 'happydoclib', |
162 |
'happydoclib.docset', |
163 |
'happydoclib.docstring', |
164 |
'happydoclib.docstring.StructuredText', |
165 |
'happydoclib.parseinfo', |
166 |
'happydoclib.parsers', |
167 |
], |
168 |
|
169 |
package_dir = { '': '.' }, |
170 |
|
171 |
scripts = platform_specific_scripts, |
172 |
) |