2024-09-12 13:12:10 +00:00
|
|
|
#
|
2024-09-28 19:42:59 +00:00
|
|
|
# spec file for package python-duckduckgo-search
|
2024-09-12 13:12:10 +00:00
|
|
|
#
|
- update to 7.1.1:
* DDGS.text: deprecate backend='api'
- update to 7.1.0:
* add backend="ecosia"
* DDGS._impersonates: delete okhttp*
* DDGS.text: reduce pagination
- update to 7.0.2:
* Bump primp to v0.9.2
- update to 7.0.1:
* [simplify]: remove AsyncDDGS, remove `answers`, `maps`,
`suggestions`, `translate`; [text]: remove multithreading
* [DDGS.text]: add backend="auto", [DDGS.images|news|videos]:
remove multithreading
- update to 6.4.2:
* use env var DDGS_PROXY
* utils: _text_extract_json() bugfix
- update to 6.3.7:
* added armv7 compatibility: Bump primp to v0.8.1
- update to 6.3.6:
* Bump primp version to v0.8.0
* DDGS._impersonates: add "chrome_131"
* CLI: _download_file: impersonate="chrome_131"
* CLI: --max_results=None by default; remove default=None
- update to 6.3.5:
* CLI: 1)`-dd` to specify custom download directory, 2) `-o`
can now set full filename
* CLI: text() max_results=10 default
* text(): update pagination logic (0, 10, 25, 40, ...)
* text(): max(max_results)=190
* videos(): max(max_results)=200
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-duckduckgo-search?expand=0&rev=6
2025-01-02 14:11:31 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2024-09-12 13:12:10 +00:00
|
|
|
#
|
|
|
|
|
# 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
|
2025-06-03 13:45:30 +00:00
|
|
|
Version: 8.0.2
|
2024-09-12 13:12:10 +00:00
|
|
|
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_module pip}
|
|
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2024-09-28 19:42:59 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2024-09-12 13:12:10 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2024-09-28 19:42:59 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-09-12 13:12:10 +00:00
|
|
|
# SECTION test requirements
|
2025-04-30 12:22:21 +00:00
|
|
|
BuildRequires: %{python_module click >= 8.1.8}
|
|
|
|
|
BuildRequires: %{python_module primp >= 0.15.0}
|
2024-09-12 13:12:10 +00:00
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: fdupes
|
2025-04-30 12:22:21 +00:00
|
|
|
Requires: python-click >= 8.1.8
|
|
|
|
|
Requires: python-lxml >= 5.3.0
|
|
|
|
|
Requires: python-primp >= 0.15.0
|
|
|
|
|
Suggests: python-mypy >= 1.14.1
|
|
|
|
|
Suggests: python-pytest >= 8.3.4
|
|
|
|
|
Suggests: python-pytest-dependency >= 0.6.0
|
|
|
|
|
Suggests: python-ruff >= 0.9.2
|
2024-09-28 19:42:59 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-09-12 13:12:10 +00:00
|
|
|
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
|