diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:42:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:42:25 +0000 |
commit | 695438e8efbf4e768991f2f61212a1a06ca775c8 (patch) | |
tree | 6efedacde647f129b65c86fd9924b5db5742ae25 | |
parent | 233a4fe6f12862841ff0137e1478fc46fca2e0d9 (diff) |
automatic import of python-selenium-driver-updater
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-selenium-driver-updater.spec | 591 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 593 insertions, 0 deletions
@@ -0,0 +1 @@ +/selenium_driver_updater-5.1.8.tar.gz diff --git a/python-selenium-driver-updater.spec b/python-selenium-driver-updater.spec new file mode 100644 index 0000000..035d6cc --- /dev/null +++ b/python-selenium-driver-updater.spec @@ -0,0 +1,591 @@ +%global _empty_manifest_terminate_build 0 +Name: python-selenium-driver-updater +Version: 5.1.8 +Release: 1 +Summary: Download or update your Selenium driver binaries and their browsers automatically with this package +License: MIT +URL: https://github.com/Svinokur/selenium_driver_updater +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fe/33/9ebf5c6a50279d983b59a2bc190fb49dce284d7393045c7b4d42230b6de0/selenium_driver_updater-5.1.8.tar.gz +BuildArch: noarch + + +%description +# selenium_driver_updater + +[](https://badge.fury.io/py/selenium-driver-updater) +[](https://github.com/Svinokur/selenium_driver_updater/master/LICENSE) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://en.cryptobadges.io/donate/32GJnnDrPkSKVzrRho84KwD5RsMW4ywMiW) +[](https://en.cryptobadges.io/donate/0xf2691CC12a70B4589edf081E059fD4A1c457417D) + +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/windows-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/macOS-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/ubuntu-tests.yml) + +[](https://open.vscode.dev/Svinokur/selenium_driver_updater) + +It is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install selenium_driver_updater. + +``` +pip install selenium-driver-updater +``` + +## Usage in code +This example shows how you can use this library to download chromedriver binary and use it immediately. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) + +filename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver, upgrade=True, check_driver_is_up_to_date=True, old_return=False) + +driver = webdriver.Chrome(filename) +driver.get('https://google.com') + +``` + +Or you can use library to download and update chromedriver and geckodriver binaries at the same time. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) +list_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver] + +filenames = DriverUpdater.install(path=base_dir, driver_name=list_drivers, upgrade=True, check_driver_is_up_to_date=True, old_return=False) +print(filenames) + +driver_chrome = webdriver.Chrome(filename[0]) +driver_chrome.get('https://google.com') + +driver_firefox = webdriver.Firefox(filename[1]) +driver_firefox.get('https://google.com') + +``` + +## Usage with help of command line +Use +```bash +selenium-driver-updater --help +``` +To see all available arguments and commands + +# Supported Selenium Binaries + +### ``Chromedriver`` +#### ``DriverUpdater.chromedriver`` + +For installing or updating [chromedriver binary](https://chromedriver.chromium.org) + +All supported OS for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Geckodriver`` +#### ``DriverUpdater.geckodriver`` + +For installing or updating [geckodriver binary](https://github.com/mozilla/geckodriver/releases) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Operadriver`` +#### ``DriverUpdater.operadriver`` + +For installing or updating [operadriver binary](https://github.com/operasoftware/operachromiumdriver) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS + +### ``Edgedriver`` +#### ``DriverUpdater.edgedriver`` + +For installing or updating [edgedriver binary](https://developer.microsoft.com/ru-ru/microsoft-edge/tools/webdriver/) + +All supported OS's for this driver are: + +- Windows +- Windows ARM +- MacOS +- MacOS with M1 +- Linux + +### ``PhantomJS`` +#### ``DriverUpdater.phantomjs`` + +For installing or updating [phantomjs binary](https://phantomjs.org/) + +All supported OS's for this driver are: + +- Windows +- MacOS +- Linux + +### ``SafariDriver`` +#### ``DriverUpdater.safaridriver`` + +For installing or updating [safaridriver binary](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari) + +All supported OS's for this driver are: + +- MacOS + +# Supported browsers for updates + +### ``Chrome Browser`` + +For updating [chrome browser](https://www.google.com/chrome/) + +All supported OS's for this browser are: + +- MacOS + +### ``Firefox Browser`` + +For updating [firefox browser](https://www.mozilla.org/en-US/firefox/) + +All supported OS's for this browser are: + +- MacOS + +### ``Opera Browser`` + +For updating [opera browser](https://www.opera.com) + +All supported OS's for this browser are: + +- Windows 32 / 64 / ARM +- MacOS + +### ``Edge Browser`` + +For updating [edge browser](https://www.microsoft.com/en-us/edge) + +All supported OS's for this browser are: + +- MacOS + + +%package -n python3-selenium-driver-updater +Summary: Download or update your Selenium driver binaries and their browsers automatically with this package +Provides: python-selenium-driver-updater +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-selenium-driver-updater +# selenium_driver_updater + +[](https://badge.fury.io/py/selenium-driver-updater) +[](https://github.com/Svinokur/selenium_driver_updater/master/LICENSE) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://en.cryptobadges.io/donate/32GJnnDrPkSKVzrRho84KwD5RsMW4ywMiW) +[](https://en.cryptobadges.io/donate/0xf2691CC12a70B4589edf081E059fD4A1c457417D) + +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/windows-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/macOS-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/ubuntu-tests.yml) + +[](https://open.vscode.dev/Svinokur/selenium_driver_updater) + +It is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install selenium_driver_updater. + +``` +pip install selenium-driver-updater +``` + +## Usage in code +This example shows how you can use this library to download chromedriver binary and use it immediately. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) + +filename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver, upgrade=True, check_driver_is_up_to_date=True, old_return=False) + +driver = webdriver.Chrome(filename) +driver.get('https://google.com') + +``` + +Or you can use library to download and update chromedriver and geckodriver binaries at the same time. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) +list_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver] + +filenames = DriverUpdater.install(path=base_dir, driver_name=list_drivers, upgrade=True, check_driver_is_up_to_date=True, old_return=False) +print(filenames) + +driver_chrome = webdriver.Chrome(filename[0]) +driver_chrome.get('https://google.com') + +driver_firefox = webdriver.Firefox(filename[1]) +driver_firefox.get('https://google.com') + +``` + +## Usage with help of command line +Use +```bash +selenium-driver-updater --help +``` +To see all available arguments and commands + +# Supported Selenium Binaries + +### ``Chromedriver`` +#### ``DriverUpdater.chromedriver`` + +For installing or updating [chromedriver binary](https://chromedriver.chromium.org) + +All supported OS for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Geckodriver`` +#### ``DriverUpdater.geckodriver`` + +For installing or updating [geckodriver binary](https://github.com/mozilla/geckodriver/releases) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Operadriver`` +#### ``DriverUpdater.operadriver`` + +For installing or updating [operadriver binary](https://github.com/operasoftware/operachromiumdriver) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS + +### ``Edgedriver`` +#### ``DriverUpdater.edgedriver`` + +For installing or updating [edgedriver binary](https://developer.microsoft.com/ru-ru/microsoft-edge/tools/webdriver/) + +All supported OS's for this driver are: + +- Windows +- Windows ARM +- MacOS +- MacOS with M1 +- Linux + +### ``PhantomJS`` +#### ``DriverUpdater.phantomjs`` + +For installing or updating [phantomjs binary](https://phantomjs.org/) + +All supported OS's for this driver are: + +- Windows +- MacOS +- Linux + +### ``SafariDriver`` +#### ``DriverUpdater.safaridriver`` + +For installing or updating [safaridriver binary](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari) + +All supported OS's for this driver are: + +- MacOS + +# Supported browsers for updates + +### ``Chrome Browser`` + +For updating [chrome browser](https://www.google.com/chrome/) + +All supported OS's for this browser are: + +- MacOS + +### ``Firefox Browser`` + +For updating [firefox browser](https://www.mozilla.org/en-US/firefox/) + +All supported OS's for this browser are: + +- MacOS + +### ``Opera Browser`` + +For updating [opera browser](https://www.opera.com) + +All supported OS's for this browser are: + +- Windows 32 / 64 / ARM +- MacOS + +### ``Edge Browser`` + +For updating [edge browser](https://www.microsoft.com/en-us/edge) + +All supported OS's for this browser are: + +- MacOS + + +%package help +Summary: Development documents and examples for selenium-driver-updater +Provides: python3-selenium-driver-updater-doc +%description help +# selenium_driver_updater + +[](https://badge.fury.io/py/selenium-driver-updater) +[](https://github.com/Svinokur/selenium_driver_updater/master/LICENSE) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://pepy.tech/project/selenium-driver-updater) +[](https://en.cryptobadges.io/donate/32GJnnDrPkSKVzrRho84KwD5RsMW4ywMiW) +[](https://en.cryptobadges.io/donate/0xf2691CC12a70B4589edf081E059fD4A1c457417D) + +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/windows-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/macOS-tests.yml) +[](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/ubuntu-tests.yml) + +[](https://open.vscode.dev/Svinokur/selenium_driver_updater) + +It is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install selenium_driver_updater. + +``` +pip install selenium-driver-updater +``` + +## Usage in code +This example shows how you can use this library to download chromedriver binary and use it immediately. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) + +filename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver, upgrade=True, check_driver_is_up_to_date=True, old_return=False) + +driver = webdriver.Chrome(filename) +driver.get('https://google.com') + +``` + +Or you can use library to download and update chromedriver and geckodriver binaries at the same time. +```python +from selenium_driver_updater import DriverUpdater +from selenium import webdriver +import os + +base_dir = os.path.dirname(os.path.abspath(__file__)) +list_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver] + +filenames = DriverUpdater.install(path=base_dir, driver_name=list_drivers, upgrade=True, check_driver_is_up_to_date=True, old_return=False) +print(filenames) + +driver_chrome = webdriver.Chrome(filename[0]) +driver_chrome.get('https://google.com') + +driver_firefox = webdriver.Firefox(filename[1]) +driver_firefox.get('https://google.com') + +``` + +## Usage with help of command line +Use +```bash +selenium-driver-updater --help +``` +To see all available arguments and commands + +# Supported Selenium Binaries + +### ``Chromedriver`` +#### ``DriverUpdater.chromedriver`` + +For installing or updating [chromedriver binary](https://chromedriver.chromium.org) + +All supported OS for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Geckodriver`` +#### ``DriverUpdater.geckodriver`` + +For installing or updating [geckodriver binary](https://github.com/mozilla/geckodriver/releases) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS +- MacOS with M1 + +### ``Operadriver`` +#### ``DriverUpdater.operadriver`` + +For installing or updating [operadriver binary](https://github.com/operasoftware/operachromiumdriver) + +All supported OS's for this driver are: + +- Windows +- Linux +- MacOS + +### ``Edgedriver`` +#### ``DriverUpdater.edgedriver`` + +For installing or updating [edgedriver binary](https://developer.microsoft.com/ru-ru/microsoft-edge/tools/webdriver/) + +All supported OS's for this driver are: + +- Windows +- Windows ARM +- MacOS +- MacOS with M1 +- Linux + +### ``PhantomJS`` +#### ``DriverUpdater.phantomjs`` + +For installing or updating [phantomjs binary](https://phantomjs.org/) + +All supported OS's for this driver are: + +- Windows +- MacOS +- Linux + +### ``SafariDriver`` +#### ``DriverUpdater.safaridriver`` + +For installing or updating [safaridriver binary](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari) + +All supported OS's for this driver are: + +- MacOS + +# Supported browsers for updates + +### ``Chrome Browser`` + +For updating [chrome browser](https://www.google.com/chrome/) + +All supported OS's for this browser are: + +- MacOS + +### ``Firefox Browser`` + +For updating [firefox browser](https://www.mozilla.org/en-US/firefox/) + +All supported OS's for this browser are: + +- MacOS + +### ``Opera Browser`` + +For updating [opera browser](https://www.opera.com) + +All supported OS's for this browser are: + +- Windows 32 / 64 / ARM +- MacOS + +### ``Edge Browser`` + +For updating [edge browser](https://www.microsoft.com/en-us/edge) + +All supported OS's for this browser are: + +- MacOS + + +%prep +%autosetup -n selenium-driver-updater-5.1.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-selenium-driver-updater -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 5.1.8-1 +- Package Spec generated @@ -0,0 +1 @@ +4cdd8e9005c19cbab7041dd115f07191 selenium_driver_updater-5.1.8.tar.gz |