diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:01:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:01:26 +0000 |
commit | f2ce0e919b153d5d3cfcdbd7c6a5b5d7337591b1 (patch) | |
tree | 77e306831be81acf767de9707470b45f1727969d /python-anilistpy.spec | |
parent | fb432f10208babda0b1895f9b73ed875fbae794e (diff) |
automatic import of python-anilistpy
Diffstat (limited to 'python-anilistpy.spec')
-rw-r--r-- | python-anilistpy.spec | 219 |
1 files changed, 219 insertions, 0 deletions
diff --git a/python-anilistpy.spec b/python-anilistpy.spec new file mode 100644 index 0000000..04342e1 --- /dev/null +++ b/python-anilistpy.spec @@ -0,0 +1,219 @@ +%global _empty_manifest_terminate_build 0 +Name: python-anilistpy +Version: 0.1.0 +Release: 1 +Summary: python API wrapper for anilist.co +License: GNU Affero General Public License v3 +URL: https://github.com/anilistpy/anilistpy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/2e/05f6f0b77f8200e8d1ba2d6e996181d1bd4fbc846ce7ec63364dd20eeccd/anilistpy-0.1.0.tar.gz +BuildArch: noarch + + +%description +# Anilistpy  + +[](https://travis-ci.com/anilistpy/anilistpy) +[](https://www.codefactor.io/repository/github/anilistpy/anilistpy) + +[](https://pypi.org/project/anilistpy/) +[](https://github.com/anilistpy/anilistpy/blob/master/license) + +An easy to use python3 wrapper for anilist.co APIv2 (UNOFFICIAL) + +# Installing + +## Installing from pypi + +``` +pip install anilistpy +``` + +## Installing from git +``` +pip install git+https://github.com/anilistpy/anilistpy +``` + +## Installing from git (Unstable / Development branch) +``` +pip install git+https://github.com/anilistpy/anilistpy@dev +``` + +# Getting started + +# Importing + +```py +import anilistpy +``` + +or manually import the method/class you need +```py +from anilistpy import Anime +``` + +More Documenation and Examples [here](https://anilistpy.github.io/) +(note: the Documenation is still being updated, if you need help make a issue) + +# Change log 0.0.4 -> 0.0.5 + +- added wrappers for mutation api +- more minor stuffs + + + +%package -n python3-anilistpy +Summary: python API wrapper for anilist.co +Provides: python-anilistpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-anilistpy +# Anilistpy  + +[](https://travis-ci.com/anilistpy/anilistpy) +[](https://www.codefactor.io/repository/github/anilistpy/anilistpy) + +[](https://pypi.org/project/anilistpy/) +[](https://github.com/anilistpy/anilistpy/blob/master/license) + +An easy to use python3 wrapper for anilist.co APIv2 (UNOFFICIAL) + +# Installing + +## Installing from pypi + +``` +pip install anilistpy +``` + +## Installing from git +``` +pip install git+https://github.com/anilistpy/anilistpy +``` + +## Installing from git (Unstable / Development branch) +``` +pip install git+https://github.com/anilistpy/anilistpy@dev +``` + +# Getting started + +# Importing + +```py +import anilistpy +``` + +or manually import the method/class you need +```py +from anilistpy import Anime +``` + +More Documenation and Examples [here](https://anilistpy.github.io/) +(note: the Documenation is still being updated, if you need help make a issue) + +# Change log 0.0.4 -> 0.0.5 + +- added wrappers for mutation api +- more minor stuffs + + + +%package help +Summary: Development documents and examples for anilistpy +Provides: python3-anilistpy-doc +%description help +# Anilistpy  + +[](https://travis-ci.com/anilistpy/anilistpy) +[](https://www.codefactor.io/repository/github/anilistpy/anilistpy) + +[](https://pypi.org/project/anilistpy/) +[](https://github.com/anilistpy/anilistpy/blob/master/license) + +An easy to use python3 wrapper for anilist.co APIv2 (UNOFFICIAL) + +# Installing + +## Installing from pypi + +``` +pip install anilistpy +``` + +## Installing from git +``` +pip install git+https://github.com/anilistpy/anilistpy +``` + +## Installing from git (Unstable / Development branch) +``` +pip install git+https://github.com/anilistpy/anilistpy@dev +``` + +# Getting started + +# Importing + +```py +import anilistpy +``` + +or manually import the method/class you need +```py +from anilistpy import Anime +``` + +More Documenation and Examples [here](https://anilistpy.github.io/) +(note: the Documenation is still being updated, if you need help make a issue) + +# Change log 0.0.4 -> 0.0.5 + +- added wrappers for mutation api +- more minor stuffs + + + +%prep +%autosetup -n anilistpy-0.1.0 + +%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-anilistpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1 +- Package Spec generated |