summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:42:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:42:08 +0000
commitdae21b78795c89a5e09a4a644b5340f5af0568fb (patch)
tree4f2061745d5b03f26c83b8c842dc52ca6c22969a
parentbefde4239968e32989b6a076fd6adfb86f9de2d5 (diff)
automatic import of python-arsenic
-rw-r--r--.gitignore1
-rw-r--r--python-arsenic.spec204
-rw-r--r--sources1
3 files changed, 206 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a57424b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+
+[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/main.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/main) [![Documentation Status](https://readthedocs.org/projects/arsenic/badge/?version=latest)](http://arsenic.readthedocs.io/en/latest/?badge=latest)
+[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)
+[![Appveyor status](https://ci.appveyor.com/api/projects/status/8l0koom7h93y1f9q?svg=true)](https://ci.appveyor.com/project/ojii/arsenic)
+[![PyPI version](https://badge.fury.io/py/arsenic.svg)](https://badge.fury.io/py/arsenic)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](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).
+
+[![Browserstack](./.circleci/browserstack-logo.png)](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
+
+[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/main.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/main) [![Documentation Status](https://readthedocs.org/projects/arsenic/badge/?version=latest)](http://arsenic.readthedocs.io/en/latest/?badge=latest)
+[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)
+[![Appveyor status](https://ci.appveyor.com/api/projects/status/8l0koom7h93y1f9q?svg=true)](https://ci.appveyor.com/project/ojii/arsenic)
+[![PyPI version](https://badge.fury.io/py/arsenic.svg)](https://badge.fury.io/py/arsenic)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](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).
+
+[![Browserstack](./.circleci/browserstack-logo.png)](http://browserstack.com/)
+
+
+%package help
+Summary: Development documents and examples for arsenic
+Provides: python3-arsenic-doc
+%description help
+# Async Webdriver
+
+[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/main.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/main) [![Documentation Status](https://readthedocs.org/projects/arsenic/badge/?version=latest)](http://arsenic.readthedocs.io/en/latest/?badge=latest)
+[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)](https://automate.browserstack.com/public-build/QmtNVHFnWWRFSEVUdTBZNWU5NGMraVorWVltazFqRk1VNWRydW5FRXU2dz0tLVhoTlFuK2tZUTJ1UGx0UmZaWjg4R1E9PQ==--35ef3d28fbf8ea24ee7fa2a435f9271fbaaf85d4)
+[![Appveyor status](https://ci.appveyor.com/api/projects/status/8l0koom7h93y1f9q?svg=true)](https://ci.appveyor.com/project/ojii/arsenic)
+[![PyPI version](https://badge.fury.io/py/arsenic.svg)](https://badge.fury.io/py/arsenic)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](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).
+
+[![Browserstack](./.circleci/browserstack-logo.png)](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
diff --git a/sources b/sources
new file mode 100644
index 0000000..0e30a45
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0275ee5520d09c823b91b44cd0af0c29 arsenic-21.8.tar.gz