1 |
commit: fdd20aa17dd7e5325bfca701adfb766ad880ae33 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 11:01:27 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 11:02:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd20aa1 |
7 |
|
8 |
dev-python/docutils: Clean old versions up |
9 |
|
10 |
dev-python/docutils/docutils-0.12-r1.ebuild | 75 --------------- |
11 |
.../files/docutils-0.12-fix-tests-pygments.patch | 105 --------------------- |
12 |
.../files/docutils-0.12-fix-tests-pypy.patch | 51 ---------- |
13 |
3 files changed, 231 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/docutils/docutils-0.12-r1.ebuild b/dev-python/docutils/docutils-0.12-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index fd90096d645..00000000000 |
18 |
--- a/dev-python/docutils/docutils-0.12-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,75 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
27 |
- |
28 |
-inherit distutils-r1 |
29 |
- |
30 |
-DESCRIPTION="Python Documentation Utilities" |
31 |
-HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils" |
32 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
33 |
- |
34 |
-LICENSE="BSD-2 GPL-3 public-domain" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
37 |
-IUSE="" |
38 |
- |
39 |
-DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" |
40 |
-RDEPEND="${DEPEND}" |
41 |
- |
42 |
-PATCHES=( |
43 |
- # Upstream patch to fix tests |
44 |
- "${FILESDIR}/${P}-fix-tests-pygments.patch" |
45 |
- |
46 |
- # Patch to fix pypyp tests |
47 |
- "${FILESDIR}/${P}-fix-tests-pypy.patch" |
48 |
-) |
49 |
- |
50 |
-python_compile_all() { |
51 |
- # Generate html docs from reStructured text sources. |
52 |
- |
53 |
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct. |
54 |
- cp docutils/writers/html4css1/html4css1.css . || die |
55 |
- |
56 |
- cd tools || die |
57 |
- "${EPYTHON}" buildhtml.py --input-encoding=utf-8 \ |
58 |
- --stylesheet-path=../html4css1.css, --traceback ../docs || die |
59 |
-} |
60 |
- |
61 |
-python_test() { |
62 |
- if python_is_python3; then |
63 |
- pushd test3 > /dev/null || die |
64 |
- else |
65 |
- pushd test > /dev/null || die |
66 |
- fi |
67 |
- "${EPYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" |
68 |
- popd > /dev/null || die |
69 |
-} |
70 |
- |
71 |
-python_install() { |
72 |
- distutils-r1_python_install |
73 |
- |
74 |
- # Install tools. |
75 |
- python_doscript tools/{buildhtml,quicktest}.py |
76 |
-} |
77 |
- |
78 |
-install_txt_doc() { |
79 |
- local doc="${1}" |
80 |
- local dir="txt/$(dirname ${doc})" |
81 |
- docinto "${dir}" |
82 |
- dodoc "${doc}" |
83 |
-} |
84 |
- |
85 |
-python_install_all() { |
86 |
- local DOCS=( *.txt ) |
87 |
- local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) |
88 |
- |
89 |
- distutils-r1_python_install_all |
90 |
- |
91 |
- local doc |
92 |
- while IFS= read -r -d '' doc; do |
93 |
- install_txt_doc "${doc}" |
94 |
- done < <(find docs tools -name '*.txt' -print0) |
95 |
-} |
96 |
|
97 |
diff --git a/dev-python/docutils/files/docutils-0.12-fix-tests-pygments.patch b/dev-python/docutils/files/docutils-0.12-fix-tests-pygments.patch |
98 |
deleted file mode 100644 |
99 |
index 7a116187d4c..00000000000 |
100 |
--- a/dev-python/docutils/files/docutils-0.12-fix-tests-pygments.patch |
101 |
+++ /dev/null |
102 |
@@ -1,105 +0,0 @@ |
103 |
-From c8329f1bca61c203b48f80f01876384a79cceab5 Mon Sep 17 00:00:00 2001 |
104 |
-From: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> |
105 |
-Date: Sat, 14 May 2016 21:15:00 +0000 |
106 |
-Subject: [PATCH] Apply #131 (update pygments test to pygments 2.1) by |
107 |
- cstratak. |
108 |
- |
109 |
-git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7936 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 |
110 |
---- |
111 |
- .../test_parsers/test_rst/test_directives/test_code.py | 6 +++--- |
112 |
- .../test_rst/test_directives/test_code_long.py | 2 +- |
113 |
- docutils/test/test_parsers/test_rst/test_interpreted.py | 14 +++++++------- |
114 |
- 3 files changed, 11 insertions(+), 11 deletions(-) |
115 |
- |
116 |
-diff --git a/test/test_parsers/test_rst/test_directives/test_code.py b/test/test_parsers/test_rst/test_directives/test_code.py |
117 |
-index 5e013d4..8affcbe 100644 |
118 |
---- a/test/test_parsers/test_rst/test_directives/test_code.py |
119 |
-+++ b/test/test_parsers/test_rst/test_directives/test_code.py |
120 |
-@@ -107,10 +107,10 @@ totest['code-parsing'] = [ |
121 |
- <inline classes="keyword"> |
122 |
- print |
123 |
- \n\ |
124 |
-- <inline classes="literal string"> |
125 |
-+ <inline classes="literal string single"> |
126 |
- 'hello world' |
127 |
- \n\ |
128 |
-- <inline classes="comment"> |
129 |
-+ <inline classes="comment single"> |
130 |
- # to stdout |
131 |
- """], |
132 |
- ["""\ |
133 |
-@@ -155,7 +155,7 @@ totest['code-parsing'] = [ |
134 |
- <inline classes="ln"> |
135 |
- 11 \n\ |
136 |
- \n\ |
137 |
-- <inline classes="comment"> |
138 |
-+ <inline classes="comment single"> |
139 |
- # and now for something completely different |
140 |
- \n\ |
141 |
- <inline classes="ln"> |
142 |
-diff --git a/test/test_parsers/test_rst/test_directives/test_code_long.py b/test/test_parsers/test_rst/test_directives/test_code_long.py |
143 |
-index f015357..e6430cc 100644 |
144 |
---- a/test/test_parsers/test_rst/test_directives/test_code_long.py |
145 |
-+++ b/test/test_parsers/test_rst/test_directives/test_code_long.py |
146 |
-@@ -60,7 +60,7 @@ totest['code-parsing-long'] = [ |
147 |
- <inline classes="ln"> |
148 |
- 11 \n\ |
149 |
- \n\ |
150 |
-- <inline classes="comment"> |
151 |
-+ <inline classes="comment single"> |
152 |
- # and now for something completely different |
153 |
- \n\ |
154 |
- <inline classes="ln"> |
155 |
-diff --git a/test/test_parsers/test_rst/test_interpreted.py b/test/test_parsers/test_rst/test_interpreted.py |
156 |
-index f9a1194..87d0a77 100755 |
157 |
---- a/test/test_parsers/test_rst/test_interpreted.py |
158 |
-+++ b/test/test_parsers/test_rst/test_interpreted.py |
159 |
-@@ -119,30 +119,30 @@ totest['basics'] = [ |
160 |
- :not a role if it contains whitespace: |
161 |
- """], |
162 |
- ["""\ |
163 |
--:title:`` (empty interpteted text not recognized) |
164 |
-+:title:`` (empty interpreted text not recognized) |
165 |
- """, |
166 |
- """\ |
167 |
- <document source="test data"> |
168 |
- <paragraph> |
169 |
-- :title:`` (empty interpteted text not recognized) |
170 |
-+ :title:`` (empty interpreted text not recognized) |
171 |
- """], |
172 |
- ["""\ |
173 |
--:title:`\ ` (interpteted text containing empty string) |
174 |
-+:title:`\ ` (interpreted text containing empty string) |
175 |
- """, |
176 |
- """\ |
177 |
- <document source="test data"> |
178 |
- <paragraph> |
179 |
- <title_reference> |
180 |
-- (interpteted text containing empty string) |
181 |
-+ (interpreted text containing empty string) |
182 |
- """], |
183 |
- ["""\ |
184 |
--`\ `:title: (interpteted text containing empty string (postfix)) |
185 |
-+`\ `:title: (interpreted text containing empty string (postfix)) |
186 |
- """, |
187 |
- """\ |
188 |
- <document source="test data"> |
189 |
- <paragraph> |
190 |
- <title_reference> |
191 |
-- (interpteted text containing empty string (postfix)) |
192 |
-+ (interpreted text containing empty string (postfix)) |
193 |
- """], |
194 |
- ["""\ |
195 |
- :title:`\ non-empty` |
196 |
-@@ -283,7 +283,7 @@ Python code :python:`print("The end")`. |
197 |
- print |
198 |
- <inline classes="punctuation"> |
199 |
- ( |
200 |
-- <inline classes="literal string"> |
201 |
-+ <inline classes="literal string double"> |
202 |
- "The end" |
203 |
- <inline classes="punctuation"> |
204 |
- ) |
205 |
--- |
206 |
-2.7.4.GIT |
207 |
- |
208 |
|
209 |
diff --git a/dev-python/docutils/files/docutils-0.12-fix-tests-pypy.patch b/dev-python/docutils/files/docutils-0.12-fix-tests-pypy.patch |
210 |
deleted file mode 100644 |
211 |
index 7a29b885791..00000000000 |
212 |
--- a/dev-python/docutils/files/docutils-0.12-fix-tests-pypy.patch |
213 |
+++ /dev/null |
214 |
@@ -1,51 +0,0 @@ |
215 |
-diff --git a/test/test_parsers/test_rst/test_directives/test_images.py b/test/test_parsers/test_rst/test_directives/test_images.py |
216 |
-index ea3adfa..9743fba 100755 |
217 |
---- a/test/test_parsers/test_rst/test_directives/test_images.py |
218 |
-+++ b/test/test_parsers/test_rst/test_directives/test_images.py |
219 |
-@@ -277,7 +277,7 @@ totest['images'] = [ |
220 |
- <literal_block xml:space="preserve"> |
221 |
- .. image:: picture.png |
222 |
- :scale: fifty |
223 |
--""" % DocutilsTestSupport.exception_data(int, "fifty")[1][0]], |
224 |
-+""" % DocutilsTestSupport.exception_data(int, u"fifty")[1][0]], |
225 |
- ["""\ |
226 |
- .. image:: picture.png |
227 |
- :scale: 50 |
228 |
-diff --git a/test/test_parsers/test_rst/test_directives/test_tables.py b/test/test_parsers/test_rst/test_directives/test_tables.py |
229 |
-index 1200ab0..b75844a 100755 |
230 |
---- a/test/test_parsers/test_rst/test_directives/test_tables.py |
231 |
-+++ b/test/test_parsers/test_rst/test_directives/test_tables.py |
232 |
-@@ -12,6 +12,7 @@ from __init__ import DocutilsTestSupport |
233 |
- |
234 |
- import os, sys |
235 |
- import csv |
236 |
-+import platform |
237 |
- from docutils.parsers.rst.directives import tables |
238 |
- |
239 |
- |
240 |
-@@ -34,9 +35,14 @@ else: |
241 |
- |
242 |
- # some error messages changed in Python 3.3: |
243 |
- csv_eod_error_str = 'unexpected end of data' |
244 |
--if sys.version_info < (3,2,4) and not (# backport to 2.7.4 |
245 |
-- sys.version_info[:2] == (2,7) and sys.version_info[2] > 3): |
246 |
-+if sys.version_info < (3,2,4) and ( |
247 |
-+ # CPython has backported to 2.7.4, PyPy has not |
248 |
-+ platform.python_implementation() == 'PyPy' or not ( |
249 |
-+ sys.version_info[:2] == (2,7) and sys.version_info[2] > 3)): |
250 |
- csv_eod_error_str = 'newline inside string' |
251 |
-+# pypy adds a line number |
252 |
-+if platform.python_implementation() == 'PyPy': |
253 |
-+ csv_eod_error_str = 'line 1: ' + csv_eod_error_str |
254 |
- csv_unknown_url = "'bogus.csv'" |
255 |
- if sys.version_info < (3,3,2): |
256 |
- csv_unknown_url = "bogus.csv" |
257 |
-@@ -782,7 +788,7 @@ u"""\ |
258 |
- :widths: 0 0 0 |
259 |
- \n\ |
260 |
- some, csv, data |
261 |
--""" % DocutilsTestSupport.exception_data(int, "y")[1][0]], |
262 |
-+""" % DocutilsTestSupport.exception_data(int, u"y")[1][0]], |
263 |
- ["""\ |
264 |
- .. csv-table:: good delimiter |
265 |
- :delim: / |