14
0
Files
python-wptools/python-wptools-avoid-reading-readme.patch
Dirk Mueller 21935917e6 Accepting request 536469 from home:alois:branches:devel:languages:python
- Update to version 0.4
- Converted to single-spec
- Refreshed python3-wptools-avoid-reading-readme.patch as
  python-wptools-avoid-reading-readme.patch
- Initial package.
- Add python3-wptools-avoid-reading-readme.patch: README.rst
  contains numerous spurious characters that are not readable in
  ascii, causing setup.py to fail. Skip reading this file in
  setup.py and manually insert a long description text instead.

OBS-URL: https://build.opensuse.org/request/show/536469
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wptools?expand=0&rev=1
2017-10-26 10:36:39 +00:00

32 lines
938 B
Diff

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