From 8724cea710421eee3177e430a7f470cae8144586 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 11:25:50 +0000 Subject: automatic import of python-webdriver-manager --- .gitignore | 1 + python-webdriver-manager.spec | 103 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 105 insertions(+) create mode 100644 python-webdriver-manager.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..efb739f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/webdriver_manager-3.8.5.tar.gz diff --git a/python-webdriver-manager.spec b/python-webdriver-manager.spec new file mode 100644 index 0000000..b3513f9 --- /dev/null +++ b/python-webdriver-manager.spec @@ -0,0 +1,103 @@ +%global _empty_manifest_terminate_build 0 +Name: python-webdriver-manager +Version: 3.8.5 +Release: 1 +Summary: Library provides the way to automatically manage drivers for different browsers +License: Apache Software License +URL: https://github.com/SergeyPirogov/webdriver_manager +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/83/eaec06947af13ba950efaaf45e220927775060ae7afcc315e731c7910018/webdriver_manager-3.8.5.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-dotenv +Requires: python3-tqdm +Requires: python3-packaging + +%description +### Custom Logger +If you need to use a custom logger, you can create a logger and set it with `set_logger()`. +```python +import logging +from webdriver_manager.core.logger import set_logger +logger = logging.getLogger("custom_logger") +logger.setLevel(logging.DEBUG) +logger.addHandler(logging.StreamHandler()) +logger.addHandler(logging.FileHandler("custom.log")) +set_logger(logger) + +%package -n python3-webdriver-manager +Summary: Library provides the way to automatically manage drivers for different browsers +Provides: python-webdriver-manager +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-webdriver-manager +### Custom Logger +If you need to use a custom logger, you can create a logger and set it with `set_logger()`. +```python +import logging +from webdriver_manager.core.logger import set_logger +logger = logging.getLogger("custom_logger") +logger.setLevel(logging.DEBUG) +logger.addHandler(logging.StreamHandler()) +logger.addHandler(logging.FileHandler("custom.log")) +set_logger(logger) + +%package help +Summary: Development documents and examples for webdriver-manager +Provides: python3-webdriver-manager-doc +%description help +### Custom Logger +If you need to use a custom logger, you can create a logger and set it with `set_logger()`. +```python +import logging +from webdriver_manager.core.logger import set_logger +logger = logging.getLogger("custom_logger") +logger.setLevel(logging.DEBUG) +logger.addHandler(logging.StreamHandler()) +logger.addHandler(logging.FileHandler("custom.log")) +set_logger(logger) + +%prep +%autosetup -n webdriver-manager-3.8.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-webdriver-manager -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 3.8.5-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..9dba36b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +81c464fad9e26ed73df1cb75b443a5e6 webdriver_manager-3.8.5.tar.gz -- cgit v1.2.3