14
0
Files
python-wptools/python-wptools-avoid-reading-readme.patch
Dirk Mueller 3dbb2df8f3 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
2017-12-19 10:35:04 +00:00

32 lines
946 B
Diff

Index: wptools-0.4.5/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
-with open('README.rst') as f:
- readme = f.read()
with open('HISTORY.rst') as f:
history = f.read()
@@ -12,7 +10,16 @@ setup(
name='wptools',
version='0.4.5',
description='Wikipedia tools (for Humans)',
- long_description=readme + '\n\n' + history,
+ long_description=
+'''Python and command-line MediaWiki access for Humans.
+
+Features:
+* get an HTML or plain text "extract" (lead or summary)
+* get a representative image (pageimage, thumb, etc.)
+* get an Infobox as a python dictionary
+* get any/all Wikidata by title
+* get info in any language
+* get random info''' + '\n\n' + history,
url='https://github.com/siznax/wptools/',
license='MIT',
author='Steve @siznax',