commit python-scspell3k for openSUSE:Factory

2020-06-09 Thread root
Hello community,

here is the log from the commit of package python-scspell3k for 
openSUSE:Factory checked in at 2020-06-10 00:48:42

Comparing /work/SRC/openSUSE:Factory/python-scspell3k (Old)
 and  /work/SRC/openSUSE:Factory/.python-scspell3k.new.3606 (New)


Package is "python-scspell3k"

Wed Jun 10 00:48:42 2020 rev:6 rq:812782 version:2.2

Changes:

--- /work/SRC/openSUSE:Factory/python-scspell3k/python-scspell3k.changes
2020-05-19 14:58:32.537408402 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-scspell3k.new.3606/python-scspell3k.changes  
2020-06-10 00:48:46.131000344 +0200
@@ -1,0 +2,5 @@
+Tue Jun  9 06:56:17 UTC 2020 - Tomáš Chvátal 
+
+- Drop dependency on cram as we remove it due to build fail
+
+---



Other differences:
--
++ python-scspell3k.spec ++
--- /var/tmp/diff_new_pack.upjk8t/_old  2020-06-10 00:48:47.403003671 +0200
+++ /var/tmp/diff_new_pack.upjk8t/_new  2020-06-10 00:48:47.407003682 +0200
@@ -28,7 +28,6 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-cram
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 BuildArch:  noarch
@@ -83,8 +82,6 @@
 
 %check
 %pytest
-sed -i -e 's:python $TESTDIR:python3 $TESTDIR:g' ./test.cram
-python3 -m cram --indent=4 ./test.cram
 
 %post
 %python_install_alternative scspell




commit python-scspell3k for openSUSE:Factory

2020-05-19 Thread root
Hello community,

here is the log from the commit of package python-scspell3k for 
openSUSE:Factory checked in at 2020-05-19 14:58:20

Comparing /work/SRC/openSUSE:Factory/python-scspell3k (Old)
 and  /work/SRC/openSUSE:Factory/.python-scspell3k.new.2738 (New)


Package is "python-scspell3k"

Tue May 19 14:58:20 2020 rev:5 rq:807287 version:2.2

Changes:

--- /work/SRC/openSUSE:Factory/python-scspell3k/python-scspell3k.changes
2020-04-23 18:39:13.201095829 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-scspell3k.new.2738/python-scspell3k.changes  
2020-05-19 14:58:32.537408402 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:54 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-scspell3k.spec ++
--- /var/tmp/diff_new_pack.zNWjw2/_old  2020-05-19 14:58:33.617410797 +0200
+++ /var/tmp/diff_new_pack.zNWjw2/_new  2020-05-19 14:58:33.617410797 +0200
@@ -29,6 +29,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-cram
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 %python_subpackages
 
@@ -76,6 +78,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/scspell
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -83,10 +86,16 @@
 sed -i -e 's:python $TESTDIR:python3 $TESTDIR:g' ./test.cram
 python3 -m cram --indent=4 ./test.cram
 
+%post
+%python_install_alternative scspell
+
+%postun
+%python_uninstall_alternative scspell
+
 %files %{python_files}
 %doc README.rst
 %license COPYING.txt
