diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 11:11:27 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 11:11:27 +0000 |
| commit | fc53b5d02cdec8b6fed7285f4b5812ff18bd73e0 (patch) | |
| tree | 467eca665080626924e43a7852d40dc912a76c07 /python-pybooru.spec | |
| parent | 659c6386ef0a2c6b6ec35d7efd7441672e7abef9 (diff) | |
automatic import of python-pybooruopeneuler20.03
Diffstat (limited to 'python-pybooru.spec')
| -rw-r--r-- | python-pybooru.spec | 370 |
1 files changed, 370 insertions, 0 deletions
diff --git a/python-pybooru.spec b/python-pybooru.spec new file mode 100644 index 0000000..fd67bc4 --- /dev/null +++ b/python-pybooru.spec @@ -0,0 +1,370 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Pybooru +Version: 4.2.2 +Release: 1 +Summary: Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites. +License: MIT License +URL: https://github.com/LuqueDaniel/pybooru +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/18/149e531601092779ad57e835090f94cdbc6276ec8e71e287c1edf51989da/Pybooru-4.2.2.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +# Pybooru - Package for Danbooru/Moebooru API +[](https://pypi.python.org/pypi/Pybooru/) +[](https://pypi.python.org/pypi/Pybooru/) +[](https://raw.githubusercontent.com/LuqueDaniel/pybooru/master/LICENSE) +[](https://pybooru.readthedocs.io/en/stable/?badge=stable) + +**Pybooru** is a Python package to access to the API of Danbooru/Moebooru based sites. + +- Version: **4.2.2** +- Licensed under: **MIT License** + +## Dependencies +- Python: >= 2.7 or Python: >= 3.3 +- [requests](http://docs.python-requests.org/en/latest/) + +## Installation +### from Python Package Index (Pypi) +[Pybooru on Pypi.](https://pypi.python.org/pypi/Pybooru/) + +```bash +pip install --user Pybooru +``` + +### Manual installation +```bash +git clone git://github.com/luquedaniel/pybooru.git +cd pybooru +pip install --user -r requirements.txt +sudo python setup.py build +python setup.py install +``` + +## Examples of use +See [More examples](https://github.com/LuqueDaniel/pybooru/tree/master/examples). + +### Danbooru +```python +from pybooru import Danbooru + +client = Danbooru('danbooru') +artists = client.artist_list('ma') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +```python +from pybooru import Danbooru + +client = Danbooru('danbooru', username='your-username', api_key='your-apikey') +client.comment_create(post_id=id, body='Comment content') +``` + +### Moebooru +```python +from pybooru import Moebooru + +client = Moebooru('konachan') +artists = client.artist_list(name='neko') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +##### Default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan', username='your-username', password='your-password') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +##### Not default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan.com', username='your-username', password='your-password', + hash_string='So-I-Heard-You-Like-Mupkids-?--{0}--') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +## Documentation +You can consult the documentation on **[Read the Docs](https://pybooru.readthedocs.io/)** + +## Status +| Platform | Master | Develop | +| :------------- | :------------- | :------- | +| [Linux & OSX (Travis CI)](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | +| [Windows (AppVeyor)](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | + +## Contributing +Feel free to contribute, take a look at **[CONTRIBUTING](https://github.com/LuqueDaniel/pybooru/blob/master/CONTRIBUTING.md)**. + +## License +- **[See MIT License](https://github.com/LuqueDaniel/pybooru/blob/master/LICENSE)** + + + + +%package -n python3-Pybooru +Summary: Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites. +Provides: python-Pybooru +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Pybooru +# Pybooru - Package for Danbooru/Moebooru API +[](https://pypi.python.org/pypi/Pybooru/) +[](https://pypi.python.org/pypi/Pybooru/) +[](https://raw.githubusercontent.com/LuqueDaniel/pybooru/master/LICENSE) +[](https://pybooru.readthedocs.io/en/stable/?badge=stable) + +**Pybooru** is a Python package to access to the API of Danbooru/Moebooru based sites. + +- Version: **4.2.2** +- Licensed under: **MIT License** + +## Dependencies +- Python: >= 2.7 or Python: >= 3.3 +- [requests](http://docs.python-requests.org/en/latest/) + +## Installation +### from Python Package Index (Pypi) +[Pybooru on Pypi.](https://pypi.python.org/pypi/Pybooru/) + +```bash +pip install --user Pybooru +``` + +### Manual installation +```bash +git clone git://github.com/luquedaniel/pybooru.git +cd pybooru +pip install --user -r requirements.txt +sudo python setup.py build +python setup.py install +``` + +## Examples of use +See [More examples](https://github.com/LuqueDaniel/pybooru/tree/master/examples). + +### Danbooru +```python +from pybooru import Danbooru + +client = Danbooru('danbooru') +artists = client.artist_list('ma') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +```python +from pybooru import Danbooru + +client = Danbooru('danbooru', username='your-username', api_key='your-apikey') +client.comment_create(post_id=id, body='Comment content') +``` + +### Moebooru +```python +from pybooru import Moebooru + +client = Moebooru('konachan') +artists = client.artist_list(name='neko') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +##### Default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan', username='your-username', password='your-password') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +##### Not default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan.com', username='your-username', password='your-password', + hash_string='So-I-Heard-You-Like-Mupkids-?--{0}--') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +## Documentation +You can consult the documentation on **[Read the Docs](https://pybooru.readthedocs.io/)** + +## Status +| Platform | Master | Develop | +| :------------- | :------------- | :------- | +| [Linux & OSX (Travis CI)](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | +| [Windows (AppVeyor)](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | + +## Contributing +Feel free to contribute, take a look at **[CONTRIBUTING](https://github.com/LuqueDaniel/pybooru/blob/master/CONTRIBUTING.md)**. + +## License +- **[See MIT License](https://github.com/LuqueDaniel/pybooru/blob/master/LICENSE)** + + + + +%package help +Summary: Development documents and examples for Pybooru +Provides: python3-Pybooru-doc +%description help +# Pybooru - Package for Danbooru/Moebooru API +[](https://pypi.python.org/pypi/Pybooru/) +[](https://pypi.python.org/pypi/Pybooru/) +[](https://raw.githubusercontent.com/LuqueDaniel/pybooru/master/LICENSE) +[](https://pybooru.readthedocs.io/en/stable/?badge=stable) + +**Pybooru** is a Python package to access to the API of Danbooru/Moebooru based sites. + +- Version: **4.2.2** +- Licensed under: **MIT License** + +## Dependencies +- Python: >= 2.7 or Python: >= 3.3 +- [requests](http://docs.python-requests.org/en/latest/) + +## Installation +### from Python Package Index (Pypi) +[Pybooru on Pypi.](https://pypi.python.org/pypi/Pybooru/) + +```bash +pip install --user Pybooru +``` + +### Manual installation +```bash +git clone git://github.com/luquedaniel/pybooru.git +cd pybooru +pip install --user -r requirements.txt +sudo python setup.py build +python setup.py install +``` + +## Examples of use +See [More examples](https://github.com/LuqueDaniel/pybooru/tree/master/examples). + +### Danbooru +```python +from pybooru import Danbooru + +client = Danbooru('danbooru') +artists = client.artist_list('ma') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +```python +from pybooru import Danbooru + +client = Danbooru('danbooru', username='your-username', api_key='your-apikey') +client.comment_create(post_id=id, body='Comment content') +``` + +### Moebooru +```python +from pybooru import Moebooru + +client = Moebooru('konachan') +artists = client.artist_list(name='neko') + +for artist in artists: + print("Name: {0}".format(artist['name'])) +``` + +#### Login example +##### Default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan', username='your-username', password='your-password') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +##### Not default sites +```python +from pybooru import Moebooru + +client = Moebooru('konachan.com', username='your-username', password='your-password', + hash_string='So-I-Heard-You-Like-Mupkids-?--{0}--') +client.comment_create(post_id=id, comment_body='Comment content') +``` + +## Documentation +You can consult the documentation on **[Read the Docs](https://pybooru.readthedocs.io/)** + +## Status +| Platform | Master | Develop | +| :------------- | :------------- | :------- | +| [Linux & OSX (Travis CI)](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | [](https://travis-ci.com/LuqueDaniel/pybooru) | +| [Windows (AppVeyor)](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | [](https://ci.appveyor.com/project/LuqueDaniel/pybooru) | + +## Contributing +Feel free to contribute, take a look at **[CONTRIBUTING](https://github.com/LuqueDaniel/pybooru/blob/master/CONTRIBUTING.md)**. + +## License +- **[See MIT License](https://github.com/LuqueDaniel/pybooru/blob/master/LICENSE)** + + + + +%prep +%autosetup -n Pybooru-4.2.2 + +%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-Pybooru -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 4.2.2-1 +- Package Spec generated |
