python-opensearchpy 3.2.0-1
Package Information
| Description | Python client for OpenSearch opensearchpy is the official low-level Python client for OpenSearch. It provides an OpenSearch class that maps the REST API to Python methods and a Transport layer that handles connection pooling, retries and serialisation. The package also contains an asynchronous client based on aiohttp and a signals-based helper for bulk indexing. |
|---|---|
| Maintainer | Debian Python Team <team+python@tracker.debian.org> |
| Changed By | Karsten Schöke <karsten.schoeke@geobasis-bb.de> |
| Sponsor | tille@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/python-team/packages/python-opensearchpy.git (browse) |
| Closes | #1156331 |
| Tracker | https://tracker.debian.org/pkg/python-opensearchpy |
| Uploaded | 1 hour ago |
New Package Report
.changes
| Date | Tue, 01 Dec 2026 15:13:30 +0100 |
|---|---|
| Source | python-opensearchpy |
| Version | 3.2.0-1 |
| Changed-By | Karsten Schöke <karsten.schoeke@geobasis-bb.de> |
| Architecture | source all |
| Distribution | unstable |
Changelog
python-opensearchpy (3.2.0-1) unstable; urgency=medium . * Initial release 3.2.0 (Closes: #1156331)
.dsc
| Section | doc |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | python-opensearchpy-doc deb doc optional arch=all python3-opensearchpy deb python optional arch=all |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: opensearch-py
Upstream-Contact: Aleksei Atavin axeo@aiven.io,
Denis Zalevskiy dez@aiven.io,
Rushi Agrawal rushi.agr@gmail.com,
Shephali Mittal shephalm@amazon.com
Source: https://github.com/opensearch-project/opensearch-py
Files: *
Copyright: OpenSearch Contributors
License: Apache-2.0
Comment:
Licensed to OpenSearch under one or more contributor
license agreements. See the NOTICE.txt file distributed with
this work for additional information regarding copyright
ownership. Opensearch licenses this file to you under
the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License.
Files: debian/*
Copyright: 2026, Karsten Schöke <karsten.schoeke@geobasis-bb.de>
License: Apache-2.0
License: Apache-2.0
On Debian systems, the complete text of the Apache 2.0 License
(Apache-2) can be found in /usr/share/common-licenses/Apache-2.0.
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 0 hours ago.
Report
DFSG NEW review for python-opensearchpy version 3.2.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: No
- Issues: 0 blocker, 1 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
All of the tree is Apache-2.0 (LICENSE.txt, SPDX headers in every source file, NOTICE.txt) and the scan found no non-free wording, no other licence, and no unmatched holder. debian/copyright is valid DEP-5, covers the whole tree, has no Files-Excluded and points to /usr/share/common-licenses/Apache-2.0. It is incomplete, though: the Files: * stanza credits only OpenSearch Contributors, while every source header names Elasticsearch B.V. as the original copyright holder/licensor (with OpenSearch Contributors' modifications), and the stanza Comment rewrites that header as if it named OpenSearch. That is minor because the notices are installed unchanged in the .py files.
Packaging
Mostly competent packaging: debhelper compat 14, pybuild, autopkgtest-pkg-pybuild, DEP-3 patches, Standards-Version 4.7.4 against Policy 4.7.4.1, a correct two-package split, and runtime dependencies filled by dh_python3's default dependency guessing. Two defects: the Sphinx docs are built unconditionally in a hook while all four doc build dependencies are marked <!nodoc>, so a nodoc-profile build fails; and Recommends/Suggests is broken (nonexistent python-opensearch-doc plus two substvars dh_python3 never defines).
Issues
important packaging 1. nodoc-profile build fails: Sphinx docs built unconditionally while their Build-Depends are <!nodoc> ◂
-
Files:
debian/rules:29-30,debian/control:18,debian/control:26-28,docs/source/conf.py:47-55 -
Basis: checked, in the package or with a reference tool
-
Evidence:
rules:
execute_after_dh_auto_build:
PYTHONPATH=. sphinx-build $(SPHINXOPTS) -b html docs/source build/html
control:
python3-myst-parser <!nodoc>,
python3-sphinx <!nodoc>,
python3-sphinx-copybutton <!nodoc>,
python3-sphinx-rtd-theme <!nodoc>,
conf.py extensions: sphinx.ext.autodoc, sphinx_rtd_theme, sphinx.ext.viewcode, myst_parser, sphinx.ext.intersphinx, sphinx_copybutton, sphinx.ext.todo -
Problem: With the nodoc profile active dpkg omits the four <!nodoc> build dependencies, but dh still runs dh_auto_build and its execute_after hook: the debhelper tool and Debian::Debhelper::Sequence::root_sequence (compat 13) skip only dh_auto_test on nocheck and dh_dwz/dh_strip on nostrip, never dh_auto_build hooks on nodoc. sphinx-build is then absent (or, if sphinx-common's Recommends pulls it in, conf.py cannot import sphinx_rtd_theme/myst_parser/sphinx_copybutton), so the build aborts. Policy 4.9.1 says nodoc should skip documentation build steps; the commented-out
ifeq (,$(findstring nodoc,...))block at the end of rules shows the intent. -
Fix: Either guard the sphinx-build line with
ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))(as the commented block does) or remove<!nodoc>from python3-sphinx, python3-sphinx-rtd-theme, python3-myst-parser and python3-sphinx-copybutton so a nodoc build can still run the doc build.
minor licensing 2. Files: * names only OpenSearch Contributors, omitting Elasticsearch B.V. named in the source headers ◂
-
Files:
debian/copyright:10-11,debian/copyright:15-20,opensearchpy/__init__.py:7-13,NOTICE.txt:4 -
Basis: checked, in the package or with a reference tool
-
Evidence:
debian/copyright:
Copyright: OpenSearch Contributorsand Comment:Licensed to OpenSearch under one or more contributor license agreements.
opensearchpy/init.py:# Modifications Copyright OpenSearch Contributors./# Licensed to Elasticsearch B.V. under one or more contributor license agreements ... Elasticsearch B.V. licenses this file to you under the Apache License, Version 2.0
NOTICE.txt:This product includes software developed by Elasticsearch (http://www.elastic.co). -
Problem: 136 files carry the Elasticsearch B.V. grant/attribution alongside the OpenSearch modifications notice, but debian/copyright names no Elasticsearch holder, and its Comment paraphrases the real header with "OpenSearch" in place of "Elasticsearch", stating something the files do not say. The installed .py files keep their notices, and Policy 2.3 (including its footnote that Apache-2.0 notices are not generally required in debian/copyright) does not require copying them there, so this is a completeness defect the DFSG team would still want fixed, not a DFSG violation.
-
Fix: Add Elasticsearch B.V. to the Files: * Copyright field (e.g.
Copyright: OpenSearch ContributorsplusElasticsearch B.V.) and correct the Comment to quote the actual file header.
minor packaging 3. Suggests names the nonexistent python-opensearch-doc and python3:Recommends/Suggests substvars are undefined ◂
-
Files:
debian/control:38-40 -
Basis: checked, in the package or with a reference tool
-
Evidence:
Recommends: ${python3:Recommends},
Suggests: python-opensearch-doc,
${python3:Suggests},apt-cache: "There is no binary package named python-opensearch-doc"; the rendered docs of this source are in python-opensearchpy-doc.
-
Problem: dh_python3 exports only ${python3:Depends} unless --recommends/--suggests are passed (checked in /usr/share/dh-python/dhpython/depends.py and /usr/bin/dh_python3), so both relationship substvars are undefined: dpkg-gencontrol warns and substitutes an empty value, leaving Recommends empty and the .deb Suggesting a package that does not exist. Consequently the aiohttp-based async client advertised in the description gets no relationship at all.
-
Fix: Use
Suggests: python-opensearchpy-docand eitherRecommends: python3-aiohttpor drop the field; remove the undefined ${python3:Recommends}/${python3:Suggests} references.
Verified ◂
- Prescan: the author check scanned 449 files and reported every holder it detected as named; manual grep of the whole tree (excluding .pc/) found only Apache-2.0 notices: LICENSE.txt,
SPDX-License-Identifier: Apache-2.0headers, and NOTICE.txt; no GPL/LGPL/BSD/MIT/CC/non-commercial/no-derivatives wording anywhere. - debian/copyright read in full: DEP-5 with the correct Format URL,
Files: *plus a laterFiles: debian/*, no Files-Excluded, Apache-2.0 text referenced from /usr/share/common-licenses/Apache-2.0 (which exists); the two Debian patches create no files and are covered by Files: *. - NOTICE.txt is installed in the binary via debian/python3-opensearchpy.docs (CONTRIBUTING.md, NOTICE.txt, README.md), satisfying Apache-2.0 section 4(d) for the shipped package.
- No built or binary artefacts: no .pyc/.so/.whl/.pdf/minified files; the two image files are text SVGs (OpenSearch.svg, docs/source/imgs/OpenSearch.svg); docs/source contains the documentation sources the Sphinx build uses.
- Generated opensearchpy/client/*.py are plain Python source marked as generated; the generator utils/generate_api.py and utils/templates/ are shipped (the OpenAPI spec it downloads belongs to the separate opensearch-api-specification project, and the shipped Python is itself the preferred form).
- Both patches have DEP-3 headers with Subject and Forwarded: not-needed and make sense for Debian (removing external badge images, local intersphinx inventory); no obsolete patches.
- All Build-Depends names exist in the archive (checked with apt-cache, including pybuild-plugin-pyproject, pybuild-plugin-autopkgtest, python3-sphinx-rtd-theme, python3-myst-parser, python3-sphinx-copybutton, python3-pytest-asyncio).
- Runtime Depends: dh_python3 runs with dependency guessing enabled by default and reads the installed dist-info Requires-Dist, so ${python3:Depends} will gain python3-requests, python3-urllib3, python3-dateutil, python3-certifi and python3-events (the last resolved via dpkg -S in the build chroot); opensearch-protobufs is silently dropped because no Debian package provides it, and nothing in opensearchpy imports it (only CHANGELOG.md and setup.py mention it).
- Tests: debian/rules runs only the offline test files with OPENSEARCH_URL pointing at a closed port; autodep8's pybuild test includes debian/rules, so the autopkgtest runs the same restricted set; nocheck-marked test build-deps are therefore only needed by tests, which dh skips on nocheck at compat 14.
- Standards-Version 4.7.4 matches the reviewing Policy 4.7.4.1 in its first two components; changelog (3.2.0-1, unstable, initial release with an ITP closure), Vcs-*, Homepage, source/format 3.0 (quilt) and gbp.conf are consistent.
- nodoc behaviour checked with the debhelper tool and /usr/share/perl5/Debian/Debhelper/Sequence/root_sequence.pm: at compat 14 only dh_auto_test (nocheck), dh_dwz and dh_strip (nostrip) are skipped; dh_auto_build and its execute_after hook always run.
- uscan found the packaged version as the newest upstream release (upstream
3.2.0, packaged3.2.0). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
- No build or test run was possible; the nodoc failure is derived from debian/rules, debian/control and debhelper's sequence, not observed.
- The intersphinx inventory path /usr/share/doc/python3-doc/html/objects.inv introduced by the patch could not be checked here (python3-doc is not installed); if it is absent Sphinx only warns, so this is not reported as a fault.
- Files were covered by directory listings and tree-wide greps rather than reading all 449 files verbatim; the 136 Elasticsearch-headed files were counted by grep, not examined one by one.
Proposed changes ◂
None.
Uploader's response to the LLM review
The uploader was emailed about the review 0 hours ago.
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.