summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 09:22:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 09:22:28 +0000
commitb44d74e556f8eab3695aff3c42ecba636772a925 (patch)
treebc2cab026e5e3d97fb3e9a681c386f74043b12da
parent3bd47d067ef58584ef2e059a57cce92c82e4c04b (diff)
automatic import of python-Waifulabsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-waifulabs.spec308
-rw-r--r--sources1
3 files changed, 310 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2ebb0c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Waifulabs-1.1.1.tar.gz
diff --git a/python-waifulabs.spec b/python-waifulabs.spec
new file mode 100644
index 0000000..4702a47
--- /dev/null
+++ b/python-waifulabs.spec
@@ -0,0 +1,308 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Waifulabs
+Version: 1.1.1
+Release: 1
+Summary: A unofficial wrapper for WaifuLabs
+License: MIT License
+URL: https://github.com/Taromaruu/WaifuLabs
+Source0: https://mirrors.aliyun.com/pypi/web/packages/54/12/0057ea6d8ab9a4a66f650c3b480f83f61db0038d24ae872580b7e6a74e64/Waifulabs-1.1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-aiohttp
+
+%description
+# WaifuLabs
+
+A unofficial wrapper for WaifuLabs (WaifuLabs用の非公式Pythonパッケージ)
+
+[![PyPI](https://img.shields.io/pypi/v/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![PyPi - Downloads](https://img.shields.io/pypi/dm/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![GitHub issues](https://img.shields.io/github/issues/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/issues)
+[![License](https://img.shields.io/github/license/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/blob/main/LICENSE)
+
+## Generate a waifu (一つつのWaifuを生成します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+```
+
+## Generate 16 waifus (16のWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifus()
+```
+
+## Save a waifu (Waifuをコンピューターに保存します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+
+waifu.save("waifus/mywaifu.png")
+```
+
+## Generate a big waifu (Higher quality) (大きなWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+bigwaifu = waifu.GenerateBigWaifu()
+
+bigwaifu.save("waifus/mybigwaifu.png")
+```
+
+## Generate a waifu product (Waifu製品を生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+waifupillow = waifu.GenerateProduct(waifulabs.PILLOW)
+waifuposter = waifu.GenerateProduct(waifulabs.POSTER)
+
+waifupillow.save("waifus/mywaifupillow.png")
+waifuposter.save("waifus/mywaifuposter.png")
+```
+
+# About steps (ステップについて)
+
+Steps is the seed waifulabs uses to modify a waifu. (ステップはWaifuの外観を変更します)
+
+Step 0: (ステップ0)
+> Choose a template waifu (テンプレートWaifuを選択してください)
+
+Step 1: (ステップ1)
+> Change the color palette (カラーパレットを変更する)
+
+Step 2: (ステップ2)
+> File tuning of details (詳細を微調整)
+
+Step 3: (ステップ3)
+> Change Pose (ポーズを変える)
+
+Steps are available for `GenerateWaifu` and `GenerateWaifus` (Stepは、 `GenerateWaifu`と` GenerateWaifus`で機能します)
+
+# Build from source (コードから構築)
+On Windows run `install.bat` in cmd (Windowsでは、cmdで `install.bat`を実行します)
+
+On Linux and Mac you can run `install.sh` in a terminal (MacまたはLinuxでは、ターミナルで `install.sh`を実行します)
+
+
+
+
+%package -n python3-Waifulabs
+Summary: A unofficial wrapper for WaifuLabs
+Provides: python-Waifulabs
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Waifulabs
+# WaifuLabs
+
+A unofficial wrapper for WaifuLabs (WaifuLabs用の非公式Pythonパッケージ)
+
+[![PyPI](https://img.shields.io/pypi/v/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![PyPi - Downloads](https://img.shields.io/pypi/dm/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![GitHub issues](https://img.shields.io/github/issues/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/issues)
+[![License](https://img.shields.io/github/license/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/blob/main/LICENSE)
+
+## Generate a waifu (一つつのWaifuを生成します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+```
+
+## Generate 16 waifus (16のWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifus()
+```
+
+## Save a waifu (Waifuをコンピューターに保存します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+
+waifu.save("waifus/mywaifu.png")
+```
+
+## Generate a big waifu (Higher quality) (大きなWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+bigwaifu = waifu.GenerateBigWaifu()
+
+bigwaifu.save("waifus/mybigwaifu.png")
+```
+
+## Generate a waifu product (Waifu製品を生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+waifupillow = waifu.GenerateProduct(waifulabs.PILLOW)
+waifuposter = waifu.GenerateProduct(waifulabs.POSTER)
+
+waifupillow.save("waifus/mywaifupillow.png")
+waifuposter.save("waifus/mywaifuposter.png")
+```
+
+# About steps (ステップについて)
+
+Steps is the seed waifulabs uses to modify a waifu. (ステップはWaifuの外観を変更します)
+
+Step 0: (ステップ0)
+> Choose a template waifu (テンプレートWaifuを選択してください)
+
+Step 1: (ステップ1)
+> Change the color palette (カラーパレットを変更する)
+
+Step 2: (ステップ2)
+> File tuning of details (詳細を微調整)
+
+Step 3: (ステップ3)
+> Change Pose (ポーズを変える)
+
+Steps are available for `GenerateWaifu` and `GenerateWaifus` (Stepは、 `GenerateWaifu`と` GenerateWaifus`で機能します)
+
+# Build from source (コードから構築)
+On Windows run `install.bat` in cmd (Windowsでは、cmdで `install.bat`を実行します)
+
+On Linux and Mac you can run `install.sh` in a terminal (MacまたはLinuxでは、ターミナルで `install.sh`を実行します)
+
+
+
+
+%package help
+Summary: Development documents and examples for Waifulabs
+Provides: python3-Waifulabs-doc
+%description help
+# WaifuLabs
+
+A unofficial wrapper for WaifuLabs (WaifuLabs用の非公式Pythonパッケージ)
+
+[![PyPI](https://img.shields.io/pypi/v/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![PyPi - Downloads](https://img.shields.io/pypi/dm/waifulabs)](https://pypi.org/project/WaifuLabs/)
+[![GitHub issues](https://img.shields.io/github/issues/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/issues)
+[![License](https://img.shields.io/github/license/Taromaruu/WaifuLabs)](https://github.com/Taromaruu/WaifuLabs/blob/main/LICENSE)
+
+## Generate a waifu (一つつのWaifuを生成します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+```
+
+## Generate 16 waifus (16のWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifus()
+```
+
+## Save a waifu (Waifuをコンピューターに保存します)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+
+waifu.save("waifus/mywaifu.png")
+```
+
+## Generate a big waifu (Higher quality) (大きなWaifuを生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+bigwaifu = waifu.GenerateBigWaifu()
+
+bigwaifu.save("waifus/mybigwaifu.png")
+```
+
+## Generate a waifu product (Waifu製品を生成する)
+```python
+import waifulabs
+
+waifu = waifulabs.GenerateWaifu()
+waifupillow = waifu.GenerateProduct(waifulabs.PILLOW)
+waifuposter = waifu.GenerateProduct(waifulabs.POSTER)
+
+waifupillow.save("waifus/mywaifupillow.png")
+waifuposter.save("waifus/mywaifuposter.png")
+```
+
+# About steps (ステップについて)
+
+Steps is the seed waifulabs uses to modify a waifu. (ステップはWaifuの外観を変更します)
+
+Step 0: (ステップ0)
+> Choose a template waifu (テンプレートWaifuを選択してください)
+
+Step 1: (ステップ1)
+> Change the color palette (カラーパレットを変更する)
+
+Step 2: (ステップ2)
+> File tuning of details (詳細を微調整)
+
+Step 3: (ステップ3)
+> Change Pose (ポーズを変える)
+
+Steps are available for `GenerateWaifu` and `GenerateWaifus` (Stepは、 `GenerateWaifu`と` GenerateWaifus`で機能します)
+
+# Build from source (コードから構築)
+On Windows run `install.bat` in cmd (Windowsでは、cmdで `install.bat`を実行します)
+
+On Linux and Mac you can run `install.sh` in a terminal (MacまたはLinuxでは、ターミナルで `install.sh`を実行します)
+
+
+
+
+%prep
+%autosetup -n Waifulabs-1.1.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-Waifulabs -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..09fcbbb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+14c2be9703a0b736ed4d00ca56eb1f4e Waifulabs-1.1.1.tar.gz