14
0
Files
python-wptools/python-wptools-avoid-reading-readme.patch
Tomáš Chvátal 470be6befd Accepting request 602621 from home:badshah400:branches:devel:languages:python
- Update to version 0.4.12 [list of changes cumulated from version
  0.4.9]:
  * Respect silence (gh#siznax/wptools#118).
  * Added more general infobox parsing alternative.
  * Improved infobox parsing.

OBS-URL: https://build.opensuse.org/request/show/602621
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wptools?expand=0&rev=11
2018-04-30 19:36:21 +00:00

32 lines
950 B
Diff

Index: wptools-0.4.12/setup.py
===================================================================
--- wptools-0.4.12.orig/setup.py
+++ wptools-0.4.12/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.12',
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',