commit python-pyuca for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyuca for openSUSE:Factory checked in at 2020-08-19 18:55:15 Comparing /work/SRC/openSUSE:Factory/python-pyuca (Old) and /work/SRC/openSUSE:Factory/.python-pyuca.new.3399 (New) Package is "python-pyuca" Wed Aug 19 18:55:15 2020 rev:5 rq:827694 version:1.2 Changes: --- /work/SRC/openSUSE:Factory/python-pyuca/python-pyuca.changes 2020-08-13 10:26:17.078898866 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyuca.new.3399/python-pyuca.changes 2020-08-19 18:56:57.359851396 +0200 @@ -1,0 +2,5 @@ +Tue Aug 18 22:42:45 UTC 2020 - Matej Cepl + +- We can finally use %pyunittest macro + +--- Other differences: -- ++ python-pyuca.spec ++ --- /var/tmp/diff_new_pack.rfIg4K/_old 2020-08-19 18:56:58.211851849 +0200 +++ /var/tmp/diff_new_pack.rfIg4K/_new 2020-08-19 18:56:58.211851849 +0200 @@ -50,7 +50,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand $python -munittest discover -v +%pyunittest test %files %{python_files} %license LICENSE*
commit python-pyuca for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyuca for openSUSE:Factory checked in at 2020-08-13 10:22:40 Comparing /work/SRC/openSUSE:Factory/python-pyuca (Old) and /work/SRC/openSUSE:Factory/.python-pyuca.new.3399 (New) Package is "python-pyuca" Thu Aug 13 10:22:40 2020 rev:4 rq:826127 version:1.2 Changes: --- /work/SRC/openSUSE:Factory/python-pyuca/python-pyuca.changes 2019-06-05 11:40:42.783066536 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyuca.new.3399/python-pyuca.changes 2020-08-13 10:26:17.078898866 +0200 @@ -1,0 +2,5 @@ +Wed Aug 12 23:31:22 UTC 2020 - Matej Cepl + +- Run SPEC file through spec-cleaner + +--- Other differences: -- ++ python-pyuca.spec ++ --- /var/tmp/diff_new_pack.hH7DYv/_old 2020-08-13 10:26:18.498898828 +0200 +++ /var/tmp/diff_new_pack.hH7DYv/_new 2020-08-13 10:26:18.502898828 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyuca # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -BuildArch: noarch Name: python-pyuca Version:1.2 Release:0 Summary:Python implementation of the Unicode Collation Algorithm License:MIT Group: Development/Languages/Python -Url:http://github.com/jtauber/pyuca -Source0: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz +URL:https://github.com/jtauber/pyuca +Source0: https://files.pythonhosted.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz # https://github.com/jtauber/pyuca/issues/21 Source1:https://raw.githubusercontent.com/jtauber/pyuca/master/test.py BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %python_subpackages %description
commit python-pyuca for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyuca for openSUSE:Factory checked in at 2019-06-05 11:40:32 Comparing /work/SRC/openSUSE:Factory/python-pyuca (Old) and /work/SRC/openSUSE:Factory/.python-pyuca.new.5148 (New) Package is "python-pyuca" Wed Jun 5 11:40:32 2019 rev:3 rq:707449 version:1.2 Changes: --- /work/SRC/openSUSE:Factory/python-pyuca/python-pyuca.changes 2018-08-03 12:37:43.131606734 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyuca.new.5148/python-pyuca.changes 2019-06-05 11:40:42.783066536 +0200 @@ -1,0 +2,7 @@ +Tue Jun 4 08:18:19 UTC 2019 - pgaj...@suse.com + +- turn on the testsuite +- added sources + + test.py + +--- New: test.py Other differences: -- ++ python-pyuca.spec ++ --- /var/tmp/diff_new_pack.pVilVP/_old 2019-06-05 11:40:43.551066437 +0200 +++ /var/tmp/diff_new_pack.pVilVP/_new 2019-06-05 11:40:43.551066437 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyuca # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,9 @@ License:MIT Group: Development/Languages/Python Url:http://github.com/jtauber/pyuca -Source: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz +Source0: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz +# https://github.com/jtauber/pyuca/issues/21 +Source1:https://raw.githubusercontent.com/jtauber/pyuca/master/test.py BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -38,6 +40,7 @@ %prep %setup -q -n pyuca-%{version} +cp %{SOURCE1} . %build %python_build @@ -46,6 +49,9 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_expand $python -munittest discover -v + %files %{python_files} %license LICENSE* %doc README.md ++ test.py ++ # coding: utf8 from __future__ import unicode_literals import sys import unittest PYTHON3 = sys.version_info >= (3,) V8_0_0 = sys.version_info >= (3, 5) V10_0_0 = sys.version_info >= (3, 7) class SmokeTest(unittest.TestCase): def test_cafe(self): from pyuca import Collator c = Collator() self.assertEqual( sorted(["cafe", "caff", "café"]), ["cafe", "caff", "café"] ) self.assertEqual( sorted(["cafe", "caff", "café"], key=c.sort_key), ["cafe", "café", "caff"] ) class UtilsTest(unittest.TestCase): def test_hexstrings2int(self): from pyuca.utils import hexstrings2int self.assertEqual( hexstrings2int(["", "0001", ""]), [0, 1, 65535] ) def test_int2hexstrings(self): from pyuca.utils import int2hexstrings self.assertEqual( int2hexstrings([0, 1, 65535]), ["", "0001", ""] ) def test_format_collation_elements(self): from pyuca.utils import format_collation_elements self.assertEqual( format_collation_elements([[1, 2, 3], [4, 5]]), "[0001.0002.0003], [0004.0005]" ) def test_format_collation_elements_none(self): from pyuca.utils import format_collation_elements self.assertEqual( format_collation_elements(None), None ) def test_format_sort_key(self): from pyuca.utils import format_sort_key self.assertEqual( format_sort_key([0, 1, 65535]), "| 0001 " ) class TrieTest(unittest.TestCase): def __init__(self, *args, **kwargs): from pyuca.trie import Trie super(TrieTest, self).__init__(*args, **kwargs) self.t = Trie() def test_1(self): self.t.add("foo", "bar") self.assertEqual(self.t.find_prefix("fo"), ("", None, "fo")) self.assertEqual(self.t.find_prefix("foo"), ("foo", "bar", "")) self.assertEqual(self.t.find_prefix("food"), ("foo", "bar", "d")) def test_2(self): self.t.add("a", "yes") self.t.add("abc", "yes") self.assertEqual(self.t.find_prefix("abdc"), ("a", "yes", "bdc")) cla
commit python-pyuca for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyuca for openSUSE:Factory checked in at 2018-08-03 12:37:39 Comparing /work/SRC/openSUSE:Factory/python-pyuca (Old) and /work/SRC/openSUSE:Factory/.python-pyuca.new (New) Package is "python-pyuca" Fri Aug 3 12:37:39 2018 rev:2 rq:627016 version:1.2 Changes: --- /work/SRC/openSUSE:Factory/python-pyuca/python-pyuca.changes 2015-08-05 06:50:21.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyuca.new/python-pyuca.changes 2018-08-03 12:37:43.131606734 +0200 @@ -1,0 +2,9 @@ +Thu Aug 2 07:39:26 UTC 2018 - tchva...@suse.com + +- Update to 1.2 release: + * Unicode 8.0 support + * Python3 support +- Switch to singlespec +- Install license + +--- Old: pyuca-1.1.tar.gz New: pyuca-1.2.tar.gz Other differences: -- ++ python-pyuca.spec ++ --- /var/tmp/diff_new_pack.0caiQV/_old 2018-08-03 12:37:45.099609657 +0200 +++ /var/tmp/diff_new_pack.0caiQV/_new 2018-08-03 12:37:45.099609657 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyuca # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,20 @@ # -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +%{?!python_module:%define python_module() python-%{**} python3-%{**}} BuildArch: noarch -%endif Name: python-pyuca -Version:1.1 +Version:1.2 Release:0 Summary:Python implementation of the Unicode Collation Algorithm License:MIT Group: Development/Languages/Python Url:http://github.com/jtauber/pyuca Source: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages %description This is a Python implementation of the Unicode Collation Algorithm (UCA). It @@ -42,13 +40,15 @@ %setup -q -n pyuca-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) +%files %{python_files} +%license LICENSE* +%doc README.md %{python_sitelib}/* %changelog ++ pyuca-1.1.tar.gz -> pyuca-1.2.tar.gz ++ 92491 lines of diff (skipped)