diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:25:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:25:55 +0000 |
commit | da855ccf6eb43b6ca739a58bc3f9b24a170240b2 (patch) | |
tree | 6b81ff86d73ba65651421503df3f32b0a6bf7e98 | |
parent | eb8cca956e047a0d49ed701a8bb196f1d233fa6d (diff) |
automatic import of python-carbonnow
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-carbonnow.spec | 254 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 256 insertions, 0 deletions
@@ -0,0 +1 @@ +/carbonnow-0.0.1.tar.gz diff --git a/python-carbonnow.spec b/python-carbonnow.spec new file mode 100644 index 0000000..a9761be --- /dev/null +++ b/python-carbonnow.spec @@ -0,0 +1,254 @@ +%global _empty_manifest_terminate_build 0 +Name: python-carbonnow +Version: 0.0.1 +Release: 1 +Summary: carbon.now.sh API Wrapper powered by Carbonara +License: GNU Lesser General Public License v3 (LGPLv3) +URL: https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7b/43/64d4443e90c94340ffb0b9752c2f34dd973b1f5d54f1c2d6c34e0664ac64/carbonnow-0.0.1.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-asyncio + +%description +## Carbonara API Wrapper + +### âŦī¸ Installing Carbon-Now via đ pip: + +``` +pip install carbonnow +``` + +### đ Upgrading Carbon-Now via đ pip: + +``` +pip install -U carbonnow +``` + +### âŦī¸ Installing Carbon-Now via đ source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### đ Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### đ Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%package -n python3-carbonnow +Summary: carbon.now.sh API Wrapper powered by Carbonara +Provides: python-carbonnow +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-carbonnow +## Carbonara API Wrapper + +### âŦī¸ Installing Carbon-Now via đ pip: + +``` +pip install carbonnow +``` + +### đ Upgrading Carbon-Now via đ pip: + +``` +pip install -U carbonnow +``` + +### âŦī¸ Installing Carbon-Now via đ source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### đ Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### đ Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%package help +Summary: Development documents and examples for carbonnow +Provides: python3-carbonnow-doc +%description help +## Carbonara API Wrapper + +### âŦī¸ Installing Carbon-Now via đ pip: + +``` +pip install carbonnow +``` + +### đ Upgrading Carbon-Now via đ pip: + +``` +pip install -U carbonnow +``` + +### âŦī¸ Installing Carbon-Now via đ source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### đ Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### đ Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%prep +%autosetup -n carbonnow-0.0.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-carbonnow -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +bee61ea19a4f220f36d0dd2d560b6588 carbonnow-0.0.1.tar.gz |