commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2024-06-17 19:27:06 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.19518 (New) Package is "python-PyICU" Mon Jun 17 19:27:06 2024 rev:19 rq:1180849 version:2.13.1 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2023-12-19 23:15:28.580755434 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.19518/python-PyICU.changes 2024-06-17 19:27:25.757721712 +0200 @@ -1,0 +2,18 @@ +Fri Jun 14 08:14:34 UTC 2024 - Daniel Garcia + +- Update to 2.13.1: + - change c++11 to c++17 in setup.py as current versions of ICU require it +- 2.13 + - fixed build issues on Windows + - added wrappers for MeasureUnit(locale, width) and getUnitDisplayName() + - added wrappers for DateFormatSymbols.getEra|ZodiacNames() + - added wrappers for DateFormatSymbols.getZoneStrings() + - added wrappers for LocaleDisplayNames + - fixed bug dealloc calling wrong destructor on most types (Fredrik Roubert) + - added support for ICU 75.1 + - added wrappers for LocalizedNumber|Range|Formatter.withoutLocale() + - added wrappers for UIdentifierType, Char.hasIDType(), Char.getIDTypes() + - added wrappers for UIdentifierStatus + - added wrappers for UProperty.IDENTIFIER_TYPE, UProperty.IDENTIFIER_STATUS + +--- Old: PyICU-2.12.tar.gz New: PyICU-2.13.1.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.iTMCIk/_old 2024-06-17 19:27:28.689828497 +0200 +++ /var/tmp/diff_new_pack.iTMCIk/_new 2024-06-17 19:27:28.701828934 +0200 @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-PyICU # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} %global modname PyICU Name: python-%{modname} -Version:2.12 +Version:2.13.1 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT @@ -50,7 +50,7 @@ library (ICU). %prep -%autosetup -p1 -n %{modname}-%{version} +%autosetup -p1 -n pyicu-%{version} %build export CXXFLAGS="%{optflags} -fno-strict-aliasing" ++ PyICU-2.12.tar.gz -> PyICU-2.13.1.tar.gz ++ 1985 lines of diff (skipped) ++ remove_six.patch ++ --- /var/tmp/diff_new_pack.iTMCIk/_old 2024-06-17 19:27:29.629862732 +0200 +++ /var/tmp/diff_new_pack.iTMCIk/_new 2024-06-17 19:27:29.665864043 +0200 @@ -14,8 +14,10 @@ test/test_UCharsTrie.py|2 +- 13 files changed, 27 insertions(+), 28 deletions(-) a/setup.py -+++ b/setup.py +Index: pyicu-2.13.1/setup.py +=== +--- pyicu-2.13.1.orig/setup.py pyicu-2.13.1/setup.py @@ -1,4 +1,3 @@ - import os, sys @@ -28,7 +30,7 @@ -Please install pkg-config on your system or set the PYICU_CFLAGS environment +Please install pkg-config on your system or set the PYICU_CFLAGS environment variable to the flags required by the C++ compiler to find the header files - for ICU, and possibly -std=c++11 if using ICU version >= 60 + for ICU, and possibly -std=c++11 if using ICU version >= 60 or -std=c++17 if using ICU version >= 75 ''') @@ -234,7 +233,7 @@ else: Please install pkg-config on your system or set the PYICU_LFLAGS environment @@ -45,8 +47,10 @@ packages=['icu'], - tests_require=['pytest', 'six']) + tests_require=['pytest']) a/test/test_BytesTrie.py -+++ b/test/test_BytesTrie.py +Index: pyicu-2.13.1/test/test_BytesTrie.py +=== +--- pyicu-2.13.1.orig/test/test_BytesTrie.py pyicu-2.13.1/test/test_BytesTrie.py @@ -21,7 +21,7 @@ # DEALINGS IN THE SOFTWARE. # @@ -56,8 +60,10 @@ from unittest import TestCase, main from icu import * a/test/test_Charset.py -+++ b/test/test_Charset.py +Index: pyicu-2.13.1/test/test_Charset.py +=== +--- pyicu-2.13.1.orig/test/test_Charset.py pyicu-2.13.1/test/test_Charset.py @@ -21,7 +21,7 @@ # # @@ -76,8 +82,10 @@ self.assertTrue(ustring.encode('iso-8859-1') == bytes) a/test/test_Collator.py -+++ b/test/test_Collator.py
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2023-06-30 19:58:07 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.13546 (New) Package is "python-PyICU" Fri Jun 30 19:58:07 2023 rev:17 rq:1095995 version:2.11 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2023-06-27 23:15:39.935038134 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.13546/python-PyICU.changes 2023-06-30 19:58:16.857432457 +0200 @@ -1,0 +2,6 @@ +Thu Jun 29 07:13:31 UTC 2023 - Andreas Schneider + +- Disable testTransition on Leap +- Fix position of sle15_python_module_pythons + +--- Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.i7Jxsf/_old 2023-06-30 19:58:18.381441522 +0200 +++ /var/tmp/diff_new_pack.i7Jxsf/_new 2023-06-30 19:58:18.401441641 +0200 @@ -16,6 +16,7 @@ # +%{?sle15_python_module_pythons} %global modname PyICU Name: python-%{modname} Version:2.11 @@ -41,7 +42,6 @@ Provides: %{modname} = %{version} Provides: python-ICU = %{version} Obsoletes: python-ICU < 1.2 -%{?sle15_python_module_pythons} %python_subpackages %description @@ -61,7 +61,12 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check +%if 0%{?sle_version} && 0%{?sle_version} <= 150500 +# The timezone package is not up to date +%pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP or testTransition)' -rs test +%else %pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP)' -rs test +%endif %files %{python_files} %license LICENSE
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2023-06-27 23:15:38 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.15902 (New) Package is "python-PyICU" Tue Jun 27 23:15:38 2023 rev:16 rq:1095261 version:2.11 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2022-10-28 19:29:47.482709876 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.15902/python-PyICU.changes 2023-06-27 23:15:39.935038134 +0200 @@ -1,0 +2,21 @@ +Sun Jun 25 19:30:35 UTC 2023 - Matej Cepl + +- Clean up SPEC file. +- Add remove_six.patch which removes the need to use six. + +--- +Sun Jun 25 07:21:50 UTC 2023 - Andreas Schneider + +- Update to version 2.11 + * fixed bug PluralFormat.format accepting python strings, which are immutable + * fixed bug with UWordBreak wrapping wrong enum (UBreakIteratorType) + * added wrappers for UBreakIteratorType, ULine|SentenceBreakTag + * added wrappers for DateTimePatternGenerator::set|getDateTimeFormat() + * added wrappers for Precision::incrementExact() + * Locale objects can now be sorted (Fredrik Roubert) + * added wrapper for Calendar::inTemporalLeapYear() + * added wrappers for Calendar::get|getTemporalMonthCode() + * changed all Calendar setters to return self instead of None, setter chaining +- Use sle15_python_module_pythons + +--- Old: PyICU-2.10.2.tar.gz New: PyICU-2.11.tar.gz remove_six.patch Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.KjLSR6/_old 2023-06-27 23:15:40.727042794 +0200 +++ /var/tmp/diff_new_pack.KjLSR6/_new 2023-06-27 23:15:40.731042818 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.10.2 +Version:2.11 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT Group: Development/Libraries/Python URL:https://gitlab.pyicu.org -Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/P/PyICU/PyICU-2.11.tar.gz +# PATCH-FEATURE-UPSTREAM remove_six.patch mc...@suse.com +# Remove dependency on six +Patch0: remove_six.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -39,6 +41,7 @@ Provides: %{modname} = %{version} Provides: python-ICU = %{version} Obsoletes: python-ICU < 1.2 +%{?sle15_python_module_pythons} %python_subpackages %description @@ -46,15 +49,15 @@ library (ICU). %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} %build export CXXFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -63,6 +66,7 @@ %files %{python_files} %license LICENSE %doc CHANGES CREDITS README.md -%{python_sitearch}/* +%{python_sitearch}/icu +%{python_sitearch}/PyICU-%{version}*-info %changelog ++ PyICU-2.10.2.tar.gz -> PyICU-2.11.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyICU-2.10.2/CHANGES new/PyICU-2.11/CHANGES --- old/PyICU-2.10.2/CHANGES2022-10-25 19:54:35.0 +0200 +++ new/PyICU-2.11/CHANGES 2023-04-15 21:29:49.0 +0200 @@ -1,3 +1,15 @@ +Version 2.10.2 -> 2.11 +-- + - fixed bug PluralFormat.format accepting python strings, which are immutable + - fixed bug with UWordBreak wrapping wrong enum (UBreakIteratorType) + - added wrappers for UBreakIteratorType, ULine|SentenceBreakTag + - added wrappers for DateTimePatternGenerator::set|getDateTimeFormat() + - added wrappers for Precision::incrementExact() + - Locale objects can now be sorted (Fredrik Roubert) +
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2022-10-28 19:29:27 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.2275 (New) Package is "python-PyICU" Fri Oct 28 19:29:27 2022 rev:15 rq:1031560 version:2.10.2 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2022-04-16 00:12:41.941524903 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.2275/python-PyICU.changes 2022-10-28 19:29:47.482709876 +0200 @@ -1,0 +2,8 @@ +Thu Oct 27 10:57:22 UTC 2022 - Mark??ta Machov?? + +- update to version 2.10.2 + * added support for ICU 72.1 + * fixed bug in logic computing max_char for PyUnicode_New() + * added some wrappers + +--- Old: PyICU-2.9.tar.gz New: PyICU-2.10.2.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.tATh1H/_old 2022-10-28 19:29:47.954712243 +0200 +++ /var/tmp/diff_new_pack.tATh1H/_new 2022-10-28 19:29:47.962712283 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.9 +Version:2.10.2 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT ++ PyICU-2.9.tar.gz -> PyICU-2.10.2.tar.gz ++ 2101 lines of diff (skipped)
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2022-04-16 00:12:41 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1941 (New) Package is "python-PyICU" Sat Apr 16 00:12:41 2022 rev:14 rq:969908 version:2.9 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2021-11-13 22:48:38.817255529 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1941/python-PyICU.changes 2022-04-16 00:12:41.941524903 +0200 @@ -1,0 +2,12 @@ +Wed Apr 13 14:40:40 UTC 2022 - Callum Farmer + +- update to version 2.9: + - deleted long deprecated PyICU.py file + - moved icu python module sources into py directory + - renamed _icu extension module to _icu_ and moved it into icu module + - added UNumberTrailingZeroDisplay, Precision.trailingZeroDisplay() + - added UNumberRoundingPriority, FractionPrecision.withSignificantDigits() + - added wrappers for UMeasurePrefix, MeasureUnit.withPrefix()|getPrefix() + - added support for ICU 71.1 + +--- Old: PyICU-2.8.tar.gz New: PyICU-2.9.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.Vvq3Tr/_old 2022-04-16 00:12:43.521527013 +0200 +++ /var/tmp/diff_new_pack.Vvq3Tr/_new 2022-04-16 00:12:43.525527019 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.8 +Version:2.9 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT ++ PyICU-2.8.tar.gz -> PyICU-2.9.tar.gz ++ 2069 lines of diff (skipped)
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2021-11-13 22:48:22 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1890 (New) Package is "python-PyICU" Sat Nov 13 22:48:22 2021 rev:13 rq:930994 version:2.8 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2021-11-10 21:45:59.931799705 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1890/python-PyICU.changes 2021-11-13 22:48:38.817255529 +0100 @@ -1,0 +2,10 @@ +Thu Nov 11 15:44:28 UTC 2021 - Callum Farmer + +- updated to version 2.8: + - fixed test failure in test_DateTimeParserGenerator.py with version 70.1rc + - added wrappers for UCurrNameStyle and for ucurr_getName() onto CurrencyUnit + - added support for ICU 70.1 + - added FieldPosition-less overloads to RuleBasedNumberFormat.format() + - added pyproject.toml file to (also) build via python -m build + +--- Old: PyICU-2.7.4.tar.gz New: PyICU-2.8.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.hZnL3N/_old 2021-11-13 22:48:39.245255857 +0100 +++ /var/tmp/diff_new_pack.hZnL3N/_new 2021-11-13 22:48:39.249255860 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.7.4 +Version:2.8 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT ++ PyICU-2.7.4.tar.gz -> PyICU-2.8.tar.gz ++ 2172 lines of diff (skipped)
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2021-11-10 21:45:54 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1890 (New) Package is "python-PyICU" Wed Nov 10 21:45:54 2021 rev:12 rq:930138 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2021-08-19 13:06:39.839982320 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1890/python-PyICU.changes 2021-11-10 21:45:59.931799705 +0100 @@ -1,0 +2,5 @@ +Mon Nov 8 10:34:34 UTC 2021 - Dirk M??ller + +- add missing six declaration for testsuite + +--- Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.SfBP47/_old 2021-11-10 21:46:00.59172 +0100 +++ /var/tmp/diff_new_pack.SfBP47/_new 2021-11-10 21:46:00.59573 +0100 @@ -29,6 +29,7 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2021-08-19 13:06:36 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1899 (New) Package is "python-PyICU" Thu Aug 19 13:06:36 2021 rev:11 rq:912371 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2021-08-16 10:13:12.886983839 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1899/python-PyICU.changes 2021-08-19 13:06:39.839982320 +0200 @@ -1,0 +2,5 @@ +Mon Aug 16 07:51:00 UTC 2021 - Axel Braun + +- %pytest_arch added to fix Leap test issues + +--- Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.i1j72p/_old 2021-08-19 13:06:40.427981508 +0200 +++ /var/tmp/diff_new_pack.i1j72p/_new 2021-08-19 13:06:40.431981503 +0200 @@ -24,7 +24,7 @@ Summary:Python Extension Wrapping the ICU C++ API License:MIT Group: Development/Libraries/Python -URL:https://github.com/ovalhub/pyicu +URL:https://gitlab.pyicu.org Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} @@ -57,8 +57,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# Running test on python3 only due to pyicu issue 61 -python3 setup.py test +%pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP)' -rs test %files %{python_files} %license LICENSE
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2021-08-16 10:08:40 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1899 (New) Package is "python-PyICU" Mon Aug 16 10:08:40 2021 rev:10 rq:912187 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2021-04-29 22:44:57.276151153 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1899/python-PyICU.changes 2021-08-16 10:13:12.886983839 +0200 @@ -1,0 +2,22 @@ +Fri Aug 13 17:36:21 UTC 2021 - Axel Braun + +- 2.7.4 + - added wrappers for UWordBreak and BreakIterator.getRuleStatusVec() + - added wrappers for MessagePattern (Roman Kalukiewicz) + - added wrapper for Collator::getKeywordValuesForLocale + - added wrappers for LocaleMatcher.acceptLanguage|FromHTTP() + - worked around limitation of Visual Studio 2017 (cgohlke) + - added missing test and samples files to distribution (foutrelis) + - added some tests for TimeZone classes + - fixed bug w/FormattedNumberRange.getFirst|SecondDecimal() gone w/ ICU 68.1+ + - fixed bug with VTimeZone.write() wrapper invoking VTimeZone.writeSimple() + - added wrapper for Locale.canonicalize() + - added wrappers for MeasureUnit.product(), reciprocal(), getDimensionality() + - added wrapper for MeasureUnit.forIdentifier() + - implemented *, /, **, 1/m for MeasureUnit in terms of product and reciprocal + - added wrappers for BasicTimeZone, RuleBasedTimeZone, VTimeZone + - added wrappers for TimeZoneTransition, TimeZoneRule and its subclasses + - added wrappers for DateTimeRule, DateRuleType, TimeRuleType + - added support for ICU 69.1 (support-icu-69.patch reomoved) + +--- Old: PyICU-2.6.tar.gz support-icu-69.patch New: PyICU-2.7.4.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.In5VjJ/_old 2021-08-16 10:13:13.298983354 +0200 +++ /var/tmp/diff_new_pack.In5VjJ/_new 2021-08-16 10:13:13.302983350 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-PyICU +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -19,15 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.6 +Version:2.7.4 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT Group: Development/Libraries/Python URL:https://github.com/ovalhub/pyicu Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM: Support for ICU 69 commited upstream, spread over 2 commits -Patch0: support-icu-69.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -48,7 +46,6 @@ %prep %setup -q -n %{modname}-%{version} -%autopatch -p1 %build export CXXFLAGS="%{optflags} -fno-strict-aliasing" ++ PyICU-2.6.tar.gz -> PyICU-2.7.4.tar.gz ++ 6476 lines of diff (skipped)
commit python-PyICU for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2021-04-29 22:44:44 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.1947 (New) Package is "python-PyICU" Thu Apr 29 22:44:44 2021 rev:9 rq:888967 version:2.6 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2020-12-16 10:59:53.239534519 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.1947/python-PyICU.changes 2021-04-29 22:44:57.276151153 +0200 @@ -1,0 +2,6 @@ +Wed Apr 28 08:06:12 UTC 2021 - Steve Kowalik + +- Add patch support-icu-69.patch: + * Support ICU 69 + +--- New: support-icu-69.patch Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.dksRVZ/_old 2021-04-29 22:44:57.844148623 +0200 +++ /var/tmp/diff_new_pack.dksRVZ/_new 2021-04-29 22:44:57.844148623 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-PyICU # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ Group: Development/Libraries/Python URL:https://github.com/ovalhub/pyicu Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM: Support for ICU 69 commited upstream, spread over 2 commits +Patch0: support-icu-69.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -46,6 +48,7 @@ %prep %setup -q -n %{modname}-%{version} +%autopatch -p1 %build export CXXFLAGS="%{optflags} -fno-strict-aliasing" ++ support-icu-69.patch ++ >From 15d2ba67677369aae8b0964f18e9cdbf70a414b2 Mon Sep 17 00:00:00 2001 From: ovalhub <11970237+oval...@users.noreply.github.com> Date: Fri, 26 Mar 2021 12:53:37 -0700 Subject: [PATCH] fix build and test failures with icu 69rc --- numberformat.cpp | 6 ++ test/test_DateTimeParserGenerator.py | 1 - test/test_NumberFormatter.py | 16 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/numberformat.cpp b/numberformat.cpp index a5deba1..5a5e6ee 100644 --- a/numberformat.cpp +++ b/numberformat.cpp @@ -597,10 +597,12 @@ DECLARE_BY_VALUE_TYPE(FormattedNumber, t_formattednumber, FormattedValue, /* FormattedNumberRange */ /* t_formattednumberrange declared in numberformat.h */ +#if U_ICU_VERSION_HEX <= VERSION_HEX(69, 0, 0) static PyObject *t_formattednumberrange_getFirstDecimal( t_formattednumberrange *self); static PyObject *t_formattednumberrange_getSecondDecimal( t_formattednumberrange *self); +#endif static PyObject *t_formattednumberrange_getIdentityResult( t_formattednumberrange *self); #if U_ICU_VERSION_HEX >= VERSION_HEX(68, 0, 0) @@ -609,8 +611,10 @@ static PyObject *t_formattednumberrange_getDecimalNumbers( #endif static PyMethodDef t_formattednumberrange_methods[] = { +#if U_ICU_VERSION_HEX <= VERSION_HEX(69, 0, 0) DECLARE_METHOD(t_formattednumberrange, getFirstDecimal, METH_NOARGS), DECLARE_METHOD(t_formattednumberrange, getSecondDecimal, METH_NOARGS), +#endif DECLARE_METHOD(t_formattednumberrange, getIdentityResult, METH_NOARGS), #if U_ICU_VERSION_HEX >= VERSION_HEX(68, 0, 0) DECLARE_METHOD(t_formattednumberrange, getDecimalNumbers, METH_NOARGS), @@ -5208,6 +5212,7 @@ static PyObject *t_formattednumber_getOutputUnit(t_formattednumber *self) /* FormattedNumberRange */ +#if U_ICU_VERSION_HEX <= VERSION_HEX(69, 0, 0) static PyObject *t_formattednumberrange_getFirstDecimal( t_formattednumberrange *self) { @@ -5227,6 +5232,7 @@ static PyObject *t_formattednumberrange_getSecondDecimal( return PyUnicode_FromUnicodeString(); } +#endif static PyObject *t_formattednumberrange_getIdentityResult( t_formattednumberrange *self) diff --git a/test/test_DateTimeParserGenerator.py b/test/test_DateTimeParserGenerator.py index 6d37c22..ef9a00f 100644 --- a/test/test_DateTimeParserGenerator.py +++ b/test/test_DateTimeParserGenerator.py @@ -63,7 +63,6 @@ class TestDateTimePatternGenerator(TestCase): else: self.assertEqual(sdf.format(self.date), u'09. von mai, 17:30') self.assertEqual(sdf.toPattern(), u"dd'. von' , HH:mm") - def testGetBestPattern(self): """Test a few different languages and common patterns.""" diff --git a/test/test_NumberFormatter.py
commit python-PyICU for openSUSE:Factory
Hello community, here is the log from the commit of package python-PyICU for openSUSE:Factory checked in at 2020-12-16 10:59:49 Comparing /work/SRC/openSUSE:Factory/python-PyICU (Old) and /work/SRC/openSUSE:Factory/.python-PyICU.new.2328 (New) Package is "python-PyICU" Wed Dec 16 10:59:49 2020 rev:8 rq:855810 version:2.6 Changes: --- /work/SRC/openSUSE:Factory/python-PyICU/python-PyICU.changes 2020-03-29 14:25:07.494084628 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyICU.new.2328/python-PyICU.changes 2020-12-16 10:59:53.239534519 +0100 @@ -1,0 +2,6 @@ +Mon Dec 14 16:27:25 UTC 2020 - Callum Farmer + +- update to 2.6 + * fix build with ICU 68 + +--- Old: PyICU-2.4.3.tar.gz New: PyICU-2.6.tar.gz Other differences: -- ++ python-PyICU.spec ++ --- /var/tmp/diff_new_pack.ZVbnhK/_old 2020-12-16 10:59:53.955535223 +0100 +++ /var/tmp/diff_new_pack.ZVbnhK/_new 2020-12-16 10:59:53.963535231 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version:2.4.3 +Version:2.6 Release:0 Summary:Python Extension Wrapping the ICU C++ API License:MIT ++ PyICU-2.4.3.tar.gz -> PyICU-2.6.tar.gz ++ 7093 lines of diff (skipped) ___ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org