forked from pool/python-wptools
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user