From ac5536c47d85f0cb5afdb1fdbcd408932db3198bfb132fed8ecf9d28d62a3921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 26 May 2018 19:39:17 +0000 Subject: [PATCH] Accepting request 612421 from home:badshah400:branches:devel:languages:python - Update to version 0.4.14: + Moved expensive backlinks request to page.get_more() and other minor fixes. - Changes from version 0.4.13: + Support getting backlinks with continuations, and more general continuation support in wptools.core - Minor rebase of python-wptools-avoid-reading-readme.patch. - Drop %%check entirely, tests require network. - Fix up sed command to remove hashbang: check for a valid hashbang on the first line of file only and delete a match. OBS-URL: https://build.opensuse.org/request/show/612421 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wptools?expand=0&rev=13 --- python-wptools-avoid-reading-readme.patch | 2 +- python-wptools.changes | 14 ++++++++++++++ python-wptools.spec | 11 ++--------- wptools-0.4.12.tar.gz | 3 --- wptools-0.4.14.tar.gz | 3 +++ 5 files changed, 20 insertions(+), 13 deletions(-) delete mode 100644 wptools-0.4.12.tar.gz create mode 100644 wptools-0.4.14.tar.gz diff --git a/python-wptools-avoid-reading-readme.patch b/python-wptools-avoid-reading-readme.patch index afa620f..886cdc0 100644 --- a/python-wptools-avoid-reading-readme.patch +++ b/python-wptools-avoid-reading-readme.patch @@ -13,7 +13,7 @@ Index: wptools-0.4.12/setup.py @@ -12,7 +10,16 @@ setup( name='wptools', - version='0.4.12', + version='0.4.14', description='Wikipedia tools (for Humans)', - long_description=readme + '\n\n' + history, + long_description= diff --git a/python-wptools.changes b/python-wptools.changes index 384ff03..90080b5 100644 --- a/python-wptools.changes +++ b/python-wptools.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri May 25 16:34:44 UTC 2018 - badshah400@gmail.com + +- Update to version 0.4.14: + + Moved expensive backlinks request to page.get_more() and other + minor fixes. +- Changes from version 0.4.13: + + Support getting backlinks with continuations, and more general + continuation support in wptools.core +- Minor rebase of python-wptools-avoid-reading-readme.patch. +- Drop %%check entirely, tests require network. +- Fix up sed command to remove hashbang: check for a valid + hashbang on the first line of file only and delete a match. + ------------------------------------------------------------------- Mon Apr 30 19:10:36 UTC 2018 - badshah400@gmail.com diff --git a/python-wptools.spec b/python-wptools.spec index a5afa79..db7b0c5 100644 --- a/python-wptools.spec +++ b/python-wptools.spec @@ -19,7 +19,7 @@ %define pyname wptools %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wptools -Version: 0.4.12 +Version: 0.4.14 Release: 0 Summary: Wikipedia tools (for Humans) License: MIT @@ -32,7 +32,6 @@ 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 @@ -54,7 +53,7 @@ Features: %prep %setup -q -n wptools-%{version} %patch0 -p1 -sed -i '1d' scripts/wptool.py +sed -E -i "1{/^#!\/usr\/bin.*python/d}" scripts/wptool.py %build %python_build @@ -63,12 +62,6 @@ 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.12.tar.gz b/wptools-0.4.12.tar.gz deleted file mode 100644 index c06dd2d..0000000 --- a/wptools-0.4.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bc3e55abcc8b9f3b565dd1dd86f4276a820594596e3f3c0920a1cfa1f445b31 -size 33633 diff --git a/wptools-0.4.14.tar.gz b/wptools-0.4.14.tar.gz new file mode 100644 index 0000000..61419b0 --- /dev/null +++ b/wptools-0.4.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdc7b234939fb5e170194773fde21a2a7010720d7832c932418b0b6f55afaf49 +size 34293