diff --git a/python-wptools-avoid-reading-readme.patch b/python-wptools-avoid-reading-readme.patch index 56e2cd0..b6711ff 100644 --- a/python-wptools-avoid-reading-readme.patch +++ b/python-wptools-avoid-reading-readme.patch @@ -1,7 +1,7 @@ -Index: wptools-0.4/setup.py +Index: wptools-0.4.5/setup.py =================================================================== ---- wptools-0.4.orig/setup.py -+++ wptools-0.4/setup.py +--- wptools-0.4.5.orig/setup.py ++++ wptools-0.4.5/setup.py @@ -2,8 +2,6 @@ from setuptools import setup, find_packages @@ -13,7 +13,7 @@ Index: wptools-0.4/setup.py @@ -12,7 +10,16 @@ setup( name='wptools', - version='0.4', + version='0.4.5', description='Wikipedia tools (for Humans)', - long_description=readme + '\n\n' + history, + long_description= diff --git a/python-wptools.changes b/python-wptools.changes index c681063..4770e8d 100644 --- a/python-wptools.changes +++ b/python-wptools.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue Dec 19 09:55:52 UTC 2017 - badshah400@gmail.com + +- Update to version 0.4.5: + * Fixed TypeError on Windows 10 (gh#siznax/wptools#95) + * Fixed RESTBase LookupError on slash titles + (gh#siznax/wptools#94) + * Added boxterm param for more Infobox reach + (gh#siznax/wptools#91) + * Improved stress tests, wptool CLI script output + * Fixed get_imageinfo() issue (gh#siznax/wptools#93) + * Getting ALL Wikidata (gh#siznax/wptools#56) + * Surfaced redirects, disambiguation links + (gh#siznax/wptools#25) + * Increased test coverage to 95%, pylint score 10.0 + * Added more page data, split off expensive queries + * Implemented basic category and site functionality + * Changed page._WIKIPROPS to wikidata.LABELS + * Refactored attributes to only cache, data, flags, params + * Unified Wikimedia APIs access pattern via wptools.core +- Rebase python-wptools-avoid-reading-readme.patch to apply + cleanly against updated sources. +- Run tests (BuildRequires: python3-unittest2); this only works + with py3 unittest module, so only enable tests conditionally. + ------------------------------------------------------------------- Wed Oct 25 07:47:36 UTC 2017 - aloisio@gmx.com diff --git a/python-wptools.spec b/python-wptools.spec index 1c967fa..28ed709 100644 --- a/python-wptools.spec +++ b/python-wptools.spec @@ -19,12 +19,12 @@ %define pyname wptools %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wptools -Version: 0.4 +Version: 0.4.5 Release: 0 Summary: Wikipedia tools (for Humans) License: MIT Group: Development/Languages/Python -URL: https://github.com/siznax/wptools/ +Url: https://github.com/siznax/wptools/ Source: https://files.pythonhosted.org/packages/source/w/wptools/%{pyname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM python-wptools-avoid-reading-readme.patch badshah400@gmail.com -- README.rst contains numerous spurious characters that are not readable in ascii. Skip reading this file in setup.py and manually insert a long description text instead Patch0: python-wptools-avoid-reading-readme.patch @@ -32,6 +32,7 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-unittest2 Requires: python-certifi >= 2017.7.27.1 Requires: python-html2text >= 2016.9.19 Requires: python-lxml >= 3.8.0 @@ -62,6 +63,12 @@ sed -i '1d' scripts/wptool.py %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%check +# TESTS ONLY WORK WITH PY3 UNITTEST +%ifpython3 +%python_exec setup.py test +%endif + %files %{python_files} %doc HISTORY.rst LICENSE README.rst %python3_only %{_bindir}/wptool diff --git a/wptools-0.4.5.tar.gz b/wptools-0.4.5.tar.gz new file mode 100644 index 0000000..ef68148 --- /dev/null +++ b/wptools-0.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5de6e109873cf601e7a0b2176ed4f0af53e4064ce031314642007a0655ef68ae +size 28384 diff --git a/wptools-0.4.tar.gz b/wptools-0.4.tar.gz deleted file mode 100644 index 603b65f..0000000 --- a/wptools-0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:376569b3c9808e66db64e0f06f58655faf88685f33258606cc8fb4787da19e68 -size 26278