Merge lp:~barcc/ubuntu/saucy/pyicu/lp1200419 into lp:ubuntu/saucy/pyicu
- Saucy (13.10)
- lp1200419
- Merge into saucy
Proposed by
B. Clausius
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Martin Pitt | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~barcc/ubuntu/saucy/pyicu/lp1200419 | ||||
Merge into: | lp:ubuntu/saucy/pyicu | ||||
Diff against target: |
811 lines (+313/-113) 30 files modified
.pc/.quilt_patches (+1/-0) .pc/.quilt_series (+1/-0) .pc/.version (+1/-0) CHANGES (+12/-0) PKG-INFO (+13/-2) PyICU.egg-info/PKG-INFO (+13/-2) bases.cpp (+8/-0) calendar.cpp (+8/-1) common.h (+3/-0) dateformat.cpp (+7/-0) debian/changelog (+37/-0) debian/control (+26/-7) debian/patches/00dpatch.conf (+0/-2) debian/patches/00list (+0/-2) debian/patches/fix_typo_in_deprecation_warning.patch (+13/-0) debian/patches/no-setuptools-please.diff (+22/-0) debian/patches/no-setuptools-please.dpatch (+0/-21) debian/patches/platform-definitions-fix.diff (+20/-0) debian/patches/platform-definitions-fix.dpatch (+0/-18) debian/patches/rename_docs_module.patch (+10/-0) debian/patches/series (+4/-0) debian/rules (+27/-31) debian/source/format (+1/-1) format.cpp (+21/-3) layoutengine.cpp (+11/-1) numberformat.cpp (+1/-1) setup.py (+13/-1) test/test_Collator.py (+22/-19) test/test_MessageFormat.py (+17/-0) transliterator.cpp (+1/-1) |
||||
To merge this branch: | bzr merge lp:~barcc/ubuntu/saucy/pyicu/lp1200419 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Approve | ||
Review via email: mp+176028@code.launchpad.net |
Commit message
Description of the change
* Merged from debian version 1.5-2
* Added transitional packages python3-pyicu[-dbg] to migrate to python3-icu[-dbg]
This solves: lp: #1200419, Please provide package python3-icu
To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote : | # |
BTW this merge missed Breaks/Replaces from the new package to the old transitional one and so causes upgrade failures. I'm uploading a fix for that now.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory '.pc' | |||
2 | === added file '.pc/.quilt_patches' | |||
3 | --- .pc/.quilt_patches 1970-01-01 00:00:00 +0000 | |||
4 | +++ .pc/.quilt_patches 2013-07-20 21:08:24 +0000 | |||
5 | @@ -0,0 +1,1 @@ | |||
6 | 1 | debian/patches | ||
7 | 0 | 2 | ||
8 | === added file '.pc/.quilt_series' | |||
9 | --- .pc/.quilt_series 1970-01-01 00:00:00 +0000 | |||
10 | +++ .pc/.quilt_series 2013-07-20 21:08:24 +0000 | |||
11 | @@ -0,0 +1,1 @@ | |||
12 | 1 | series | ||
13 | 0 | 2 | ||
14 | === added file '.pc/.version' | |||
15 | --- .pc/.version 1970-01-01 00:00:00 +0000 | |||
16 | +++ .pc/.version 2013-07-20 21:08:24 +0000 | |||
17 | @@ -0,0 +1,1 @@ | |||
18 | 1 | 2 | ||
19 | 0 | 2 | ||
20 | === modified file 'CHANGES' | |||
21 | --- CHANGES 2012-05-10 22:59:17 +0000 | |||
22 | +++ CHANGES 2013-07-20 21:08:24 +0000 | |||
23 | @@ -1,6 +1,18 @@ | |||
24 | 1 | 1 | ||
25 | 2 | For bug <NUM>, see http://bugzilla.osafoundation.org/show_bug.cgi?id=<NUM> | 2 | For bug <NUM>, see http://bugzilla.osafoundation.org/show_bug.cgi?id=<NUM> |
26 | 3 | 3 | ||
27 | 4 | Version 1.4 -> 1.5 | ||
28 | 5 | ------------------ | ||
29 | 6 | - added wrapper for MessageFormat::format(argumentNames, arguments, ...) | ||
30 | 7 | - fixed bug in t_transliterator_filteredTransliterate passing UBool for int | ||
31 | 8 | - added wrapper for DateFormat::format(Calendar) | ||
32 | 9 | - added wrapper for Calendar::set(UCalendarDateFields field, value) | ||
33 | 10 | - added wrappers for UnicodeString::toTitle() w/o iterator (Fredrik Roubert) | ||
34 | 11 | - added support for ICU 50.1 | ||
35 | 12 | - improved test_Collator's testGetSortKey() (Markus Scherer) | ||
36 | 13 | - added pypi classifiers to PyICU project info, including Python 3 tag | ||
37 | 14 | - build tested with Python 2.7 and Python 3.3.0 | ||
38 | 15 | |||
39 | 4 | Version 1.3 -> 1.4 | 16 | Version 1.3 -> 1.4 |
40 | 5 | ------------------ | 17 | ------------------ |
41 | 6 | - fixed bug with default tzinfo set on ICUtzinfo type (bug 13038) | 18 | - fixed bug with default tzinfo set on ICUtzinfo type (bug 13038) |
42 | 7 | 19 | ||
43 | === modified file 'PKG-INFO' | |||
44 | --- PKG-INFO 2012-05-10 22:59:17 +0000 | |||
45 | +++ PKG-INFO 2013-07-20 21:08:24 +0000 | |||
46 | @@ -1,10 +1,10 @@ | |||
47 | 1 | Metadata-Version: 1.0 | 1 | Metadata-Version: 1.0 |
48 | 2 | Name: PyICU | 2 | Name: PyICU |
50 | 3 | Version: 1.4 | 3 | Version: 1.5 |
51 | 4 | Summary: Python extension wrapping the ICU C++ API | 4 | Summary: Python extension wrapping the ICU C++ API |
52 | 5 | Home-page: http://pyicu.osafoundation.org/ | 5 | Home-page: http://pyicu.osafoundation.org/ |
53 | 6 | Author: Open Source Applications Foundation | 6 | Author: Open Source Applications Foundation |
55 | 7 | Author-email: UNKNOWN | 7 | Author-email: vajda@osafoundation.org |
56 | 8 | License: UNKNOWN | 8 | License: UNKNOWN |
57 | 9 | Description: | 9 | Description: |
58 | 10 | --------------------- | 10 | --------------------- |
59 | @@ -238,3 +238,14 @@ | |||
60 | 238 | str(ICUtzinfo.getInstance('Pacific/Fiji')) -> 'Pacific/Fiji' | 238 | str(ICUtzinfo.getInstance('Pacific/Fiji')) -> 'Pacific/Fiji' |
61 | 239 | 239 | ||
62 | 240 | Platform: UNKNOWN | 240 | Platform: UNKNOWN |
63 | 241 | Classifier: Development Status :: 5 - Production/Stable | ||
64 | 242 | Classifier: Environment :: Console | ||
65 | 243 | Classifier: Intended Audience :: Developers | ||
66 | 244 | Classifier: License :: OSI Approved | ||
67 | 245 | Classifier: Operating System :: OS Independent | ||
68 | 246 | Classifier: Programming Language :: C++ | ||
69 | 247 | Classifier: Programming Language :: Python | ||
70 | 248 | Classifier: Programming Language :: Python :: 2 | ||
71 | 249 | Classifier: Programming Language :: Python :: 3 | ||
72 | 250 | Classifier: Topic :: Software Development :: Localization | ||
73 | 251 | Classifier: Topic :: Software Development :: Internationalization | ||
74 | 241 | 252 | ||
75 | === modified file 'PyICU.egg-info/PKG-INFO' | |||
76 | --- PyICU.egg-info/PKG-INFO 2012-05-10 22:59:17 +0000 | |||
77 | +++ PyICU.egg-info/PKG-INFO 2013-07-20 21:08:24 +0000 | |||
78 | @@ -1,10 +1,10 @@ | |||
79 | 1 | Metadata-Version: 1.0 | 1 | Metadata-Version: 1.0 |
80 | 2 | Name: PyICU | 2 | Name: PyICU |
82 | 3 | Version: 1.4 | 3 | Version: 1.5 |
83 | 4 | Summary: Python extension wrapping the ICU C++ API | 4 | Summary: Python extension wrapping the ICU C++ API |
84 | 5 | Home-page: http://pyicu.osafoundation.org/ | 5 | Home-page: http://pyicu.osafoundation.org/ |
85 | 6 | Author: Open Source Applications Foundation | 6 | Author: Open Source Applications Foundation |
87 | 7 | Author-email: UNKNOWN | 7 | Author-email: vajda@osafoundation.org |
88 | 8 | License: UNKNOWN | 8 | License: UNKNOWN |
89 | 9 | Description: | 9 | Description: |
90 | 10 | --------------------- | 10 | --------------------- |
91 | @@ -238,3 +238,14 @@ | |||
92 | 238 | str(ICUtzinfo.getInstance('Pacific/Fiji')) -> 'Pacific/Fiji' | 238 | str(ICUtzinfo.getInstance('Pacific/Fiji')) -> 'Pacific/Fiji' |
93 | 239 | 239 | ||
94 | 240 | Platform: UNKNOWN | 240 | Platform: UNKNOWN |
95 | 241 | Classifier: Development Status :: 5 - Production/Stable | ||
96 | 242 | Classifier: Environment :: Console | ||
97 | 243 | Classifier: Intended Audience :: Developers | ||
98 | 244 | Classifier: License :: OSI Approved | ||
99 | 245 | Classifier: Operating System :: OS Independent | ||
100 | 246 | Classifier: Programming Language :: C++ | ||
101 | 247 | Classifier: Programming Language :: Python | ||
102 | 248 | Classifier: Programming Language :: Python :: 2 | ||
103 | 249 | Classifier: Programming Language :: Python :: 3 | ||
104 | 250 | Classifier: Topic :: Software Development :: Localization | ||
105 | 251 | Classifier: Topic :: Software Development :: Internationalization | ||
106 | 241 | 252 | ||
107 | === modified file 'bases.cpp' | |||
108 | --- bases.cpp 2012-05-10 22:59:17 +0000 | |||
109 | +++ bases.cpp 2013-07-20 21:08:24 +0000 | |||
110 | @@ -1275,7 +1275,15 @@ | |||
111 | 1275 | Locale *locale; | 1275 | Locale *locale; |
112 | 1276 | 1276 | ||
113 | 1277 | switch (PyTuple_Size(args)) { | 1277 | switch (PyTuple_Size(args)) { |
114 | 1278 | case 0: | ||
115 | 1279 | self->object->toTitle(NULL); | ||
116 | 1280 | Py_RETURN_SELF(); | ||
117 | 1278 | case 1: | 1281 | case 1: |
118 | 1282 | if (!parseArgs(args, "P", TYPE_CLASSID(Locale), &locale)) | ||
119 | 1283 | { | ||
120 | 1284 | self->object->toTitle(NULL, *locale); | ||
121 | 1285 | Py_RETURN_SELF(); | ||
122 | 1286 | } | ||
123 | 1279 | if (!parseArg(args, "P", TYPE_ID(BreakIterator), &iterator)) | 1287 | if (!parseArg(args, "P", TYPE_ID(BreakIterator), &iterator)) |
124 | 1280 | { | 1288 | { |
125 | 1281 | self->object->toTitle(iterator); | 1289 | self->object->toTitle(iterator); |
126 | 1282 | 1290 | ||
127 | === modified file 'calendar.cpp' | |||
128 | --- calendar.cpp 2011-11-13 12:07:46 +0000 | |||
129 | +++ calendar.cpp 2013-07-20 21:08:24 +0000 | |||
130 | @@ -1136,8 +1136,15 @@ | |||
131 | 1136 | static PyObject *t_calendar_set(t_calendar *self, PyObject *args) | 1136 | static PyObject *t_calendar_set(t_calendar *self, PyObject *args) |
132 | 1137 | { | 1137 | { |
133 | 1138 | int year, month, date, hour, minute, second; | 1138 | int year, month, date, hour, minute, second; |
135 | 1139 | 1139 | int field, value; | |
136 | 1140 | switch (PyTuple_Size(args)) { | 1140 | switch (PyTuple_Size(args)) { |
137 | 1141 | case 2: | ||
138 | 1142 | if (!parseArgs(args, "ii", &field, &value)) | ||
139 | 1143 | { | ||
140 | 1144 | self->object->set((UCalendarDateFields) field, value); | ||
141 | 1145 | Py_RETURN_NONE; | ||
142 | 1146 | } | ||
143 | 1147 | break; | ||
144 | 1141 | case 3: | 1148 | case 3: |
145 | 1142 | if (!parseArgs(args, "iii", &year, &month, &date)) | 1149 | if (!parseArgs(args, "iii", &year, &month, &date)) |
146 | 1143 | { | 1150 | { |
147 | 1144 | 1151 | ||
148 | === modified file 'common.h' | |||
149 | --- common.h 2011-11-13 12:07:46 +0000 | |||
150 | +++ common.h 2013-07-20 21:08:24 +0000 | |||
151 | @@ -131,6 +131,9 @@ | |||
152 | 131 | #include <unicode/search.h> | 131 | #include <unicode/search.h> |
153 | 132 | #include <unicode/stsearch.h> | 132 | #include <unicode/stsearch.h> |
154 | 133 | 133 | ||
155 | 134 | #define VERSION_HEX(major, minor, patch) \ | ||
156 | 135 | (((major) << 24) | ((minor) << 16) | ((patch) << 8)) | ||
157 | 136 | |||
158 | 134 | #define U_ICU_VERSION_HEX ((U_ICU_VERSION_MAJOR_NUM << 24) + \ | 137 | #define U_ICU_VERSION_HEX ((U_ICU_VERSION_MAJOR_NUM << 24) + \ |
159 | 135 | (U_ICU_VERSION_MINOR_NUM << 16) + \ | 138 | (U_ICU_VERSION_MINOR_NUM << 16) + \ |
160 | 136 | (U_ICU_VERSION_PATCHLEVEL_NUM << 8)) | 139 | (U_ICU_VERSION_PATCHLEVEL_NUM << 8)) |
161 | 137 | 140 | ||
162 | === modified file 'dateformat.cpp' | |||
163 | --- dateformat.cpp 2011-11-13 12:07:46 +0000 | |||
164 | +++ dateformat.cpp 2013-07-20 21:08:24 +0000 | |||
165 | @@ -609,6 +609,13 @@ | |||
166 | 609 | self->object->format(date, _u); | 609 | self->object->format(date, _u); |
167 | 610 | return PyUnicode_FromUnicodeString(&_u); | 610 | return PyUnicode_FromUnicodeString(&_u); |
168 | 611 | } | 611 | } |
169 | 612 | if (!parseArgs(args, "P", TYPE_ID(Calendar), &calendar)) | ||
170 | 613 | { | ||
171 | 614 | FieldPosition fp0(0); | ||
172 | 615 | |||
173 | 616 | self->object->format(*calendar, _u, fp0); | ||
174 | 617 | return PyUnicode_FromUnicodeString(&_u); | ||
175 | 618 | } | ||
176 | 612 | break; | 619 | break; |
177 | 613 | case 2: | 620 | case 2: |
178 | 614 | if (!parseArgs(args, "DP", TYPE_CLASSID(FieldPosition), | 621 | if (!parseArgs(args, "DP", TYPE_CLASSID(FieldPosition), |
179 | 615 | 622 | ||
180 | === modified file 'debian/changelog' | |||
181 | --- debian/changelog 2012-11-07 23:00:26 +0000 | |||
182 | +++ debian/changelog 2013-07-20 21:08:24 +0000 | |||
183 | @@ -1,3 +1,40 @@ | |||
184 | 1 | pyicu (1.5-2ubuntu1) saucy; urgency=low | ||
185 | 2 | |||
186 | 3 | * Resynchronise with Debian. | ||
187 | 4 | * Added transitional packages python3-pyicu[-dbg] to migrate | ||
188 | 5 | to python3-icu[-dbg] | ||
189 | 6 | |||
190 | 7 | -- B. Clausius <barcc@gmx.de> Sat, 20 Jul 2013 21:40:05 +0200 | ||
191 | 8 | |||
192 | 9 | pyicu (1.5-2) unstable; urgency=low | ||
193 | 10 | |||
194 | 11 | * Rename docs.py to icu_docs.py instead of removing it | ||
195 | 12 | as it's used in icu (closes: #714048) | ||
196 | 13 | |||
197 | 14 | -- Piotr Ożarowski <piotr@debian.org> Tue, 25 Jun 2013 19:22:34 +0200 | ||
198 | 15 | |||
199 | 16 | pyicu (1.5-1) unstable; urgency=low | ||
200 | 17 | |||
201 | 18 | * Team upload. | ||
202 | 19 | |||
203 | 20 | [ Jakub Wilk ] | ||
204 | 21 | * Use canonical URIs for Vcs-* fields. | ||
205 | 22 | |||
206 | 23 | [ Colin Watson ] | ||
207 | 24 | * Add Python 3 packages (closes: #671361). | ||
208 | 25 | * Drop manual cleaning of python-pyicu-dbg, since dh_python2 handles this. | ||
209 | 26 | |||
210 | 27 | [ Piotr Ożarowski ] | ||
211 | 28 | * New upstream release | ||
212 | 29 | * Convert patches from deprecated dpatch to quilt | ||
213 | 30 | * Debian source package format changed to 3.0 (quilt) | ||
214 | 31 | * Add fix_typo_in_deprecation_warning patch (closes: #589031) | ||
215 | 32 | * Remove docs.py file from binary packages (closes: #603717) | ||
216 | 33 | * Standards-Version bumped to 3.9.4: | ||
217 | 34 | - build-arch and build-indep targets added in debian/rules | ||
218 | 35 | |||
219 | 36 | -- Piotr Ożarowski <piotr@debian.org> Mon, 24 Jun 2013 22:20:56 +0200 | ||
220 | 37 | |||
221 | 1 | pyicu (1.4-1ubuntu3) raring; urgency=low | 38 | pyicu (1.4-1ubuntu3) raring; urgency=low |
222 | 2 | 39 | ||
223 | 3 | * Rebuild to drop python3.2 provides. | 40 | * Rebuild to drop python3.2 provides. |
224 | 4 | 41 | ||
225 | === modified file 'debian/control' | |||
226 | --- debian/control 2012-05-15 15:38:16 +0000 | |||
227 | +++ debian/control 2013-07-20 21:08:24 +0000 | |||
228 | @@ -4,12 +4,14 @@ | |||
229 | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
230 | 5 | XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> | 5 | XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> |
231 | 6 | Uploaders: Bernd Zeimetz <bzed@debian.org> | 6 | Uploaders: Bernd Zeimetz <bzed@debian.org> |
233 | 7 | Build-Depends: dpatch, debhelper (>= 5.0.37.3), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), python3-all-dev, python3-all-dbg, libicu-dev | 7 | Build-Depends: debhelper (>= 5.0.37.3), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), python3-all-dev, python3-all-dbg, libicu-dev, |
234 | 8 | # uncoment below line to run test_LayoutEngine at build time (once all Python versions will be supported by these packages) | ||
235 | 9 | # fonttools, python-numpy-dbg, python3-numpy-dbg | ||
236 | 8 | Build-Conflicts: python-pyicu | 10 | Build-Conflicts: python-pyicu |
239 | 9 | Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyicu/trunk/ | 11 | Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyicu/trunk/ |
240 | 10 | Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyicu/trunk/ | 12 | Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyicu/trunk/ |
241 | 11 | Homepage: http://pyicu.osafoundation.org/ | 13 | Homepage: http://pyicu.osafoundation.org/ |
243 | 12 | Standards-Version: 3.9.2 | 14 | Standards-Version: 3.9.4 |
244 | 13 | 15 | ||
245 | 14 | Package: python-pyicu | 16 | Package: python-pyicu |
246 | 15 | Architecture: any | 17 | Architecture: any |
247 | @@ -33,7 +35,7 @@ | |||
248 | 33 | . | 35 | . |
249 | 34 | This package contains the extension built for the Python debug interpreter. | 36 | This package contains the extension built for the Python debug interpreter. |
250 | 35 | 37 | ||
252 | 36 | Package: python3-pyicu | 38 | Package: python3-icu |
253 | 37 | Architecture: any | 39 | Architecture: any |
254 | 38 | Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} | 40 | Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} |
255 | 39 | Provides: ${python3:Provides} | 41 | Provides: ${python3:Provides} |
256 | @@ -42,11 +44,11 @@ | |||
257 | 42 | Unicode and locale support. This package provides an extension for | 44 | Unicode and locale support. This package provides an extension for |
258 | 43 | Python 3 which wraps the ICU C++ API. | 45 | Python 3 which wraps the ICU C++ API. |
259 | 44 | 46 | ||
261 | 45 | Package: python3-pyicu-dbg | 47 | Package: python3-icu-dbg |
262 | 46 | Section: debug | 48 | Section: debug |
263 | 47 | Architecture: any | 49 | Architecture: any |
264 | 48 | Priority: extra | 50 | Priority: extra |
266 | 49 | Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-pyicu (= ${binary:Version}), python3-dbg | 51 | Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-icu (= ${binary:Version}), python3-dbg |
267 | 50 | Provides: ${python3:Provides} | 52 | Provides: ${python3:Provides} |
268 | 51 | Description: Python 3 extension wrapping the ICU C++ API (debug extension) | 53 | Description: Python 3 extension wrapping the ICU C++ API (debug extension) |
269 | 52 | ICU is a C++ and C library that provides robust and full-featured | 54 | ICU is a C++ and C library that provides robust and full-featured |
270 | @@ -55,3 +57,20 @@ | |||
271 | 55 | . | 57 | . |
272 | 56 | This package contains the extension built for the Python 3 debug | 58 | This package contains the extension built for the Python 3 debug |
273 | 57 | interpreter. | 59 | interpreter. |
274 | 60 | |||
275 | 61 | Package: python3-pyicu | ||
276 | 62 | Section: oldlibs | ||
277 | 63 | Architecture: any | ||
278 | 64 | Depends: python3-icu (= ${binary:Version}) | ||
279 | 65 | Description: dummy transitional package for PyICU Python 3 extension | ||
280 | 66 | This is a transitional package to migrate to python3-icu. | ||
281 | 67 | Once no package depends on it, you may safely remove it. | ||
282 | 68 | |||
283 | 69 | Package: python3-pyicu-dbg | ||
284 | 70 | Section: oldlibs | ||
285 | 71 | Architecture: any | ||
286 | 72 | Priority: extra | ||
287 | 73 | Depends: python3-icu-dbg (= ${binary:Version}) | ||
288 | 74 | Description: dummy transitional package for PyICU Python 3 debug extension | ||
289 | 75 | This is a transitional package to migrate to python3-icu-dbg. | ||
290 | 76 | Once no package depends on it, you may safely remove it. | ||
291 | 58 | 77 | ||
292 | === removed file 'debian/patches/00dpatch.conf' | |||
293 | --- debian/patches/00dpatch.conf 2007-12-06 22:45:38 +0000 | |||
294 | +++ debian/patches/00dpatch.conf 1970-01-01 00:00:00 +0000 | |||
295 | @@ -1,2 +0,0 @@ | |||
296 | 1 | conf_debianonly=1 | ||
297 | 2 | conf_origtargzpath=../tarballs | ||
298 | 3 | 0 | ||
299 | === removed file 'debian/patches/00list' | |||
300 | --- debian/patches/00list 2012-06-21 11:32:38 +0000 | |||
301 | +++ debian/patches/00list 1970-01-01 00:00:00 +0000 | |||
302 | @@ -1,2 +0,0 @@ | |||
303 | 1 | no-setuptools-please | ||
304 | 2 | platform-definitions-fix | ||
305 | 3 | 0 | ||
306 | === added file 'debian/patches/fix_typo_in_deprecation_warning.patch' | |||
307 | --- debian/patches/fix_typo_in_deprecation_warning.patch 1970-01-01 00:00:00 +0000 | |||
308 | +++ debian/patches/fix_typo_in_deprecation_warning.patch 2013-07-20 21:08:24 +0000 | |||
309 | @@ -0,0 +1,13 @@ | |||
310 | 1 | Index: PyICU-1.5/PyICU.py | ||
311 | 2 | =================================================================== | ||
312 | 3 | --- PyICU-1.5.orig/PyICU.py | ||
313 | 4 | +++ PyICU-1.5/PyICU.py | ||
314 | 5 | @@ -23,7 +23,7 @@ | ||
315 | 6 | |||
316 | 7 | import warnings as _warnings | ||
317 | 8 | |||
318 | 9 | -_warnings.warn("Module 'PyICU' is deprecated, import 'icu' instead'", | ||
319 | 10 | +_warnings.warn("Module 'PyICU' is deprecated, import 'icu' instead", | ||
320 | 11 | category=DeprecationWarning, stacklevel=2) | ||
321 | 12 | |||
322 | 13 | from icu import * | ||
323 | 0 | 14 | ||
324 | === added file 'debian/patches/no-setuptools-please.diff' | |||
325 | --- debian/patches/no-setuptools-please.diff 1970-01-01 00:00:00 +0000 | |||
326 | +++ debian/patches/no-setuptools-please.diff 2013-07-20 21:08:24 +0000 | |||
327 | @@ -0,0 +1,22 @@ | |||
328 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
329 | 2 | ## no-setuptools-please.dpatch by Bernd Zeimetz <bzed@debian.org> | ||
330 | 3 | ## | ||
331 | 4 | ## DP: As usual - do not build with setuptools. | ||
332 | 5 | |||
333 | 6 | @DPATCH@ | ||
334 | 7 | Index: PyICU-1.5/setup.py | ||
335 | 8 | =================================================================== | ||
336 | 9 | --- PyICU-1.5.orig/setup.py | ||
337 | 10 | +++ PyICU-1.5/setup.py | ||
338 | 11 | @@ -1,10 +1,7 @@ | ||
339 | 12 | |||
340 | 13 | import os, sys | ||
341 | 14 | |||
342 | 15 | -try: | ||
343 | 16 | - from setuptools import setup, Extension | ||
344 | 17 | -except ImportError: | ||
345 | 18 | - from distutils.core import setup, Extension | ||
346 | 19 | +from distutils.core import setup, Extension | ||
347 | 20 | |||
348 | 21 | |||
349 | 22 | VERSION = '1.5' | ||
350 | 0 | 23 | ||
351 | === removed file 'debian/patches/no-setuptools-please.dpatch' | |||
352 | --- debian/patches/no-setuptools-please.dpatch 2007-12-06 22:45:38 +0000 | |||
353 | +++ debian/patches/no-setuptools-please.dpatch 1970-01-01 00:00:00 +0000 | |||
354 | @@ -1,21 +0,0 @@ | |||
355 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
356 | 2 | ## no-setuptools-please.dpatch by Bernd Zeimetz <bzed@debian.org> | ||
357 | 3 | ## | ||
358 | 4 | ## DP: As usual - do not build with setuptools. | ||
359 | 5 | |||
360 | 6 | @DPATCH@ | ||
361 | 7 | diff -urNad pyicu~/setup.py pyicu/setup.py | ||
362 | 8 | --- pyicu~/setup.py 2007-11-28 19:37:57.000000000 +0100 | ||
363 | 9 | +++ pyicu/setup.py 2007-12-05 14:21:57.000000000 +0100 | ||
364 | 10 | @@ -1,10 +1,7 @@ | ||
365 | 11 | |||
366 | 12 | import os, sys | ||
367 | 13 | |||
368 | 14 | -try: | ||
369 | 15 | - from setuptools import setup, Extension | ||
370 | 16 | -except ImportError: | ||
371 | 17 | - from distutils.core import setup, Extension | ||
372 | 18 | +from distutils.core import setup, Extension | ||
373 | 19 | |||
374 | 20 | |||
375 | 21 | VERSION = '0.8' | ||
376 | 22 | 0 | ||
377 | === added file 'debian/patches/platform-definitions-fix.diff' | |||
378 | --- debian/patches/platform-definitions-fix.diff 1970-01-01 00:00:00 +0000 | |||
379 | +++ debian/patches/platform-definitions-fix.diff 2013-07-20 21:08:24 +0000 | |||
380 | @@ -0,0 +1,20 @@ | |||
381 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
382 | 2 | ## platform-definitions-fix.dpatch by Jakub Wilk <jwilk@debian.org> | ||
383 | 3 | ## | ||
384 | 4 | ## DP: Fixing FTBFS due to new platform definitions. Setup.py doesn't need to | ||
385 | 5 | ## DP: take care of them in our case. | ||
386 | 6 | |||
387 | 7 | @DPATCH@ | ||
388 | 8 | Index: PyICU-1.5/setup.py | ||
389 | 9 | =================================================================== | ||
390 | 10 | --- PyICU-1.5.orig/setup.py | ||
391 | 11 | +++ PyICU-1.5/setup.py | ||
392 | 12 | @@ -48,7 +48,7 @@ LIBRARIES = { | ||
393 | 13 | } | ||
394 | 14 | |||
395 | 15 | platform = sys.platform | ||
396 | 16 | -if platform.startswith('linux'): | ||
397 | 17 | +if platform.startswith('linux') or platform.startswith('gnu'): | ||
398 | 18 | platform = 'linux' | ||
399 | 19 | |||
400 | 20 | if 'PYICU_INCLUDES' in os.environ: | ||
401 | 0 | 21 | ||
402 | === removed file 'debian/patches/platform-definitions-fix.dpatch' | |||
403 | --- debian/patches/platform-definitions-fix.dpatch 2012-05-10 22:59:17 +0000 | |||
404 | +++ debian/patches/platform-definitions-fix.dpatch 1970-01-01 00:00:00 +0000 | |||
405 | @@ -1,18 +0,0 @@ | |||
406 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
407 | 2 | ## platform-definitions-fix.dpatch by Jakub Wilk <jwilk@debian.org> | ||
408 | 3 | ## | ||
409 | 4 | ## DP: Fixing FTBFS due to new platform definitions. Setup.py doesn't need to | ||
410 | 5 | ## DP: take care of them in our case. | ||
411 | 6 | |||
412 | 7 | @DPATCH@ | ||
413 | 8 | --- pyicu-0.8.1/setup.py | ||
414 | 9 | +++ pyicu-0.8.1+kbsd/setup.py | ||
415 | 10 | @@ -42,7 +42,7 @@ | ||
416 | 11 | } | ||
417 | 12 | |||
418 | 13 | platform = sys.platform | ||
419 | 14 | -if platform.startswith('linux'): | ||
420 | 15 | +if platform.startswith('linux') or platform.startswith('gnu'): | ||
421 | 16 | platform = 'linux' | ||
422 | 17 | |||
423 | 18 | if 'PYICU_INCLUDES' in os.environ: | ||
424 | 19 | 0 | ||
425 | === added file 'debian/patches/rename_docs_module.patch' | |||
426 | --- debian/patches/rename_docs_module.patch 1970-01-01 00:00:00 +0000 | |||
427 | +++ debian/patches/rename_docs_module.patch 2013-07-20 21:08:24 +0000 | |||
428 | @@ -0,0 +1,10 @@ | |||
429 | 1 | Index: PyICU-1.5/icu.py | ||
430 | 2 | =================================================================== | ||
431 | 3 | --- PyICU-1.5.orig/icu.py | ||
432 | 4 | +++ PyICU-1.5/icu.py | ||
433 | 5 | @@ -34,4 +34,4 @@ class ICUError(Exception): | ||
434 | 6 | class InvalidArgsError(Exception): | ||
435 | 7 | pass | ||
436 | 8 | |||
437 | 9 | -from docs import * | ||
438 | 10 | +from icu_docs import * | ||
439 | 0 | 11 | ||
440 | === added file 'debian/patches/series' | |||
441 | --- debian/patches/series 1970-01-01 00:00:00 +0000 | |||
442 | +++ debian/patches/series 2013-07-20 21:08:24 +0000 | |||
443 | @@ -0,0 +1,4 @@ | |||
444 | 1 | no-setuptools-please.diff | ||
445 | 2 | platform-definitions-fix.diff | ||
446 | 3 | fix_typo_in_deprecation_warning.patch | ||
447 | 4 | rename_docs_module.patch | ||
448 | 0 | 5 | ||
449 | === modified file 'debian/rules' | |||
450 | --- debian/rules 2012-05-15 15:38:16 +0000 | |||
451 | +++ debian/rules 2013-07-20 21:08:24 +0000 | |||
452 | @@ -4,44 +4,42 @@ | |||
453 | 4 | #export DH_VERBOSE=1 | 4 | #export DH_VERBOSE=1 |
454 | 5 | 5 | ||
455 | 6 | PKGNAME:=python-pyicu | 6 | PKGNAME:=python-pyicu |
457 | 7 | PKG3NAME=python3-pyicu | 7 | PKG3NAME=python3-icu |
458 | 8 | PYVERS:=$(shell pyversions -vr) | 8 | PYVERS:=$(shell pyversions -vr) |
459 | 9 | PY3VERS:=$(shell py3versions -vr) | 9 | PY3VERS:=$(shell py3versions -vr) |
460 | 10 | 10 | ||
461 | 11 | -include /usr/share/python/python.mk | 11 | -include /usr/share/python/python.mk |
473 | 12 | ifeq (,$(py_sitename)) | 12 | |
474 | 13 | py_sitename = site-packages | 13 | |
475 | 14 | py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages | 14 | build: build-arch |
476 | 15 | py_sitename_sh = $(py_sitename) | 15 | build-indep: |
477 | 16 | py_libdir_sh = $(py_libdir) | 16 | # We have nothing to do by default. |
478 | 17 | endif | 17 | build-arch: build-stamp |
468 | 18 | |||
469 | 19 | |||
470 | 20 | include /usr/share/dpatch/dpatch.make | ||
471 | 21 | |||
472 | 22 | build: patch build-stamp | ||
479 | 23 | build-stamp: | 18 | build-stamp: |
480 | 24 | dh_testdir | 19 | dh_testdir |
482 | 25 | 20 | ||
483 | 26 | # setup.py modifies test source files when building for Python 3, so | 21 | # setup.py modifies test source files when building for Python 3, so |
484 | 27 | # build out of tree. | 22 | # build out of tree. |
490 | 28 | rm -rf build-py2 build-py3 | 23 | rm -rf build/py2 build/py3 |
491 | 29 | mkdir -p build-py2 build-py3 | 24 | mkdir -p build/py2 build/py3 |
492 | 30 | cp -a $(filter-out build-py2 build-py3 debian,$(wildcard *)) build-py2/ | 25 | cp -a $(filter-out build/py2 build/py3 debian,$(wildcard *)) build/py2/ |
493 | 31 | cp -a $(filter-out build-py2 build-py3 debian,$(wildcard *)) build-py3/ | 26 | cp -a $(filter-out build/py2 build/py3 debian,$(wildcard *)) build/py3/ |
494 | 32 | 27 | ||
495 | 33 | set -e; \ | 28 | set -e; \ |
496 | 34 | for py in $(PYVERS) $(PY3VERS); do \ | 29 | for py in $(PYVERS) $(PY3VERS); do \ |
498 | 35 | (cd build-py$${py%%.*}; \ | 30 | (cd build/py$${py%%.*}; \ |
499 | 36 | python$$py setup.py build; \ | 31 | python$$py setup.py build; \ |
500 | 37 | python$$py-dbg setup.py build); \ | 32 | python$$py-dbg setup.py build); \ |
501 | 38 | done | 33 | done |
502 | 34 | set -e; \ | ||
503 | 35 | for file in `find $(CURDIR)/build -type f -name docs.py`; do \ | ||
504 | 36 | mv "$$file" "`dirname $$file`/icu_docs.py"; done | ||
505 | 39 | 37 | ||
506 | 40 | ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) | 38 | ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
507 | 41 | set -ex ;\ | 39 | set -ex ;\ |
508 | 42 | for test in `ls test/*.py`; do \ | 40 | for test in `ls test/*.py`; do \ |
509 | 43 | for py in $(PYVERS) $(PY3VERS); do \ | 41 | for py in $(PYVERS) $(PY3VERS); do \ |
511 | 44 | (cd build-py$${py%%.*}; \ | 42 | (cd build/py$${py%%.*}; \ |
512 | 45 | PYTHONPATH=`ls -d $$(pwd)/build/lib.*-$$py` \ | 43 | PYTHONPATH=`ls -d $$(pwd)/build/lib.*-$$py` \ |
513 | 46 | python$$py $$test ;\ | 44 | python$$py $$test ;\ |
514 | 47 | PYTHONPATH=`ls -d $$(pwd)/build/lib_d.*-$$py || ls -d $$(pwd)/build/lib.*-$$py-pydebug` \ | 45 | PYTHONPATH=`ls -d $$(pwd)/build/lib_d.*-$$py || ls -d $$(pwd)/build/lib.*-$$py-pydebug` \ |
515 | @@ -52,14 +50,13 @@ | |||
516 | 52 | 50 | ||
517 | 53 | touch $@ | 51 | touch $@ |
518 | 54 | 52 | ||
521 | 55 | clean: clean-patched unpatch | 53 | clean: |
520 | 56 | clean-patched: patch-stamp | ||
522 | 57 | dh_testdir | 54 | dh_testdir |
523 | 58 | dh_testroot | 55 | dh_testroot |
524 | 59 | rm -f install-stamp build-stamp | 56 | rm -f install-stamp build-stamp |
525 | 60 | find . -name "*.pyc" -print0 | xargs -0 rm -f | 57 | find . -name "*.pyc" -print0 | xargs -0 rm -f |
526 | 61 | find . -name __pycache__ -print0 | xargs -0 rm -rf | 58 | find . -name __pycache__ -print0 | xargs -0 rm -rf |
528 | 62 | rm -rf build-py2 build-py3 | 59 | rm -rf build |
529 | 63 | dh_clean | 60 | dh_clean |
530 | 64 | 61 | ||
531 | 65 | install: install-stamp | 62 | install: install-stamp |
532 | @@ -70,24 +67,25 @@ | |||
533 | 70 | dh_installdirs | 67 | dh_installdirs |
534 | 71 | set -e; \ | 68 | set -e; \ |
535 | 72 | for py in $(PYVERS); do \ | 69 | for py in $(PYVERS); do \ |
537 | 73 | (cd build-py2; \ | 70 | (cd build/py2; \ |
538 | 74 | python$$py setup.py install --root=$(CURDIR)/debian/$(PKGNAME) --prefix=/usr $(py_setup_install_args) ;\ | 71 | python$$py setup.py install --root=$(CURDIR)/debian/$(PKGNAME) --prefix=/usr $(py_setup_install_args) ;\ |
539 | 75 | python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKGNAME)-dbg --prefix=/usr $(py_setup_install_args)) ;\ | 72 | python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKGNAME)-dbg --prefix=/usr $(py_setup_install_args)) ;\ |
540 | 76 | done | 73 | done |
541 | 74 | set -e; \ | ||
542 | 77 | for py in $(PY3VERS); do \ | 75 | for py in $(PY3VERS); do \ |
544 | 78 | (cd build-py3; \ | 76 | (cd build/py3; \ |
545 | 79 | python$$py setup.py install --root=$(CURDIR)/debian/$(PKG3NAME) --prefix=/usr $(py_setup_install_args) ;\ | 77 | python$$py setup.py install --root=$(CURDIR)/debian/$(PKG3NAME) --prefix=/usr $(py_setup_install_args) ;\ |
546 | 80 | python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKG3NAME)-dbg --prefix=/usr $(py_setup_install_args)) ;\ | 78 | python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKG3NAME)-dbg --prefix=/usr $(py_setup_install_args)) ;\ |
547 | 81 | done | 79 | done |
549 | 82 | 80 | ||
550 | 83 | dh_installdocs | 81 | dh_installdocs |
551 | 84 | dh_installexamples | 82 | dh_installexamples |
552 | 85 | touch install-stamp | 83 | touch install-stamp |
553 | 86 | 84 | ||
555 | 87 | binary-indep: build install | 85 | binary-indep: build-indep install |
556 | 88 | # We have nothing to do by default. | 86 | # We have nothing to do by default. |
557 | 89 | 87 | ||
559 | 90 | binary-arch: build install | 88 | binary-arch: build-arch install |
560 | 91 | dh_testdir | 89 | dh_testdir |
561 | 92 | dh_testroot | 90 | dh_testroot |
562 | 93 | dh_installchangelogs CHANGES | 91 | dh_installchangelogs CHANGES |
563 | @@ -108,6 +106,4 @@ | |||
564 | 108 | dh_builddeb | 106 | dh_builddeb |
565 | 109 | 107 | ||
566 | 110 | binary: binary-indep binary-arch | 108 | binary: binary-indep binary-arch |
570 | 111 | .PHONY: build clean binary-indep binary-arch binary install \ | 109 | .PHONY: build clean binary-indep binary-arch binary install |
568 | 112 | clean-patched patch unpatch | ||
569 | 113 | |||
571 | 114 | 110 | ||
572 | === modified file 'debian/source/format' | |||
573 | --- debian/source/format 2010-06-22 20:59:32 +0000 | |||
574 | +++ debian/source/format 2013-07-20 21:08:24 +0000 | |||
575 | @@ -1,1 +1,1 @@ | |||
577 | 1 | 1.0 | 1 | 3.0 (quilt) |
578 | 2 | 2 | ||
579 | === modified file 'format.cpp' | |||
580 | --- format.cpp 2011-11-13 12:07:46 +0000 | |||
581 | +++ format.cpp 2013-07-20 21:08:24 +0000 | |||
582 | @@ -971,7 +971,7 @@ | |||
583 | 971 | Formattable *f; | 971 | Formattable *f; |
584 | 972 | UnicodeString *u, _u; | 972 | UnicodeString *u, _u; |
585 | 973 | FieldPosition *fp, _fp; | 973 | FieldPosition *fp, _fp; |
587 | 974 | int len; | 974 | int len, u_len; |
588 | 975 | 975 | ||
589 | 976 | switch (PyTuple_Size(args)) { | 976 | switch (PyTuple_Size(args)) { |
590 | 977 | case 1: | 977 | case 1: |
591 | @@ -988,6 +988,7 @@ | |||
592 | 988 | return PyUnicode_FromUnicodeString(&_u); | 988 | return PyUnicode_FromUnicodeString(&_u); |
593 | 989 | } | 989 | } |
594 | 990 | break; | 990 | break; |
595 | 991 | |||
596 | 991 | case 2: | 992 | case 2: |
597 | 992 | if (!parseArgs(args, "RP", | 993 | if (!parseArgs(args, "RP", |
598 | 993 | TYPE_CLASSID(Formattable), | 994 | TYPE_CLASSID(Formattable), |
599 | @@ -1003,7 +1004,6 @@ | |||
600 | 1003 | 1004 | ||
601 | 1004 | return PyUnicode_FromUnicodeString(&_u); | 1005 | return PyUnicode_FromUnicodeString(&_u); |
602 | 1005 | } | 1006 | } |
603 | 1006 | break; | ||
604 | 1007 | if (!parseArgs(args, "RU", TYPE_CLASSID(Formattable), | 1007 | if (!parseArgs(args, "RU", TYPE_CLASSID(Formattable), |
605 | 1008 | &f, &len, TYPE_CLASSID(Formattable), | 1008 | &f, &len, TYPE_CLASSID(Formattable), |
606 | 1009 | toFormattableArray, &u)) | 1009 | toFormattableArray, &u)) |
607 | @@ -1016,9 +1016,27 @@ | |||
608 | 1016 | 1016 | ||
609 | 1017 | Py_RETURN_ARG(args, 1); | 1017 | Py_RETURN_ARG(args, 1); |
610 | 1018 | } | 1018 | } |
611 | 1019 | #if U_ICU_VERSION_HEX >= VERSION_HEX(4, 0, 0) | ||
612 | 1020 | if (!parseArgs(args, "TR", | ||
613 | 1021 | TYPE_CLASSID(Formattable), | ||
614 | 1022 | &u, &u_len, | ||
615 | 1023 | &f, &len, TYPE_CLASSID(Formattable), toFormattableArray)) | ||
616 | 1024 | { | ||
617 | 1025 | STATUS_CALL( | ||
618 | 1026 | { | ||
619 | 1027 | self->object->format(u, f, len < u_len ? len : u_len, | ||
620 | 1028 | _u, status); | ||
621 | 1029 | delete[] u; | ||
622 | 1030 | delete[] f; | ||
623 | 1031 | }); | ||
624 | 1032 | |||
625 | 1033 | return PyUnicode_FromUnicodeString(&_u); | ||
626 | 1034 | } | ||
627 | 1035 | #endif | ||
628 | 1019 | break; | 1036 | break; |
629 | 1037 | |||
630 | 1020 | case 3: | 1038 | case 3: |
632 | 1021 | if (!parseArgs(args, "RUP", | 1039 | if (!parseArgs(args, "RUP", |
633 | 1022 | TYPE_CLASSID(Formattable), | 1040 | TYPE_CLASSID(Formattable), |
634 | 1023 | TYPE_CLASSID(FieldPosition), | 1041 | TYPE_CLASSID(FieldPosition), |
635 | 1024 | &f, &len, TYPE_CLASSID(Formattable), | 1042 | &f, &len, TYPE_CLASSID(Formattable), |
636 | 1025 | 1043 | ||
637 | === modified file 'layoutengine.cpp' | |||
638 | --- layoutengine.cpp 2012-05-10 22:59:17 +0000 | |||
639 | +++ layoutengine.cpp 2013-07-20 21:08:24 +0000 | |||
640 | @@ -218,6 +218,16 @@ | |||
641 | 218 | return 0; | 218 | return 0; |
642 | 219 | } | 219 | } |
643 | 220 | 220 | ||
644 | 221 | virtual LEGlyphID mapCharToGlyph(LEUnicode32 u, | ||
645 | 222 | const LECharMapper *mapper) const { | ||
646 | 223 | return LEFontInstance::mapCharToGlyph(u, mapper); | ||
647 | 224 | } | ||
648 | 225 | |||
649 | 226 | virtual LEGlyphID mapCharToGlyph(LEUnicode32 u, const LECharMapper *mapper, | ||
650 | 227 | le_bool filterZeroWidth) const { | ||
651 | 228 | return LEFontInstance::mapCharToGlyph(u, mapper, filterZeroWidth); | ||
652 | 229 | } | ||
653 | 230 | |||
654 | 221 | virtual void getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const | 231 | virtual void getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const |
655 | 222 | { | 232 | { |
656 | 223 | PyObject *name = PyString_FromString("getGlyphAdvance"); | 233 | PyObject *name = PyString_FromString("getGlyphAdvance"); |
657 | @@ -706,7 +716,7 @@ | |||
658 | 706 | INSTALL_ENUM(ScriptCode, "sind", sindScriptCode); | 716 | INSTALL_ENUM(ScriptCode, "sind", sindScriptCode); |
659 | 707 | INSTALL_ENUM(ScriptCode, "wara", waraScriptCode); | 717 | INSTALL_ENUM(ScriptCode, "wara", waraScriptCode); |
660 | 708 | 718 | ||
662 | 709 | #if U_ICU_VERSION_HEX >= 0x31000000 | 719 | #if U_ICU_VERSION_HEX >= VERSION_HEX(49, 0, 0) |
663 | 710 | INSTALL_ENUM(ScriptCode, "afak", afakScriptCode); | 720 | INSTALL_ENUM(ScriptCode, "afak", afakScriptCode); |
664 | 711 | INSTALL_ENUM(ScriptCode, "jurc", jurcScriptCode); | 721 | INSTALL_ENUM(ScriptCode, "jurc", jurcScriptCode); |
665 | 712 | INSTALL_ENUM(ScriptCode, "khoj", khojScriptCode); | 722 | INSTALL_ENUM(ScriptCode, "khoj", khojScriptCode); |
666 | 713 | 723 | ||
667 | === modified file 'numberformat.cpp' | |||
668 | --- numberformat.cpp 2012-05-10 22:59:17 +0000 | |||
669 | +++ numberformat.cpp 2013-07-20 21:08:24 +0000 | |||
670 | @@ -670,7 +670,7 @@ | |||
671 | 670 | return PyErr_SetArgsError((PyObject *) self, "parse", args); | 670 | return PyErr_SetArgsError((PyObject *) self, "parse", args); |
672 | 671 | } | 671 | } |
673 | 672 | 672 | ||
675 | 673 | #if U_ICU_VERSION_HEX < 0x31000000 /* < 49.0 */ | 673 | #if U_ICU_VERSION_HEX < VERSION_HEX(49, 0, 0) |
676 | 674 | static PyObject *t_numberformat_parseCurrency(t_numberformat *self, | 674 | static PyObject *t_numberformat_parseCurrency(t_numberformat *self, |
677 | 675 | PyObject *args) | 675 | PyObject *args) |
678 | 676 | { | 676 | { |
679 | 677 | 677 | ||
680 | === modified file 'setup.py' | |||
681 | --- setup.py 2012-05-10 22:59:17 +0000 | |||
682 | +++ setup.py 2013-07-20 21:08:24 +0000 | |||
683 | @@ -7,7 +7,7 @@ | |||
684 | 7 | from distutils.core import setup, Extension | 7 | from distutils.core import setup, Extension |
685 | 8 | 8 | ||
686 | 9 | 9 | ||
688 | 10 | VERSION = '1.4' | 10 | VERSION = '1.5' |
689 | 11 | 11 | ||
690 | 12 | INCLUDES = { | 12 | INCLUDES = { |
691 | 13 | 'darwin': ['/usr/local/include'], | 13 | 'darwin': ['/usr/local/include'], |
692 | @@ -88,6 +88,18 @@ | |||
693 | 88 | test_suite="test", | 88 | test_suite="test", |
694 | 89 | url='http://pyicu.osafoundation.org/', | 89 | url='http://pyicu.osafoundation.org/', |
695 | 90 | author='Open Source Applications Foundation', | 90 | author='Open Source Applications Foundation', |
696 | 91 | author_email='vajda@osafoundation.org', | ||
697 | 92 | classifiers=['Development Status :: 5 - Production/Stable', | ||
698 | 93 | 'Environment :: Console', | ||
699 | 94 | 'Intended Audience :: Developers', | ||
700 | 95 | 'License :: OSI Approved', | ||
701 | 96 | 'Operating System :: OS Independent', | ||
702 | 97 | 'Programming Language :: C++', | ||
703 | 98 | 'Programming Language :: Python', | ||
704 | 99 | 'Programming Language :: Python :: 2', | ||
705 | 100 | 'Programming Language :: Python :: 3', | ||
706 | 101 | 'Topic :: Software Development :: Localization', | ||
707 | 102 | 'Topic :: Software Development :: Internationalization'], | ||
708 | 91 | ext_modules=[Extension('_icu', | 103 | ext_modules=[Extension('_icu', |
709 | 92 | [filename for filename in os.listdir(os.curdir) | 104 | [filename for filename in os.listdir(os.curdir) |
710 | 93 | if filename.endswith('.cpp')], | 105 | if filename.endswith('.cpp')], |
711 | 94 | 106 | ||
712 | === removed file 'test/._lohit_hi.ttf' | |||
713 | 95 | Binary files test/._lohit_hi.ttf 2011-11-13 12:07:46 +0000 and test/._lohit_hi.ttf 1970-01-01 00:00:00 +0000 differ | 107 | Binary files test/._lohit_hi.ttf 2011-11-13 12:07:46 +0000 and test/._lohit_hi.ttf 1970-01-01 00:00:00 +0000 differ |
714 | === modified file 'test/test_Collator.py' | |||
715 | --- test/test_Collator.py 2012-05-10 22:59:17 +0000 | |||
716 | +++ test/test_Collator.py 2013-07-20 21:08:24 +0000 | |||
717 | @@ -65,31 +65,34 @@ | |||
718 | 65 | 65 | ||
719 | 66 | def testGetSortKey(self): | 66 | def testGetSortKey(self): |
720 | 67 | 67 | ||
723 | 68 | rules = UnicodeString(""); | 68 | # Do not test sort key byte sequences directly: |
724 | 69 | collator = RuleBasedCollator(rules) | 69 | # They are unstable, that is, likely to change |
725 | 70 | # with every UCA/CLDR/ICU release. | ||
726 | 71 | # Instead, test that compare() is consistent with | ||
727 | 72 | # comparing the equivalent sort keys. | ||
728 | 73 | collator = Collator.createInstance(Locale.getJapanese()) | ||
729 | 70 | collator.setAttribute(UCollAttribute.NORMALIZATION_MODE, | 74 | collator.setAttribute(UCollAttribute.NORMALIZATION_MODE, |
730 | 71 | UCollAttributeValue.ON) | 75 | UCollAttributeValue.ON) |
731 | 72 | collator.setAttribute(UCollAttribute.ALTERNATE_HANDLING, | 76 | collator.setAttribute(UCollAttribute.ALTERNATE_HANDLING, |
732 | 73 | UCollAttributeValue.SHIFTED) | 77 | UCollAttributeValue.SHIFTED) |
733 | 74 | collator.setAttribute(UCollAttribute.STRENGTH, | 78 | collator.setAttribute(UCollAttribute.STRENGTH, |
734 | 79 | UCollAttributeValue.TERTIARY) | ||
735 | 80 | |||
736 | 81 | # In Japanese, the following characters should be different | ||
737 | 82 | # only on quaternary level. | ||
738 | 83 | hira_ge = u'\u3052' # Hiragana letter Ge | ||
739 | 84 | kana_ge = u'\u30B2' # Katakana letter Ge | ||
740 | 85 | self.assertEqual(0, collator.compare(hira_ge, kana_ge)) | ||
741 | 86 | hira_ge_key = collator.getSortKey(hira_ge) | ||
742 | 87 | kana_ge_key = collator.getSortKey(kana_ge) | ||
743 | 88 | self.assertEqual(hira_ge_key, kana_ge_key) | ||
744 | 89 | |||
745 | 90 | collator.setAttribute(UCollAttribute.STRENGTH, | ||
746 | 75 | UCollAttributeValue.QUATERNARY) | 91 | UCollAttributeValue.QUATERNARY) |
764 | 76 | collator.setAttribute(UCollAttribute.HIRAGANA_QUATERNARY_MODE, | 92 | self.assertEqual(-1, collator.compare(hira_ge, kana_ge)) |
765 | 77 | UCollAttributeValue.ON) | 93 | hira_ge_key = collator.getSortKey(hira_ge) |
766 | 78 | s = u'\u3052' | 94 | kana_ge_key = collator.getSortKey(kana_ge) |
767 | 79 | k = collator.getSortKey(s) | 95 | self.assertLess(hira_ge_key, kana_ge_key) |
751 | 80 | if (sys.version_info >= (3,)): | ||
752 | 81 | byte2int = lambda c: c | ||
753 | 82 | else: | ||
754 | 83 | byte2int = ord | ||
755 | 84 | |||
756 | 85 | if ICU_VERSION < '4.6': | ||
757 | 86 | key = "AC300186DC9D019B0501282800" | ||
758 | 87 | elif ICU_VERSION < '49.0': | ||
759 | 88 | key = "791C0186DCFD019B05010D0D00" | ||
760 | 89 | else: | ||
761 | 90 | key = "791C0186DA95019B05010D0D00" | ||
762 | 91 | |||
763 | 92 | self.assertTrue(key == ''.join(['%02X' %(byte2int(c)) for c in k])) | ||
768 | 93 | 96 | ||
769 | 94 | def setupCollator(self, collator): | 97 | def setupCollator(self, collator): |
770 | 95 | 98 | ||
771 | 96 | 99 | ||
772 | === modified file 'test/test_MessageFormat.py' | |||
773 | --- test/test_MessageFormat.py 2011-11-13 12:07:46 +0000 | |||
774 | +++ test/test_MessageFormat.py 2013-07-20 21:08:24 +0000 | |||
775 | @@ -88,6 +88,23 @@ | |||
776 | 88 | 88 | ||
777 | 89 | self.assertTrue(msgFormat.format(args) == u"Kirti est allée à Paris.") | 89 | self.assertTrue(msgFormat.format(args) == u"Kirti est allée à Paris.") |
778 | 90 | 90 | ||
779 | 91 | def testNamedArgs(self): | ||
780 | 92 | |||
781 | 93 | if ICU_VERSION >= '4.0': | ||
782 | 94 | msg = \ | ||
783 | 95 | '{num_emails_to_send, plural, ' \ | ||
784 | 96 | '=0 {unused plural form} ' \ | ||
785 | 97 | '=1 {One email will be sent.} ' \ | ||
786 | 98 | 'other {# emails will be sent.}}' | ||
787 | 99 | |||
788 | 100 | messageFormat = MessageFormat(msg, Locale("en")) | ||
789 | 101 | |||
790 | 102 | name0 = "num_emails_to_send" | ||
791 | 103 | arg0 = Formattable(5) | ||
792 | 104 | |||
793 | 105 | result = messageFormat.format([name0], [arg0]) | ||
794 | 106 | self.assertTrue(result == u'5 emails will be sent.') | ||
795 | 107 | |||
796 | 91 | 108 | ||
797 | 92 | if __name__ == "__main__": | 109 | if __name__ == "__main__": |
798 | 93 | main() | 110 | main() |
799 | 94 | 111 | ||
800 | === modified file 'transliterator.cpp' | |||
801 | --- transliterator.cpp 2012-05-10 22:59:17 +0000 | |||
802 | +++ transliterator.cpp 2013-07-20 21:08:24 +0000 | |||
803 | @@ -472,7 +472,7 @@ | |||
804 | 472 | { | 472 | { |
805 | 473 | UnicodeString *u, _u; | 473 | UnicodeString *u, _u; |
806 | 474 | t_utransposition *utransposition; | 474 | t_utransposition *utransposition; |
808 | 475 | UBool incremental; | 475 | int incremental; |
809 | 476 | 476 | ||
810 | 477 | if (!parseArgs(args, "UOB", &UTransPositionType, &u, &utransposition, | 477 | if (!parseArgs(args, "UOB", &UTransPositionType, &u, &utransposition, |
811 | 478 | &incremental)) | 478 | &incremental)) |
Thanks! Uploaded.