commit 21935917e6ff82c9b2bbc195324d09a854b3784fbda8bc22eef1e88c0f182d4e Author: Dirk Mueller Date: Thu Oct 26 10:36:39 2017 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-wptools-avoid-reading-readme.patch b/python-wptools-avoid-reading-readme.patch new file mode 100644 index 0000000..56e2cd0 --- /dev/null +++ b/python-wptools-avoid-reading-readme.patch @@ -0,0 +1,31 @@ +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', diff --git a/python-wptools.changes b/python-wptools.changes new file mode 100644 index 0000000..c681063 --- /dev/null +++ b/python-wptools.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Wed Oct 25 07:47:36 UTC 2017 - aloisio@gmx.com + +- Update to version 0.4 +- Converted to single-spec +- Refreshed python3-wptools-avoid-reading-readme.patch as + python-wptools-avoid-reading-readme.patch + +------------------------------------------------------------------- +Tue Mar 14 02:00:28 UTC 2017 - badshah400@gmail.com + +- 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. + diff --git a/python-wptools.spec b/python-wptools.spec new file mode 100644 index 0000000..1c967fa --- /dev/null +++ b/python-wptools.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-wptools +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define pyname wptools +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-wptools +Version: 0.4 +Release: 0 +Summary: Wikipedia tools (for Humans) +License: MIT +Group: Development/Languages/Python +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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-certifi >= 2017.7.27.1 +Requires: python-html2text >= 2016.9.19 +Requires: python-lxml >= 3.8.0 +Requires: python-pycurl >= 7.43.0 +BuildArch: noarch +%python_subpackages + +%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 + +%prep +%setup -q -n wptools-%{version} +%patch0 -p1 +sed -i '1d' scripts/wptool.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc HISTORY.rst LICENSE README.rst +%python3_only %{_bindir}/wptool +%{python_sitelib}/* + +%changelog diff --git a/wptools-0.4.tar.gz b/wptools-0.4.tar.gz new file mode 100644 index 0000000..603b65f --- /dev/null +++ b/wptools-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:376569b3c9808e66db64e0f06f58655faf88685f33258606cc8fb4787da19e68 +size 26278