15
0

Accepting request 1200208 from home:yeey:OpenWebUI

- Release v6.2.11
  * [utils] bugfix _normalize_url() - replace space after unquote

OBS-URL: https://build.opensuse.org/request/show/1200208
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-duckduckgo-search?expand=0&rev=1
This commit is contained in:
2024-09-12 13:12:10 +00:00
committed by Git OBS Bridge
commit 5ebe2b1a67
5 changed files with 115 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b6ef1b552c5e67f23e252025d2504caf6f9fc14f70e86c6dd512200f386c673
size 32998

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Sep 11 22:54:31 UTC 2024 - Guang Yee <gyee@suse.com>
- Release v6.2.11
* [utils] bugfix _normalize_url() - replace space after unquote

View File

@@ -0,0 +1,83 @@
#
# spec file for package python-duckduckgo_search
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-duckduckgo-search
Version: 6.2.11
Release: 0
Summary: Search using the DuckDuckGo.com search engine
License: MIT
URL: https://github.com/deedy5/duckduckgo_search
Source: https://files.pythonhosted.org/packages/source/d/duckduckgo-search/duckduckgo_search-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module click >= 8.1.7}
BuildRequires: %{python_module primp >= 0.6.1}
# /SECTION
BuildRequires: fdupes
Requires: python-click >= 8.1.7
Requires: python-primp >= 0.6.1
Suggests: python-lxml >= 5.2.2
Suggests: python-mypy >= 1.11.1
Suggests: python-pytest >= 8.3.1
Suggests: python-pytest-asyncio >= 0.23.8
Suggests: python-ruff >= 0.6.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine. Downloading files and images to a local hard drive.
%prep
%autosetup -p1 -n duckduckgo_search-%{version}
chmod 0644 README.md
chmod 0644 LICENSE.md
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ddgs
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# NOTE: disable running tests as they require internet access by making calls to
# https://duckduckgo.com
%post
%python_install_alternative ddgs
%postun
%python_uninstall_alternative ddgs
%files %{python_files}
%doc README.md
%license LICENSE.md
%python_alternative %{_bindir}/ddgs
%{python_sitelib}/duckduckgo_search
%{python_sitelib}/duckduckgo_search-%{version}.dist-info
%changelog