commit cf1a00eeda5072d01e144ecd72acb461510ac840d7dd50adad28958a5a4fa14e Author: Tomáš Chvátal Date: Mon Feb 11 08:24:38 2019 +0000 Accepting request 673162 from home:jayvdb:nltk_data - Update to v0.9.6 + Python 3.7 support + new Tagger.open_inmemory method which allows to load tagger data without having a file on-disk - Add %license - initial version for v0.9.5 OBS-URL: https://build.opensuse.org/request/show/673162 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-crfsuite-0.9.6.tar.gz b/python-crfsuite-0.9.6.tar.gz new file mode 100644 index 0000000..40b0c9f --- /dev/null +++ b/python-crfsuite-0.9.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a56d2b38e257614b1006c04fb9b0e22c63a177add487e5a64e8eb61f038342cd +size 434314 diff --git a/python-python-crfsuite.changes b/python-python-crfsuite.changes new file mode 100644 index 0000000..bed7f44 --- /dev/null +++ b/python-python-crfsuite.changes @@ -0,0 +1,13 @@ +------------------------------------------------------------------- +Sat Feb 9 15:45:10 UTC 2019 - John Vandenberg + +- Update to v0.9.6 + + Python 3.7 support + + new Tagger.open_inmemory method which allows to load tagger + data without having a file on-disk +- Add %license + +------------------------------------------------------------------- +Tue Nov 7 18:25:24 UTC 2017 - toddrme2178@gmail.com + +- initial version for v0.9.5 diff --git a/python-python-crfsuite.spec b/python-python-crfsuite.spec new file mode 100644 index 0000000..e3ae6ab --- /dev/null +++ b/python-python-crfsuite.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-python-crfsuite +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-python-crfsuite +Version: 0.9.6 +Release: 0 +Summary: Python binding for CRFsuite +License: MIT +Group: Development/Languages/Python +URL: https://github.com/scrapinghub/python-crfsuite +Source: https://files.pythonhosted.org/packages/source/p/python-crfsuite/python-crfsuite-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: c++_compiler +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module pytest} +%endif +%python_subpackages + +%description +Python-crfsuite is a python binding to CRFsuite_. + +%prep +%setup -q -n python-crfsuite-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +py.test-%{$python_bin_suffix} tests/ +} +%endif + +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst README.rst +%{python_sitearch}/* + +%changelog