diff --git a/python-topy.changes b/python-topy.changes index 212646e..dc7acf1 100644 --- a/python-topy.changes +++ b/python-topy.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Jan 13 13:46:10 UTC 2021 - pgajdos@suse.com + +- version update to 1.0.0 + * Updated bundled ruleset from Wikipedia (#23) + * Removed Python 2.x and <3.5 compatibility code (#22) + * Fixed Travis CI configuration (#21) + * Updated bundled ruleset (thanks to Oscar Caballero) + * Added --disable option to disable individual rules (thanks to Oscar Caballero) + * Fixed behavior when replacement string contains $ symbol (thanks to Oscar Caballero) + * Prefer the faster lxml parser when it is installed. lxml is now an optional dependency + * (thanks to Oscar Caballero) + * Added Python 3.7 support, deprecated Python 3.3 and 3.4. +- python3 only package +- use %pytest macro + ------------------------------------------------------------------- Mon May 18 09:10:33 UTC 2020 - Petr Gajdos diff --git a/python-topy.spec b/python-topy.spec index 985fd51..93f4b3a 100644 --- a/python-topy.spec +++ b/python-topy.spec @@ -1,7 +1,7 @@ # # spec file for package python-topy # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-topy -Version: 0.2.2 +Version: 1.0.0 Release: 0 Summary: Tool for fixing typos in text using regular expressions License: MIT AND CC-BY-SA-4.0 Group: Development/Languages/Python URL: https://github.com/intgr/topy -Source: https://github.com/intgr/topy/archive/v0.2.2.tar.gz#/topy-%{version}.tar.gz +Source: https://github.com/intgr/topy/archive/%{version}.tar.gz#/topy-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -35,6 +36,7 @@ Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module regex >= 2016.07.14} # /SECTION %python_subpackages @@ -57,7 +59,7 @@ sed -i '1 { /^#!/ d }' topy/topy.py %check export LANG=en_US.UTF-8 -%python_exec setup.py test +%pytest %post %python_install_alternative topy diff --git a/topy-0.2.2.tar.gz b/topy-0.2.2.tar.gz deleted file mode 100644 index 2db9a7c..0000000 --- a/topy-0.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2691ed767543ad550d70126ea89593a5ac8bdb1e824c427bb546fedeb747b820 -size 121126 diff --git a/topy-1.0.0.tar.gz b/topy-1.0.0.tar.gz new file mode 100644 index 0000000..6efffd3 --- /dev/null +++ b/topy-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6e76eaa9889895f29d7576d94c4eba6df2958315f9756645bdcba878a47bbd4 +size 138854