14
0
Files
python-wptools/python-wptools-avoid-reading-readme.patch
Ondřej Súkup ac5536c47d 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
2018-05-26 19:39:17 +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.14',
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',