14
0

Accepting request 786750 from home:mcalabkova:branches:devel:languages:python

- Update to version 3.0.1
  * Uncouple PyEnchant version from the Enchant version. This release 
    should be compatible with Enchant 1.6 to 2.2
  * Fix using PyEnchant with Enchant >= 2.0
  * Add support for pypy3, Python 3.7 and Python 3.8
  * New website, hosted on https://pyenchant.github.io/pyenchant/
  * Add enchant.set_prefix_dir()
  * Drop support for Python2
- Drop obsolete patch enchant2.patch

OBS-URL: https://build.opensuse.org/request/show/786750
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal
2020-03-20 09:15:49 +00:00
committed by Git OBS Bridge
parent 461ccc4c4f
commit 7551f45bcb
5 changed files with 26 additions and 42 deletions

View File

@@ -1,22 +0,0 @@
From ed02ae493ade4ca749462d041ce83261783fa1a1 Mon Sep 17 00:00:00 2001
From: Raphael Michel <mail@raphaelmichel.de>
Date: Thu, 8 Mar 2018 10:40:00 +0100
Subject: [PATCH] Auto-detect enchant2
After support for enchant2 is already merged, the only thing missing is to detect the library :)
---
enchant/_enchant.py | 1 +
1 file changed, 1 insertion(+)
Index: pyenchant-2.0.0/enchant/_enchant.py
===================================================================
--- pyenchant-2.0.0.orig/enchant/_enchant.py
+++ pyenchant-2.0.0/enchant/_enchant.py
@@ -65,6 +65,7 @@ def _e_path_possibilities():
"""Generator yielding possible locations of the enchant library."""
# Allow it to be overridden using an environment variable.
yield os.environ.get("PYENCHANT_LIBRARY_PATH")
+ yield find_library("enchant-2")
# For linuxish systems, allow default soname lookup a chance to succeed.
if sys.platform not in ("win32", "darwin"):
yield "libenchant.so.1.6.0"

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc31cda72ace001da8fe5d42f11c26e514a91fa8c70468739216ddd8de64e2a0
size 64022

3
pyenchant-3.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4606fb3c8de3e2ca005adbde21518c8e3bd05e8affdc82ded3c9780fc3a7d891
size 75730

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Mar 20 08:06:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to version 3.0.1
* Uncouple PyEnchant version from the Enchant version. This release
should be compatible with Enchant 1.6 to 2.2
* Fix using PyEnchant with Enchant >= 2.0
* Add support for pypy3, Python 3.7 and Python 3.8
* New website, hosted on https://pyenchant.github.io/pyenchant/
* Add enchant.set_prefix_dir()
* Drop support for Python2
- Drop obsolete patch enchant2.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 19 10:11:23 UTC 2019 - Antonio Larrosa <alarrosa@suse.com> Fri Jul 19 10:11:23 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyenchant # spec file for package python-pyenchant
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python %define skip_python2 1
Name: python-pyenchant Name: python-pyenchant
Version: 2.0.0 Version: 3.0.1
Release: 0 Release: 0
Summary: Python bindings for the Enchant spellchecking system Summary: Python bindings for the Enchant spellchecking system
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/rfk/pyenchant/ URL: https://pyenchant.github.io/pyenchant
Source: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz Source: https://github.com/pyenchant/pyenchant/archive/v%{version}.tar.gz#/pyenchant-%{version}.tar.gz
Patch0: enchant2.patch BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: enchant-2-backend-hunspell BuildRequires: enchant-2-backend-hunspell
@@ -38,7 +38,6 @@ BuildRequires: myspell-en
BuildRequires: myspell-en_AU BuildRequires: myspell-en_AU
BuildRequires: myspell-en_US BuildRequires: myspell-en_US
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
Requires: enchant-2-backend-hunspell Requires: enchant-2-backend-hunspell
%else %else
@@ -46,12 +45,6 @@ Requires: enchant
%endif %endif
Provides: python-enchant Provides: python-enchant
BuildArch: noarch BuildArch: noarch
%ifpython2
Provides: PyEnchant = %{version}
Obsoletes: PyEnchant < %{version}
Provides: %{oldpython}-enchant = %{version}
Obsoletes: %{oldpython}-enchant < %{version}
%endif
%python_subpackages %python_subpackages
%description %description
@@ -59,9 +52,9 @@ PyEnchant is a spellchecking library for Python, based on the excellent Enchant
%prep %prep
%setup -q -n pyenchant-%{version} %setup -q -n pyenchant-%{version}
%patch0 -p1
chmod a-x *.txt chmod a-x *.txt
chmod a-x *egg-info/* # cleanup github tarball
rm -rf website .github archive tools
%build %build
%python_build %python_build
@@ -72,11 +65,11 @@ chmod a-x *egg-info/*
%check %check
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_exec setup.py test %pytest
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.txt TODO.txt %doc README.rst TODO.txt
%{python_sitelib}/enchant %{python_sitelib}/enchant
%{python_sitelib}/pyenchant-%{version}-py*.egg-info %{python_sitelib}/pyenchant-%{version}-py*.egg-info