forked from pool/python-wptools
Accepting request 558343 from home:badshah400:branches:devel:languages:python
- 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.
OBS-URL: https://build.opensuse.org/request/show/558343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wptools?expand=0&rev=3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user