-%python3_only %{_bindir}/scspell
+%python_alternative %{_bindir}/scspell
 %{python_sitelib}/*
 
 %changelog




commit python-scspell3k for openSUSE:Factory

2020-04-23 Thread root
Hello community,

here is the log from the commit of package python-scspell3k for 
openSUSE:Factory checked in at 2020-04-23 18:39:12

Comparing /work/SRC/openSUSE:Factory/python-scspell3k (Old)
 and  /work/SRC/openSUSE:Factory/.python-scspell3k.new.2738 (New)


Package is "python-scspell3k"

Thu Apr 23 18:39:12 2020 rev:4 rq:796523 version:2.2

Changes:

--- /work/SRC/openSUSE:Factory/python-scspell3k/python-scspell3k.changes
2019-02-25 17:53:17.482531768 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-scspell3k.new.2738/python-scspell3k.changes  
2020-04-23 18:39:13.201095829 +0200
@@ -1,0 +2,5 @@
+Thu Apr 23 11:53:52 UTC 2020 - Tomáš Chvátal 
+
+- Make sure the tests do not execute python2
+
+---

Old:

  scspell3k-2.2.tar.gz



Other differences:
--
++ python-scspell3k.spec ++
--- /var/tmp/diff_new_pack.uMl2Xw/_old  2020-04-23 18:39:13.757096893 +0200
+++ /var/tmp/diff_new_pack.uMl2Xw/_new  2020-04-23 18:39:13.761096900 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-scspell3k
 #
-# 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
@@ -22,10 +22,8 @@
 Release:0
 Summary:A conservative interactive spell checker for source code
 License:GPL-2.0-only
-Group:  Development/Languages/Python
 URL:https://github.com/myint/scspell
-Source: 
https://files.pythonhosted.org/packages/source/s/scspell3k/scspell3k-%{version}.tar.gz
-Source1:https://github.com/myint/scspell/archive/v%{version}.tar.gz
+Source0:https://github.com/myint/scspell/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -71,8 +69,7 @@
are not likely to be found in more than a handful of unique files.
 
 %prep
-%setup -q -n scspell3k-%{version}
-tar --wildcards --strip-components=1 -xzf %{SOURCE1} scspell-%{version}/test*
+%setup -q -n scspell-%{version}
 
 %build
 %python_build
@@ -82,7 +79,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec -m pytest
+%pytest
+sed -i -e 's:python $TESTDIR:python3 $TESTDIR:g' ./test.cram
 python3 -m cram --indent=4 ./test.cram
 
 %files %{python_files}




commit python-scspell3k for openSUSE:Factory

2019-02-25 Thread root
Hello community,

here is the log from the commit of package python-scspell3k for 
openSUSE:Factory checked in at 2019-02-25 17:53:16

Comparing /work/SRC/openSUSE:Factory/python-scspell3k (Old)
 and  /work/SRC/openSUSE:Factory/.python-scspell3k.new.28833 (New)


Package is "python-scspell3k"

Mon Feb 25 17:53:16 2019 rev:3 rq:678032 version:2.2

Changes:

--- /work/SRC/openSUSE:Factory/python-scspell3k/python-scspell3k.changes
2018-12-24 11:43:43.829327731 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-scspell3k.new.28833/python-scspell3k.changes 
2019-02-25 17:53:17.482531768 +0100
@@ -1,0 +2,11 @@
+Thu Feb 14 07:54:23 UTC 2019 - John Vandenberg 
+
+- Activate tests
+- Update to v2.2
+  * Add support for Python 3.6, and removed 3.2 and 3.3
+  * Fix bugs with Windows and macOS
+  * Add missing Python keywords and builtins
+  * add Report class to optionally collect and classify unmatched subtokens
+  * add optional argument to specify additional extensions
+
+---

Old:

  scspell3k-2.1.tar.gz

New:

  scspell3k-2.2.tar.gz
  v2.2.tar.gz



Other differences:
--
++ python-scspell3k.spec ++
--- /var/tmp/diff_new_pack.ReTz5d/_old  2019-02-25 17:53:18.198531437 +0100
+++ /var/tmp/diff_new_pack.ReTz5d/_new  2019-02-25 17:53:18.202531435 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-scspell3k
 #
-# 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
@@ -18,18 +18,20 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-scspell3k
-Version:2.1
+Version:2.2
 Release:0
 Summary:A conservative interactive spell checker for source code
 License:GPL-2.0-only
 Group:  Development/Languages/Python
-Url:https://github.com/myint/scspell
+URL:https://github.com/myint/scspell
 Source: 
https://files.pythonhosted.org/packages/source/s/scspell3k/scspell3k-%{version}.tar.gz
+Source1:https://github.com/myint/scspell/archive/v%{version}.tar.gz
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  python3-cram
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -70,6 +72,7 @@
 
 %prep
 %setup -q -n scspell3k-%{version}
+tar --wildcards --strip-components=1 -xzf %{SOURCE1} scspell-%{version}/test*
 
 %build
 %python_build
@@ -78,6 +81,10 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%python_exec -m pytest
+python3 -m cram --indent=4 ./test.cram
+
 %files %{python_files}
 %doc README.rst
 %license COPYING.txt

++ scspell3k-2.1.tar.gz -> scspell3k-2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scspell3k-2.1/PKG-INFO new/scspell3k-2.2/PKG-INFO
--- old/scspell3k-2.1/PKG-INFO  2017-01-14 17:48:08.0 +0100
+++ new/scspell3k-2.2/PKG-INFO  2019-01-19 02:32:09.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: scspell3k
-Version: 2.1
+Version: 2.2
 Summary: A conservative interactive spell checker for source code.
 Home-page: https://github.com/myint/scspell
 Author: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scspell3k-2.1/scspell/__init__.py 
new/scspell3k-2.2/scspell/__init__.py
--- old/scspell3k-2.1/scspell/__init__.py   2017-01-14 17:47:01.0 
+0100
+++ new/scspell3k-2.2/scspell/__init__.py   2019-01-19 02:31:48.0 
+0100
@@ -56,7 +56,7 @@
 raw_input = input
 
 
-__version__ = '2.1'
+__version__ = '2.2'
 
 # Name of scspell.conf section header
 CONFIG_SECTION = 'Settings'
@@ -461,6 +461,42 @@
 match_desc.get_ofs() + len(match_desc.get_token()))
 
 
+class Report(object):
+"""Collect unmatched subtokens and classify into known and unknown words.
+
+An instance of this class can be passed to ``spell_check()`` as the
+``report_only`` argument.
+"""
+
+def __init__(self, known_words):
+"""
+Constructor.
+
+:param known_words: known words
+:type  known_words: iterable
+"""
+self.known_words = known_words
+self.found_known_words = set()
+self.unknown_words = set()
+
+def __call__(self, match_desc, filename, unmatched_subtokens):
+for subtoken in list(unmatched_subtokens):
+if subtoken in self.known_words:
+

commit python-scspell3k for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-scspell3k for 
openSUSE:Factory checked in at 2018-12-24 11:43:42

Comparing /work/SRC/openSUSE:Factory/python-scspell3k (Old)
 and  /work/SRC/openSUSE:Factory/.python-scspell3k.new.28833 (New)


Package is "python-scspell3k"

Mon Dec 24 11:43:42 2018 rev:2 rq:659661 version:2.1

Changes:

--- /work/SRC/openSUSE:Factory/python-scspell3k/python-scspell3k.changes
2018-06-02 12:00:52.920781635 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-scspell3k.new.28833/python-scspell3k.changes 
2018-12-24 11:43:43.829327731 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:54:03 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-scspell3k.spec ++
--- /var/tmp/diff_new_pack.X3sWhe/_old  2018-12-24 11:43:44.265327344 +0100
+++ /var/tmp/diff_new_pack.X3sWhe/_new  2018-12-24 11:43:44.269327341 +0100
@@ -12,19 +12,19 @@
 # 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/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-scspell3k
 Version:2.1
 Release:0
-License:GPL-2.0
 Summary:A conservative interactive spell checker for source code
-Url:https://github.com/myint/scspell
+License:GPL-2.0-only
 Group:  Development/Languages/Python
+Url:https://github.com/myint/scspell
 Source: 
https://files.pythonhosted.org/packages/source/s/scspell3k/scspell3k-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros