DFSG NEW Queue

DFSG, Licensing & New Packages Team

petsc4py 3.26.1-1exp1

Package Information

DescriptionPython 3 bindings for PETSc libraries

PETSc is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations. It employs the MPI standard for all message-passing communication.

This is a base package that depends on the python3 petsc4py package with either real or complex number support. It provides the path to petsc4py for the system's default PETSc version set in /usr/lib/petsc. Export environment variable PETSC_DIR to use other versions.

MaintainerDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed ByDrew Parsons <dparsons@debian.org>
Sponsordparsons@debian.org
Distributionexperimental
Architectureany all
VCSgit: https://salsa.debian.org/science-team/petsc4py.git (browse)
Popcon Installs139
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/petsc4py
Uploaded5 days ago

New Package Report

.changes◂
Sourcepetsc4py
Version3.26.1-1exp1
Changed-ByDrew Parsons <dparsons@debian.org>
Architecturesource all amd64
Distributionexperimental
DateMon, 16 Nov 2026 15:20:25 +0100
Changelog◂
petsc4py (3.26.1-1exp1) experimental; urgency=medium
 .
   * New upstream release
     - new ABI 3.26
   * drop parser.read_string from petsc_soname_extensions.patch.
     No longer needed since cpython PR#117273 has been merged.
.dsc◂
Sectiondoc
Priorityoptional
Componentmain
Package-Listpython-petsc4py-doc deb doc optional arch=all
python3-petsc4py deb python optional arch=all
python3-petsc4py-64-complex deb python optional arch=all
python3-petsc4py-64-complex3.26 deb python optional arch=any
python3-petsc4py-64-real deb python optional arch=all
python3-petsc4py-64-real3.26 deb python optional arch=any
python3-petsc4py-complex deb python optional arch=all
python3-petsc4py-complex3.26 deb python optional arch=any
python3-petsc4py-real deb python optional arch=all
python3-petsc4py-real3.26 deb python optional arch=any
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: petsc4py
Source: https://gitlab.com/petsc/petsc/-/tree/master/src/binding/petsc4py

Files: *
Copyright: (c) 2019, Lisandro Dalcin <dalcinl@gmail.com>
License: BSD-2-clause
 All rights reserved.
 .
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 .
 * Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
 .
 * Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Files: debian/pylit.py
Copyright: 2005, 2007, 2015, 2021 Günter Milde
License: GPL-3+
 pylit is released without warranty under the terms of the
 GNU General Public License (v. 3 or later).
 .
 On a debian system the text of the GPL-3 can be found at
 /usr/share/common-licenses/GPL-3

DFSG Assistant LLM REVIEW 0 blocker, 0 important, 4 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 5 days ago.

Report◂

DFSG NEW review for petsc4py version 3.26.1-1exp1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: No
  • Packaging is of good quality: No
  • Issues: 0 blocker, 0 important, 4 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

The licences are DFSG-free: the whole upstream tree is BSD-2-clause per LICENSE.rst, and debian/pylit.py, a build-only tool, is GPL-3+ (compatible, and pointed at /usr/share/common-licenses/GPL-3). debian/copyright is DEP-5 and its licence texts and short names are correct, but its catch-all Files: * stanza attributes the entire tree to Lisandro Dalcin alone, while two demo scripts shipped as examples credit Miguel Arriaga as their author.

Packaging

Packaging is otherwise sound for a compat-14 pybuild package: dependencies resolve (PETSc 3.26 packages are in NEW), the four arch builds are split cleanly, autopkgtests are present and macrosistent, Standards-Version 4.7.4 matches current Policy, and the changelog/version scheme are fine. Three defects remain: three patches lost their DEP-3 headers, one patch points intersphinx at a pyopencl inventory that no build dependency installs, and debian/python-petsc4py.docs names a binary package that no longer exists.

Issues

minor licensing 1. Files: * does not name Miguel Arriaga for demo/legacy/petsc-examples/ksp/ex2.py and ex23.py ◂
  • Files: debian/copyright:6, demo/legacy/petsc-examples/ksp/ex2.py:4, demo/legacy/petsc-examples/ksp/ex23.py:4, debian/python-petsc4py-doc.examples:1
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/copyright: Files: * / Copyright: (c) 2019, Lisandro Dalcin <dalcinl@gmail.com>; ex2.py:4 and ex23.py:4: By: Miguel Arriaga.
  • Problem: Both files are ports of PETSc examples written by Miguel Arriaga, not by the sole holder named in debian/copyright, so the catch-all stanza does not accurately describe their copyright. The files are installed unchanged, byline included, through python-petsc4py-doc.examples: demo into /usr/share/doc/python-petsc4py-doc/examples, so the third condition of Debian Policy 2.3 (a plain-text copy of the notice being shipped) is not met and Policy does not require the notice in debian/copyright; the DFSG team still asks for a complete copyright file.
  • Fix: Add a stanza, e.g. Files: demo/legacy/petsc-examples/* with Copyright: Miguel Arriaga and License: BSD-2-clause, or confirm with upstream that another holder/licence applies and record that.
minor packaging 2. build_docs.patch, build_local_docs.patch and test_demo_no_plot.patch lack DEP-3 headers ◂
  • Files: debian/patches/build_docs.patch:1, debian/patches/build_local_docs.patch:1, debian/patches/test_demo_no_plot.patch:1
  • Basis: checked, in the package or with a reference tool
  • Evidence: Each file begins directly with Index: petsc4py/docs/source/conf.py or Index: petsc4py/demo/legacy/bratu2d/makefile; no Author:, Description: or Forwarded: fields, unlike demo_fixes.patch, petsc_soname_extensions.patch and ppc_skip_test_ts_py.patch.
  • Problem: Without a description and provenance the purpose and forwarding status of three of the six Debian patches are unknown to later maintainers; debian/changelog (3.21.6-1) records that DEP-3 metadata was added to all patches, so these headers were lost when the patches were regenerated.
  • Fix: Add DEP-3 headers (Author:, Description:, Forwarded: or Forwarded: not-needed) to all three patches.
minor packaging 3. build_local_docs.patch points pyopencl intersphinx at an inventory that no build dependency provides ◂
  • Files: debian/patches/build_local_docs.patch:17, docs/source/conf.py:145, debian/control:23-31, debian/changelog:245
  • Basis: checked, in the package or with a reference tool
  • Evidence: Patch and conf.py: 'pyopencl': ('https://documen.tician.de/pyopencl/', ('/usr/share/doc/python-pyopencl-doc/html/objects.inv', None)),; Build-Depends-Indep lists petsc3.26-doc, python3-doc, python-mpi4py-doc, python-numpy-doc and themes, but not python-pyopencl-doc; changelog 3.20.5-4 records drop Build-Depends-Indep: python-pyopencl-doc.
  • Problem: The local inventory cannot exist in the build environment, so intersphinx fails to load it. With nitpicky = True (docs/source/conf.py:100) the pyopencl references in src/petsc4py/PETSc/Vec.pyx docstrings cannot resolve and the build emits warnings; this does not fail the build because sphinx-build is not run with -W. The patch was not updated when the dependency was deliberately dropped.
  • Fix: Either add python-pyopencl-doc <!nodoc> to Build-Depends-Indep again, or remove the pyopencl entry from build_local_docs.patch (and the mapping) so it does not point at a package the build does not install.
minor packaging 4. debian/python-petsc4py.docs names a binary package that no longer exists ◂
  • Files: debian/python-petsc4py.docs:1, debian/control:1-40
  • Basis: checked, in the package or with a reference tool
  • Evidence: File content: debian/README.Debian; debian/control has binary packages python3-petsc4py, python3-petsc4py-real/-complex/-real3.26/-complex3.26/-64-* and python-petsc4py-doc, but no python-petsc4py.
  • Problem: dh_installdocs only reads debian/.docs for packages actually built, so this file is dead and debian/README.Debian is not installed in the base python3-petsc4py package (it ships only through the -real/-complex dummy .docs files). The file is a leftover from the rename to python3-petsc4py.
  • Fix: Rename it to debian/python3-petsc4py.docs if the base package should ship README.Debian, or delete it.
Verified ◂
  • Read debian/copyright in full: it is DEP-5 with the correct Format URL, one Files: * stanza (BSD-2-clause, Dalcin) and one Files: debian/pylit.py stanza (GPL-3+, Günter Milde).
  • LICENSE.rst is the only upstream licence file and contains the same BSD-2-clause text as debian/copyright; PKG-INFO and setup.py declare BSD-2-Clause and Lisandro Dalcin.
  • Grepped src/, demo/, docs/, conf/, test/ and the top level for Copyright, (C), ©, SPDX-License-Identifier, GPL/LGPL/Apache/Mozilla/public-domain wording: no other licence or copyright statements, and no non-free terms.
  • debian/pylit.py:17-20 carries Günter Milde's copyright and GPL-3-or-later statement, matching its copyright stanza; it is copied only into the doc build directory and removed again, so it is not installed.
  • The prescan listed no files: its author check found every holder it matched named in debian/copyright; I re-checked the holders it relies on.
  • src/petsc4py/PETSc.pyi is generated by the shipped conf/stubgen.py; src/petsc4py.egg-info is generated metadata whose source (setup.py/pyproject.toml) is present; no generated PETSc.c/PETSc.h is in the tree (removed by execute_after_dh_clean).
  • Read all six patches and debian/patches/series; the two patches without upstream forwarding are Debian-specific doc/demo adjustments. Files created by patches were checked and need no copyright entry.
  • Read debian/control, rules, changelog (last 320 lines and dependency history), tests/control and all test scripts, source/format, install/docs/manpages/examples/doc-base files, both preinst scripts, upstream/metadata and the lintian overrides.
  • Compatibility: debhelper-compat 14; all four arch builds install into /usr/lib/petscdir/... and the base package's petsc4py.pth selects them via PETSC_DIR; no missing ${...:Depends} substvars at compat 14.
  • apt-cache: python3-numpy-dev, python3-sphobjinv and pybuild-plugin-pyproject exist; sphinx is a virtual package provided by python3-sphinx; libpetsc-*-3.26-dev and petsc3.26-doc are built by petsc 3.26.1+dfsg1-1exp1 in NEW, so their absence from the archive is not a fault.
  • Policy 4.7.4.1 is current and Standards-Version 4.7.4 matches its first two components.
  • autopkgtest specification read: @ expands to every binary package of the source, so run-tests-64/run-demos-64 do get the 64-bit packages, and @builddeps@ includes Build-Depends-Indep and build-essential, covering make, gzip and pkgconf.
  • uscan found the packaged version as the newest upstream release (upstream 3.26.1, packaged 3.26.1).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (GPL-3).
Not confirmed ◂
  • Several demo C sources (e.g. demo/legacy/wrap-swig/Bratu3D.c, demo/legacy/poisson3d/poisson3d.c) contain verbatim PETSc example code with no copyright header; if they are copies from PETSc, UChicago Argonne, LLC and the PETSc Development Team should appear in debian/copyright. Confirming needs the PETSc sources, which are not on this system.
  • docs/source/_templates/autosummary/{class,module}.rst look like Sphinx's own autosummary templates (Sphinx team, BSD-2). I could not compare them with the sphinx source tree on this system to decide whether Sphinx's notice was dropped.
  • demo/legacy/dmplex/distribute_field.py:4 carries an editor-written @author: ale header with no identifiable holder, so I could not tell whose copyright it records.
  • python-pyopencl-doc is not installed here, so I could not check the exact path of its objects.inv; the finding rests on the package being absent from Build-Depends-Indep.
Proposed changes ◂

None.

Uploader's response to the LLM review

The uploader was emailed about the review 5 days ago.

Other Reviews of this Package

VersionHashAllocatedCompletedReviewerStatusDetails
3.25.0-1~exp1 cf63acfe… 2026-04-27 10:10 2026-04-27 10:14 mechtilde accepted VIEW

Back to Dashboard | View all reviews for this package