Hello community,

here is the log from the commit of package python-nltk for openSUSE:Factory 
checked in at 2020-06-09 00:02:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nltk (Old)
 and      /work/SRC/openSUSE:Factory/.python-nltk.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nltk"

Tue Jun  9 00:02:35 2020 rev:10 rq:812413 version:3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nltk/python-nltk.changes  2020-03-27 
21:57:01.678783348 +0100
+++ /work/SRC/openSUSE:Factory/.python-nltk.new.3606/python-nltk.changes        
2020-06-09 00:05:01.813368578 +0200
@@ -1,0 +2,18 @@
+Thu Apr 23 13:54:08 UTC 2020 - John Vandenberg <jay...@gmail.com>
+
+- Update to v3.5
+  * add support for Python 3.8
+  * drop support for Python 2
+  * create NLTK's own Tokenizer class distinct from the Treebank
+    reference tokeniser
+  * update Vader sentiment analyser
+  * fix JSON serialization of some PoS taggers
+  * minor improvements in grammar.CFG, Vader, pl196x corpus reader,
+    StringTokenizer
+  * change implementation <= and >= for FreqDist so they are partial
+    orders
+  * make FreqDist iterable
+  * correctly handle Penn Treebank trees with a unlabeled branching
+    top node
+
+-------------------------------------------------------------------

Old:
----
  nltk-3.4.5.zip

New:
----
  nltk-3.5.zip

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nltk.spec ++++++
--- /var/tmp/diff_new_pack.8kMn7O/_old  2020-06-09 00:05:02.605371388 +0200
+++ /var/tmp/diff_new_pack.8kMn7O/_new  2020-06-09 00:05:02.609371402 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nltk
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2020 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
@@ -17,22 +17,23 @@
 
 
 %{!?python_module:%define python_module() python-%{**} python3-%{**}}
-%define interps python python3
 %define pyname nltk
-%bcond_without python2
+%define skip_python2 1
 Name:           python-nltk
-Version:        3.4.5
+Version:        3.5
 Release:        0
 Summary:        Natural Language Toolkit
 License:        Apache-2.0
 URL:            http://nltk.org/
 Source:         
https://files.pythonhosted.org/packages/source/n/nltk/%{pyname}-%{version}.zip
-BuildRequires:  %{interps}
+BuildRequires:  %{python_module regex}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
+BuildRequires:  %{pythons}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
+Requires:       python-regex
 Requires:       python-six
 Recommends:     python-gensim
 Recommends:     python-matplotlib
@@ -43,13 +44,9 @@
 Recommends:     python-scikit-learn
 Recommends:     python-scipy
 Recommends:     python-twython
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 BuildArch:      noarch
-%if %{with python2}
-BuildRequires:  python-singledispatch
-%endif
-%ifpython2
-Requires:       python-singledispatch
-%endif
 %python_subpackages
 
 %description
@@ -71,6 +68,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/nltk
 
 %{python_expand %fdupes %{buildroot}%{$python_sitelib}/
 chmod -x %{buildroot}%{$python_sitelib}/nltk/test/dependency.doctest
@@ -80,10 +78,17 @@
 # FOLLOWING http://www.nltk.org/install.html
 %python_exec -c "import nltk" || exit 1
 
+%post
+%python_install_alternative nltk
+
+%postun
+%python_uninstall_alternative nltk
+
 %files %{python_files}
 %doc README.md
 %license LICENSE.txt
 %{python_sitelib}/%{pyname}/
 %{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
+%python_alternative %{_bindir}/nltk
 
 %changelog


Reply via email to