1 |
idl0r 09/06/19 14:40:07 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: pylint-0.18.0.ebuild |
5 |
Log: |
6 |
Version bump to 0.18.0. Fix src_test. Cleanup. |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 dev-python/pylint/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pylint/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 26 Mar 2009 21:13:08 -0000 1.3 |
23 |
+++ metadata.xml 19 Jun 2009 14:40:07 -0000 1.4 |
24 |
@@ -1,18 +1,21 @@ |
25 |
<?xml version="1.0" encoding="UTF-8"?> |
26 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
<pkgmetadata> |
28 |
- <herd>python</herd> |
29 |
- <longdescription lang="en"> |
30 |
- Pylint is a Python source code analyzer which looks for programming |
31 |
- errors, helps enforcing a coding standard and sniffs for some code |
32 |
- smells (as defined in Martin Fowler's Refactoring book). |
33 |
+ <herd>python</herd> |
34 |
+ <longdescription lang="en"> |
35 |
+ Pylint is a Python source code analyzer which looks for programming |
36 |
+ errors, helps enforcing a coding standard and sniffs for some code |
37 |
+ smells (as defined in Martin Fowler's Refactoring book). |
38 |
|
39 |
- Pylint can be seen as another PyChecker since nearly all tests you can |
40 |
- do with PyChecker can also be done with Pylint. However, Pylint offers |
41 |
- some more features, like checking length of lines of code, checking if |
42 |
- variable names are well-formed according to your coding standard, or |
43 |
- checking if declared interfaces are truly implemented, and much more. |
44 |
+ Pylint can be seen as another PyChecker since nearly all tests you can |
45 |
+ do with PyChecker can also be done with Pylint. However, Pylint offers |
46 |
+ some more features, like checking length of lines of code, checking if |
47 |
+ variable names are well-formed according to your coding standard, or |
48 |
+ checking if declared interfaces are truly implemented, and much more. |
49 |
|
50 |
- Additionally, it is possible to write plugins to add your own checks. |
51 |
- </longdescription> |
52 |
+ Additionally, it is possible to write plugins to add your own checks. |
53 |
+ </longdescription> |
54 |
+ <use> |
55 |
+ <flag name="html">Install HTML documenation</flag> |
56 |
+ </use> |
57 |
</pkgmetadata> |
58 |
|
59 |
|
60 |
|
61 |
1.48 dev-python/pylint/ChangeLog |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?rev=1.48&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?rev=1.48&content-type=text/plain |
65 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?r1=1.47&r2=1.48 |
66 |
|
67 |
Index: ChangeLog |
68 |
=================================================================== |
69 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v |
70 |
retrieving revision 1.47 |
71 |
retrieving revision 1.48 |
72 |
diff -u -r1.47 -r1.48 |
73 |
--- ChangeLog 26 Mar 2009 21:13:08 -0000 1.47 |
74 |
+++ ChangeLog 19 Jun 2009 14:40:07 -0000 1.48 |
75 |
@@ -1,6 +1,12 @@ |
76 |
# ChangeLog for dev-python/pylint |
77 |
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
78 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.47 2009/03/26 21:13:08 jmbsvicetto Exp $ |
79 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
80 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.48 2009/06/19 14:40:07 idl0r Exp $ |
81 |
+ |
82 |
+*pylint-0.18.0 (19 Jun 2009) |
83 |
+ |
84 |
+ 19 Jun 2009; Christian Ruppert <idl0r@g.o> +pylint-0.18.0.ebuild, |
85 |
+ metadata.xml: |
86 |
+ Version bump to 0.18.0. Fix src_test. Cleanup. |
87 |
|
88 |
26 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o> |
89 |
metadata.xml: |
90 |
|
91 |
|
92 |
|
93 |
1.1 dev-python/pylint/pylint-0.18.0.ebuild |
94 |
|
95 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild?rev=1.1&view=markup |
96 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild?rev=1.1&content-type=text/plain |
97 |
|
98 |
Index: pylint-0.18.0.ebuild |
99 |
=================================================================== |
100 |
# Copyright 1999-2009 Gentoo Foundation |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild,v 1.1 2009/06/19 14:40:07 idl0r Exp $ |
103 |
|
104 |
EAPI="2" |
105 |
|
106 |
inherit eutils distutils python |
107 |
|
108 |
DESCRIPTION="a tool to check if a Python module satisfies a coding standard" |
109 |
HOMEPAGE="http://www.logilab.org/projects/pylint/" |
110 |
SRC_URI="ftp://ftp.logilab.org/pub/${PN}/${P}.tar.gz" |
111 |
|
112 |
LICENSE="GPL-2" |
113 |
SLOT="0" |
114 |
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" |
115 |
IUSE="doc examples html test tk" |
116 |
|
117 |
DEPEND=">=dev-python/logilab-common-0.38 |
118 |
>=dev-python/astng-0.19.0" |
119 |
RDEPEND="${DEPEND} |
120 |
dev-lang/python[tk?]" |
121 |
|
122 |
src_test() { |
123 |
python_version |
124 |
|
125 |
local lpath="${T}/test/lib/python" |
126 |
local tpath="" |
127 |
|
128 |
# Create testdir and copy pylint into it for testing purpose. |
129 |
mkdir -p "${lpath}/logilab" || die |
130 |
PYTHONPATH="${lpath}" ${python} setup.py install --home="${T}/test" \ |
131 |
|| die "test copy failed" |
132 |
|
133 |
# To support test w/o setuptools. |
134 |
if [[ -d "${lpath}/${PN}" ]]; then |
135 |
tpath="${lpath}/${PN}" |
136 |
else |
137 |
tpath="${lpath}/${P}-py${PYVER}.egg/${PN}" |
138 |
fi |
139 |
|
140 |
# Copy pylint unittest and logilab-{common,astng} into our temporary test |
141 |
# dir. |
142 |
cp -r test/ ${tpath} || die "copy tests failed" |
143 |
cp -r "$(python_get_sitedir)/logilab/"{common,astng} "${lpath}/logilab" \ |
144 |
|| die "copying logilab-{common,astng} failed!" |
145 |
|
146 |
pushd "${tpath}" >/dev/null || die |
147 |
PYTHONPATH="${lpath}" pytest -v || die "tests failed" |
148 |
popd >/dev/null || die |
149 |
} |
150 |
|
151 |
|
152 |
src_install() { |
153 |
distutils_src_install |
154 |
|
155 |
doman man/{pylint,pyreverse}.1 || die "doman failed" |
156 |
dodoc doc/FAQ.txt || die "dodoc failed" |
157 |
|
158 |
if use doc; then |
159 |
dodoc doc/*.txt || die "dodoc failed" |
160 |
fi |
161 |
|
162 |
if use html; then |
163 |
dohtml doc/*.html || die "dohtml failed" |
164 |
fi |
165 |
|
166 |
if use examples; then |
167 |
docinto examples |
168 |
dodoc examples/* || die "dodoc failed" |
169 |
fi |
170 |
} |
171 |
|
172 |
pkg_postinst() { |
173 |
if ! built_with_use dev-lang/python tk; then |
174 |
ewarn "dev-lang/python has been built without tk support," |
175 |
ewarn "${PN}-gui doesn't work without Tkinter so if you really need it" |
176 |
ewarn "re-install dev-lang/python with tk useflag enabled." |
177 |
fi |
178 |
} |