diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:48:27 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:48:27 +0000 |
| commit | 8163c08aa37770746616e8318cac142c5de9893e (patch) | |
| tree | c553a90654351289a06d02ea5598084dde589749 | |
| parent | dcee3971e89c3c2b8bd9b4700a61c867579bdf8f (diff) | |
automatic import of python-chromedriver-binary-auto
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-chromedriver-binary-auto.spec | 246 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 248 insertions, 0 deletions
@@ -0,0 +1 @@ +/chromedriver-binary-auto-0.2.5.tar.gz diff --git a/python-chromedriver-binary-auto.spec b/python-chromedriver-binary-auto.spec new file mode 100644 index 0000000..c38f59e --- /dev/null +++ b/python-chromedriver-binary-auto.spec @@ -0,0 +1,246 @@ +%global _empty_manifest_terminate_build 0 +Name: python-chromedriver-binary-auto +Version: 0.2.5 +Release: 1 +Summary: Installer for chromedriver. +License: MIT +URL: https://github.com/danielkaiser/python-chromedriver-binary +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/17/c7/02270722d10c6e841f1f18a33449e92e1f773e0496d7a06204e4cc2254a1/chromedriver-binary-auto-0.2.5.tar.gz +BuildArch: noarch + + +%description +# chromedriver-binary +Downloads and installs the [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) binary version 88.0.4324.27 for automated testing of webapps. The installer supports Linux, MacOS and Windows operating systems. + +Alternatively the package [chromedriver-binary-auto](https://pypi.org/project/chromedriver-binary-auto/) can be used to automatically detect the latest chromedriver version required for the installed Chrome/Chromium browser. + +## Installation + +### Latest and fixed versions + +#### From PyPI +``` +pip install chromedriver-binary +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git +``` + +### Automatically detected versions + +Please make sure to install Chrome or Chromium first and add the browser to the binary search path. + +#### From PyPI +``` +pip install chromedriver-binary-auto +``` + +To redetect the required version and install the newest suitable chromedriver after the first installation simply reinstall the package using +``` +pip install --upgrade --force-reinstall chromedriver-binary-auto +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git#chromedriver-binary-auto +``` + +If the installed chromedriver version does not match your browser's version please try to [empty pip's cache](https://pip.pypa.io/en/stable/cli/pip_cache/) or disable the cache during (re-)installation. + +## Usage +To use chromedriver just `import chromedriver_binary`. This will add the executable to your PATH so it will be found. You can also get the absolute filename of the binary with `chromedriver_binary.chromedriver_filename`. + +### Example +``` +from selenium import webdriver +import chromedriver_binary # Adds chromedriver binary to path + +driver = webdriver.Chrome() +driver.get("http://www.python.org") +assert "Python" in driver.title +``` + +### Exporting chromedriver binary path +This package installs a small shell script `chromedriver-path` to easily set and export the PATH variable: +``` +$ export PATH=$PATH:`chromedriver-path` +``` + + +%package -n python3-chromedriver-binary-auto +Summary: Installer for chromedriver. +Provides: python-chromedriver-binary-auto +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-chromedriver-binary-auto +# chromedriver-binary +Downloads and installs the [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) binary version 88.0.4324.27 for automated testing of webapps. The installer supports Linux, MacOS and Windows operating systems. + +Alternatively the package [chromedriver-binary-auto](https://pypi.org/project/chromedriver-binary-auto/) can be used to automatically detect the latest chromedriver version required for the installed Chrome/Chromium browser. + +## Installation + +### Latest and fixed versions + +#### From PyPI +``` +pip install chromedriver-binary +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git +``` + +### Automatically detected versions + +Please make sure to install Chrome or Chromium first and add the browser to the binary search path. + +#### From PyPI +``` +pip install chromedriver-binary-auto +``` + +To redetect the required version and install the newest suitable chromedriver after the first installation simply reinstall the package using +``` +pip install --upgrade --force-reinstall chromedriver-binary-auto +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git#chromedriver-binary-auto +``` + +If the installed chromedriver version does not match your browser's version please try to [empty pip's cache](https://pip.pypa.io/en/stable/cli/pip_cache/) or disable the cache during (re-)installation. + +## Usage +To use chromedriver just `import chromedriver_binary`. This will add the executable to your PATH so it will be found. You can also get the absolute filename of the binary with `chromedriver_binary.chromedriver_filename`. + +### Example +``` +from selenium import webdriver +import chromedriver_binary # Adds chromedriver binary to path + +driver = webdriver.Chrome() +driver.get("http://www.python.org") +assert "Python" in driver.title +``` + +### Exporting chromedriver binary path +This package installs a small shell script `chromedriver-path` to easily set and export the PATH variable: +``` +$ export PATH=$PATH:`chromedriver-path` +``` + + +%package help +Summary: Development documents and examples for chromedriver-binary-auto +Provides: python3-chromedriver-binary-auto-doc +%description help +# chromedriver-binary +Downloads and installs the [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) binary version 88.0.4324.27 for automated testing of webapps. The installer supports Linux, MacOS and Windows operating systems. + +Alternatively the package [chromedriver-binary-auto](https://pypi.org/project/chromedriver-binary-auto/) can be used to automatically detect the latest chromedriver version required for the installed Chrome/Chromium browser. + +## Installation + +### Latest and fixed versions + +#### From PyPI +``` +pip install chromedriver-binary +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git +``` + +### Automatically detected versions + +Please make sure to install Chrome or Chromium first and add the browser to the binary search path. + +#### From PyPI +``` +pip install chromedriver-binary-auto +``` + +To redetect the required version and install the newest suitable chromedriver after the first installation simply reinstall the package using +``` +pip install --upgrade --force-reinstall chromedriver-binary-auto +``` + +#### From GitHub +``` +pip install git+https://github.com/danielkaiser/python-chromedriver-binary.git#chromedriver-binary-auto +``` + +If the installed chromedriver version does not match your browser's version please try to [empty pip's cache](https://pip.pypa.io/en/stable/cli/pip_cache/) or disable the cache during (re-)installation. + +## Usage +To use chromedriver just `import chromedriver_binary`. This will add the executable to your PATH so it will be found. You can also get the absolute filename of the binary with `chromedriver_binary.chromedriver_filename`. + +### Example +``` +from selenium import webdriver +import chromedriver_binary # Adds chromedriver binary to path + +driver = webdriver.Chrome() +driver.get("http://www.python.org") +assert "Python" in driver.title +``` + +### Exporting chromedriver binary path +This package installs a small shell script `chromedriver-path` to easily set and export the PATH variable: +``` +$ export PATH=$PATH:`chromedriver-path` +``` + + +%prep +%autosetup -n chromedriver-binary-auto-0.2.5 + +%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-chromedriver-binary-auto -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.5-1 +- Package Spec generated @@ -0,0 +1 @@ +c59fa07632639b2811fec73e6e2c4e98 chromedriver-binary-auto-0.2.5.tar.gz |
