forked from pool/python-Pyphen
- update to 0.14.0:
* Store Path objects instead of strings in LANGUAGE.
* Use importlib.resources instead of deprecated pkg_resources.
* Add Thai dictionary.
* Update Italian dictionary.
* Make language parameter case-insensitive.
* Add Catalan dictionary.
* Update French dictionary.
* Update script upgrading dictionaries.
* Support Python 3.10, drop Python 3.6 support.
* Add documentation.
* Update Belarusian dictionary.
* Update dictionaries (add Albanian, Belarusian, Esperanto,
Mongolian; update Italian, Portuguese of Brazil, Russian).
* Use Flit for packaging. You can now build packages using pip
install flit, flit build.
* Improve dictionaries update script
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyphen?expand=0&rev=12
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Pyphen
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,16 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-Pyphen
|
||||
Version: 0.10.0
|
||||
Version: 0.14.0
|
||||
Release: 0
|
||||
Summary: Pure Python module to hyphenate text
|
||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1
|
||||
URL: https://github.com/Kozea/Pyphen
|
||||
Source: https://github.com/Kozea/Pyphen/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module flit-core}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -42,18 +44,19 @@ This module is a fork of python-hyphenator, written by Wilbert Berendsen.
|
||||
%setup -q -n Pyphen-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v test.py
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license COPYING COPYING.GPL COPYING.LGPL COPYING.MPL
|
||||
%{python_sitelib}/*
|
||||
%license COPYING.GPL COPYING.LGPL COPYING.MPL
|
||||
%{python_sitelib}/pyphen
|
||||
%{python_sitelib}/pyphen-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user