summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 14:11:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 14:11:47 +0000
commit5ae31125decab95a11b4684885a504875ad531a7 (patch)
treea4f7e7914d3fed5758f3ac7b43aa956129d28dec
parent96bc24464055ba3643507a0c10268110c039a506 (diff)
automatic import of python-mwclient
-rw-r--r--.gitignore1
-rw-r--r--python-mwclient.spec269
-rw-r--r--sources1
3 files changed, 271 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4aa73e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mwclient-0.10.1.tar.gz
diff --git a/python-mwclient.spec b/python-mwclient.spec
new file mode 100644
index 0000000..e42b010
--- /dev/null
+++ b/python-mwclient.spec
@@ -0,0 +1,269 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mwclient
+Version: 0.10.1
+Release: 1
+Summary: MediaWiki API client
+License: MIT
+URL: https://github.com/btongminh/mwclient
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/97/b4/5fc70ad3286a8d8ec4b9ac01acad0f6b00c5a48d4a16b9d3be6519b7eb21/mwclient-0.10.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests-oauthlib
+Requires: python3-six
+
+%description
+<div align="center">
+ <img alt="mwclient logo" src="docs/source/logo.png"/>
+ <h1>mwclient</h1>
+</div>
+
+[![Build status][build-status-img]](https://travis-ci.org/mwclient/mwclient)
+[![Test coverage][test-coverage-img]](https://coveralls.io/r/mwclient/mwclient)
+[![Latest version][latest-version-img]](https://pypi.python.org/pypi/mwclient)
+[![MIT license][mit-license-img]](http://opensource.org/licenses/MIT)
+[![Documentation status][documentation-status-img]](http://mwclient.readthedocs.io/en/latest/)
+[![Issue statistics][issue-statistics-img]](http://isitmaintained.com/project/tldr-pages/tldr)
+[![Gitter chat][gitter-chat-img]](https://gitter.im/mwclient/mwclient)
+
+
+[build-status-img]: https://img.shields.io/travis/mwclient/mwclient.svg
+[test-coverage-img]: https://img.shields.io/coveralls/mwclient/mwclient.svg
+[latest-version-img]: https://img.shields.io/pypi/v/mwclient.svg
+[mit-license-img]: https://img.shields.io/github/license/mwclient/mwclient.svg
+[documentation-status-img]: https://readthedocs.org/projects/mwclient/badge/
+[issue-statistics-img]: http://isitmaintained.com/badge/resolution/tldr-pages/tldr.svg
+[gitter-chat-img]: https://img.shields.io/gitter/room/mwclient/mwclient.svg
+
+mwclient is a lightweight Python client library to the
+[MediaWiki API](https://mediawiki.org/wiki/API)
+which provides access to most API functionality.
+It works with Python 2.7 as well as 3.5 and above,
+and supports MediaWiki 1.16 and above.
+For functions not available in the current MediaWiki,
+a `MediaWikiVersionError` is raised.
+
+The current stable
+[version 0.10.1](https://github.com/mwclient/mwclient/archive/v0.10.1.zip)
+is [available through PyPI](https://pypi.python.org/pypi/mwclient):
+
+```
+$ pip install mwclient
+```
+
+The current [development version](https://github.com/mwclient/mwclient)
+can be installed from GitHub:
+
+```
+$ pip install git+git://github.com/mwclient/mwclient.git
+```
+
+Please see the [changelog
+document](https://github.com/mwclient/mwclient/blob/master/CHANGELOG.md)
+for a list of changes.
+
+## Documentation
+
+Up-to-date documentation is hosted [at Read the Docs](http://mwclient.readthedocs.io/en/latest/).
+It includes a user guide to get started using mwclient, a reference guide,
+implementation and development notes.
+
+There is also some documentation on the [GitHub wiki](https://github.com/mwclient/mwclient/wiki)
+that hasn't been ported yet.
+If you want to help, you're welcome!
+
+## Contributing
+
+Patches are welcome! See [this page](https://mwclient.readthedocs.io/en/latest/development/)
+for information on how to get started with mwclient development.
+
+
+
+
+%package -n python3-mwclient
+Summary: MediaWiki API client
+Provides: python-mwclient
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mwclient
+<div align="center">
+ <img alt="mwclient logo" src="docs/source/logo.png"/>
+ <h1>mwclient</h1>
+</div>
+
+[![Build status][build-status-img]](https://travis-ci.org/mwclient/mwclient)
+[![Test coverage][test-coverage-img]](https://coveralls.io/r/mwclient/mwclient)
+[![Latest version][latest-version-img]](https://pypi.python.org/pypi/mwclient)
+[![MIT license][mit-license-img]](http://opensource.org/licenses/MIT)
+[![Documentation status][documentation-status-img]](http://mwclient.readthedocs.io/en/latest/)
+[![Issue statistics][issue-statistics-img]](http://isitmaintained.com/project/tldr-pages/tldr)
+[![Gitter chat][gitter-chat-img]](https://gitter.im/mwclient/mwclient)
+
+
+[build-status-img]: https://img.shields.io/travis/mwclient/mwclient.svg
+[test-coverage-img]: https://img.shields.io/coveralls/mwclient/mwclient.svg
+[latest-version-img]: https://img.shields.io/pypi/v/mwclient.svg
+[mit-license-img]: https://img.shields.io/github/license/mwclient/mwclient.svg
+[documentation-status-img]: https://readthedocs.org/projects/mwclient/badge/
+[issue-statistics-img]: http://isitmaintained.com/badge/resolution/tldr-pages/tldr.svg
+[gitter-chat-img]: https://img.shields.io/gitter/room/mwclient/mwclient.svg
+
+mwclient is a lightweight Python client library to the
+[MediaWiki API](https://mediawiki.org/wiki/API)
+which provides access to most API functionality.
+It works with Python 2.7 as well as 3.5 and above,
+and supports MediaWiki 1.16 and above.
+For functions not available in the current MediaWiki,
+a `MediaWikiVersionError` is raised.
+
+The current stable
+[version 0.10.1](https://github.com/mwclient/mwclient/archive/v0.10.1.zip)
+is [available through PyPI](https://pypi.python.org/pypi/mwclient):
+
+```
+$ pip install mwclient
+```
+
+The current [development version](https://github.com/mwclient/mwclient)
+can be installed from GitHub:
+
+```
+$ pip install git+git://github.com/mwclient/mwclient.git
+```
+
+Please see the [changelog
+document](https://github.com/mwclient/mwclient/blob/master/CHANGELOG.md)
+for a list of changes.
+
+## Documentation
+
+Up-to-date documentation is hosted [at Read the Docs](http://mwclient.readthedocs.io/en/latest/).
+It includes a user guide to get started using mwclient, a reference guide,
+implementation and development notes.
+
+There is also some documentation on the [GitHub wiki](https://github.com/mwclient/mwclient/wiki)
+that hasn't been ported yet.
+If you want to help, you're welcome!
+
+## Contributing
+
+Patches are welcome! See [this page](https://mwclient.readthedocs.io/en/latest/development/)
+for information on how to get started with mwclient development.
+
+
+
+
+%package help
+Summary: Development documents and examples for mwclient
+Provides: python3-mwclient-doc
+%description help
+<div align="center">
+ <img alt="mwclient logo" src="docs/source/logo.png"/>
+ <h1>mwclient</h1>
+</div>
+
+[![Build status][build-status-img]](https://travis-ci.org/mwclient/mwclient)
+[![Test coverage][test-coverage-img]](https://coveralls.io/r/mwclient/mwclient)
+[![Latest version][latest-version-img]](https://pypi.python.org/pypi/mwclient)
+[![MIT license][mit-license-img]](http://opensource.org/licenses/MIT)
+[![Documentation status][documentation-status-img]](http://mwclient.readthedocs.io/en/latest/)
+[![Issue statistics][issue-statistics-img]](http://isitmaintained.com/project/tldr-pages/tldr)
+[![Gitter chat][gitter-chat-img]](https://gitter.im/mwclient/mwclient)
+
+
+[build-status-img]: https://img.shields.io/travis/mwclient/mwclient.svg
+[test-coverage-img]: https://img.shields.io/coveralls/mwclient/mwclient.svg
+[latest-version-img]: https://img.shields.io/pypi/v/mwclient.svg
+[mit-license-img]: https://img.shields.io/github/license/mwclient/mwclient.svg
+[documentation-status-img]: https://readthedocs.org/projects/mwclient/badge/
+[issue-statistics-img]: http://isitmaintained.com/badge/resolution/tldr-pages/tldr.svg
+[gitter-chat-img]: https://img.shields.io/gitter/room/mwclient/mwclient.svg
+
+mwclient is a lightweight Python client library to the
+[MediaWiki API](https://mediawiki.org/wiki/API)
+which provides access to most API functionality.
+It works with Python 2.7 as well as 3.5 and above,
+and supports MediaWiki 1.16 and above.
+For functions not available in the current MediaWiki,
+a `MediaWikiVersionError` is raised.
+
+The current stable
+[version 0.10.1](https://github.com/mwclient/mwclient/archive/v0.10.1.zip)
+is [available through PyPI](https://pypi.python.org/pypi/mwclient):
+
+```
+$ pip install mwclient
+```
+
+The current [development version](https://github.com/mwclient/mwclient)
+can be installed from GitHub:
+
+```
+$ pip install git+git://github.com/mwclient/mwclient.git
+```
+
+Please see the [changelog
+document](https://github.com/mwclient/mwclient/blob/master/CHANGELOG.md)
+for a list of changes.
+
+## Documentation
+
+Up-to-date documentation is hosted [at Read the Docs](http://mwclient.readthedocs.io/en/latest/).
+It includes a user guide to get started using mwclient, a reference guide,
+implementation and development notes.
+
+There is also some documentation on the [GitHub wiki](https://github.com/mwclient/mwclient/wiki)
+that hasn't been ported yet.
+If you want to help, you're welcome!
+
+## Contributing
+
+Patches are welcome! See [this page](https://mwclient.readthedocs.io/en/latest/development/)
+for information on how to get started with mwclient development.
+
+
+
+
+%prep
+%autosetup -n mwclient-0.10.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mwclient -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..194e225
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+148bd36bfaaf591bd9c0076cbf1ed888 mwclient-0.10.1.tar.gz