diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 02:42:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 02:42:08 +0000 |
commit | dae21b78795c89a5e09a4a644b5340f5af0568fb (patch) | |
tree | 4f2061745d5b03f26c83b8c842dc52ca6c22969a | |
parent | befde4239968e32989b6a076fd6adfb86f9de2d5 (diff) |
automatic import of python-arsenic
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-arsenic.spec | 204 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 206 insertions, 0 deletions
@@ -0,0 +1 @@ +/arsenic-21.8.tar.gz diff --git a/python-arsenic.spec b/python-arsenic.spec new file mode 100644 index 0000000..5bcc5ba --- /dev/null +++ b/python-arsenic.spec @@ -0,0 +1,204 @@ +%global _empty_manifest_terminate_build 0 +Name: python-arsenic +Version: 21.8 +Release: 1 +Summary: Asynchronous WebDriver client +License: Apache-2.0 +URL: https://github.com/HDE/arsenic +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/17/0fee2eeb845b7d8de7fcc5af56b9991f45615c6e3486c0de2d1531453c67/arsenic-21.8.tar.gz +BuildArch: noarch + +Requires: python3-attrs +Requires: python3-structlog +Requires: python3-aiohttp + +%description +# Async Webdriver + +[](https://circleci.com/gh/HDE/arsenic/tree/main) [](http://arsenic.readthedocs.io/en/latest/?badge=latest) +[](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4) +[](https://ci.appveyor.com/project/ojii/arsenic) +[](https://badge.fury.io/py/arsenic) +[](https://github.com/ambv/black) +[](https://opensource.org/licenses/Apache-2.0) + + +Asynchronous webdriver client built on asyncio. + + +## Quickstart + +Let's run a local Firefox instance. + + +```python + +from arsenic import get_session +from arsenic.browsers import Firefox +from arsenic.services import Geckodriver + + +async def example(): + # Runs geckodriver and starts a firefox session + async with get_session(Geckodriver(), Firefox()) as session: + # go to example.com + await session.get('http://example.com') + # wait up to 5 seconds to get the h1 element from the page + h1 = await session.wait_for_element(5, 'h1') + # print the text of the h1 element + print(await h1.get_text()) +``` + +For more information, check [the documentation](https://arsenic.readthedocs.io/) + +## CI Supported by Browserstack + +Continuous integration for certain browsers is generously provided by [Browserstack](http://browserstack.com). + +[](http://browserstack.com/) + + +%package -n python3-arsenic +Summary: Asynchronous WebDriver client +Provides: python-arsenic +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-arsenic +# Async Webdriver + +[](https://circleci.com/gh/HDE/arsenic/tree/main) [](http://arsenic.readthedocs.io/en/latest/?badge=latest) +[](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4) +[](https://ci.appveyor.com/project/ojii/arsenic) +[](https://badge.fury.io/py/arsenic) +[](https://github.com/ambv/black) +[](https://opensource.org/licenses/Apache-2.0) + + +Asynchronous webdriver client built on asyncio. + + +## Quickstart + +Let's run a local Firefox instance. + + +```python + +from arsenic import get_session +from arsenic.browsers import Firefox +from arsenic.services import Geckodriver + + +async def example(): + # Runs geckodriver and starts a firefox session + async with get_session(Geckodriver(), Firefox()) as session: + # go to example.com + await session.get('http://example.com') + # wait up to 5 seconds to get the h1 element from the page + h1 = await session.wait_for_element(5, 'h1') + # print the text of the h1 element + print(await h1.get_text()) +``` + +For more information, check [the documentation](https://arsenic.readthedocs.io/) + +## CI Supported by Browserstack + +Continuous integration for certain browsers is generously provided by [Browserstack](http://browserstack.com). + +[](http://browserstack.com/) + + +%package help +Summary: Development documents and examples for arsenic +Provides: python3-arsenic-doc +%description help +# Async Webdriver + +[](https://circleci.com/gh/HDE/arsenic/tree/main) [](http://arsenic.readthedocs.io/en/latest/?badge=latest) +[](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4) +[](https://ci.appveyor.com/project/ojii/arsenic) +[](https://badge.fury.io/py/arsenic) +[](https://github.com/ambv/black) +[](https://opensource.org/licenses/Apache-2.0) + + +Asynchronous webdriver client built on asyncio. + + +## Quickstart + +Let's run a local Firefox instance. + + +```python + +from arsenic import get_session +from arsenic.browsers import Firefox +from arsenic.services import Geckodriver + + +async def example(): + # Runs geckodriver and starts a firefox session + async with get_session(Geckodriver(), Firefox()) as session: + # go to example.com + await session.get('http://example.com') + # wait up to 5 seconds to get the h1 element from the page + h1 = await session.wait_for_element(5, 'h1') + # print the text of the h1 element + print(await h1.get_text()) +``` + +For more information, check [the documentation](https://arsenic.readthedocs.io/) + +## CI Supported by Browserstack + +Continuous integration for certain browsers is generously provided by [Browserstack](http://browserstack.com). + +[](http://browserstack.com/) + + +%prep +%autosetup -n arsenic-21.8 + +%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-arsenic -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 21.8-1 +- Package Spec generated @@ -0,0 +1 @@ +0275ee5520d09c823b91b44cd0af0c29 arsenic-21.8.tar.gz |