pymatgen-io-validation 0.1.4-1
Package Information
| Description | input/output validator for pymatgen (Python 3) This package is an extension to pymatgen for performing I/O validation. Specifically, this package checks for discrepancies between a specific calculation and a provided input set; it also checks for known bugs when certain input parameters are used in combination, alongside several other small checks. The motivation for creating this package was to ensure VASP calculations performed by groups outside of the Materials Project (MP) are compliant with MP data, thus enabling their raw data to be included in the MP Database. This package installs the library for Python 3. |
|---|---|
| Maintainer | Drew Parsons <dparsons@debian.org> |
| Changed By | Drew Parsons <dparsons@debian.org> |
| Sponsor | dparsons@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/debichem-team/pymatgen-io-validation.git (browse) |
| Closes | #1154295 |
| Tracker | https://tracker.debian.org/pkg/pymatgen-io-validation |
| Uploaded | 1 hour ago |
New Package Report
.changes
| Changed-By | Drew Parsons <dparsons@debian.org> |
|---|---|
| Architecture | source all |
| Distribution | unstable |
| Date | Fri, 27 Nov 2026 01:25:18 +0100 |
| Source | pymatgen-io-validation |
| Version | 0.1.4-1 |
Changelog
pymatgen-io-validation (0.1.4-1) unstable; urgency=medium
.
* Initial release. (Closes: #1154295)
* debian patch manage_build.patch enables build by removing
tool.setuptools.packages.find section from pyproject.toml, which
does not work as intended and installs all toplevel directories
into the built python package (fails to exclude dirs).dsc
| Package-List | python3-pymatgen-io-validation deb python optional arch=all |
|---|---|
| Section | python |
| Priority | optional |
| Component | main |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/materialsproject/pymatgen-io-validation Upstream-Name: pymatgen-io-validation Upstream-Contact: Matthew Kuner Files: * Copyright: 2023-2024 The Regents of the University of California, through Lawrence Berkeley National Laboratory License: Expat Files: debian/* Copyright: 2026 Drew Parsons <dparsons@debian.org> License: Expat Comment: The Debian packaging licence follows upstream. License: Expat The MIT License (MIT) . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 pymatgen-io-validation version 0.1.4-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - 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: 61 found (21 not listed by the scan, so not checked)
Licensing
The only licence grant in the source is the MIT/Expat text in LICENSE, copyright 2023-2024 The Regents of the University of California through Lawrence Berkeley National Laboratory; it is DFSG-free and debian/copyright reproduces it in full and names that holder. No other holder or licence notice exists in the tree (the scanner's author check agrees), no file has unclear provenance, and the gzip fixtures are ordinary VASP inputs/outputs and synthetic POTCARs. One caveat, reported below: pyproject.toml declares the licence as BSD-3-Clause-LBNL, which contradicts LICENSE and the copyright stanza; the packaging should resolve that rather than ship both claims.
Packaging
The packaging is conventional (dh compat 14, pybuild/pyproject, quilt, tests/control, upstream metadata, correct Standards-Version and changelog), but two defects matter. The built package's metadata will advertise BSD-3-Clause-LBNL while /usr/share/doc says Expat, and the pyproject build requirement versioningit has no Debian package, so pybuild's --no-isolation build in a clean chroot cannot resolve the dynamic version. The patch also lacks DEP-3 headers.
Issues
important packaging 1. Wheel metadata will declare BSD-3-Clause-LBNL although LICENSE and debian/copyright state Expat (MIT) ◂
- Files:
pyproject.toml:35,LICENSE:1-3,debian/copyright:8-12 - Basis: checked, in the package or with a reference tool
- Evidence:
license = "BSD-3-Clause-LBNL"(pyproject.toml) versusThe MIT License (MIT)(LICENSE) andLicense: Expat(debian/copyright) - Problem: Upstream makes two incompatible licence statements. setuptools writes the pyproject value into the dist-info METADATA of python3-pymatgen-io-validation, so an installed package will claim BSD-3-Clause-LBNL while /usr/share/doc/python3-pymatgen-io-validation/copyright says Expat. Both are free, so this is not a DFSG violation, but a consumer cannot tell which terms apply; if the LBNL three-clause BSD is the intended licence, its no-endorsement clause and text are absent from debian/copyright (Policy 12.5 requires the actual licence and its text).
- Fix: Ask upstream which licence governs. If LICENSE is authoritative, patch
licensein pyproject.toml to"MIT"(add it to manage_build.patch or a new DEP-3 patch) and forward upstream; if BSD-3-Clause-LBNL is intended, state that licence, its copyright holders and full text in debian/copyright and ship that text.
minor packaging 2. Clean-chroot build cannot satisfy the versioningit build requirement in pyproject.toml ◂
- Files:
pyproject.toml:1-3,debian/control:6-17 - Basis: checked, in the package or with a reference tool
- Evidence:
requires = ["setuptools >= 65.0.0", "versioningit >= 1,< 4", "wheel"]withdynamic = ["version"]; dh-python builds withpython3 -m build --skip-dependency-check --no-isolation --wheel(/usr/share/dh-python/dhpython/build/plugin_pyproject.py:147) - Problem: With --no-isolation the backend must find versioningit in the build environment; it provides the setuptools hook that resolves the dynamic version. debian/control does not build-depend on it, and apt-cache knows no binary package
versioningitorpython3-versioningitin unstable/experimental, the NEW queues, or this package's own binaries. Additionally versioningit reads the version from git, and the unpacked source has no .git (default-tag only covers a repository without tags), so even a versioningit-equipped environment would not produce 0.1.4. The sbuild build therefore fails before packaging the wheel. - Fix: Extend manage_build.patch to drop the versioningit configuration and set a static
version = "0.1.4"in[project](or use SETUPTOOLS_SCM/versioningit with an explicit default-version), and addpython3-versioningitto Build-Depends only once such a package exists.
minor packaging 3. debian/patches/manage_build.patch has no DEP-3 header ◂
- Files:
debian/patches/manage_build.patch:1-6 - Basis: checked, in the package or with a reference tool
- Evidence: The patch begins
Index: pymatgen-io-validation/pyproject.tomland goes straight to the---/+++lines; there is noDescription:,Origin:orForwarded:field. - Problem: The patch's purpose and upstream status are recorded only in debian/changelog, so the patch is not self-describing and it is unclear whether the build fix was sent upstream (DEP-3, Debian Developer's Reference 6.4).
- Fix: Add a DEP-3 header with at least
Description:andForwarded:(orOrigin:), naming the upstream issue/PR if one exists.
Verified ◂
- Read every file under debian/ in full: control, rules, changelog, copyright, patches/series, patches/manage_build.patch, source/format, source/options, tests/control, upstream/metadata (debian/watch left to the separate check).
- Inventoried the whole tree: 15 Python modules under pymatgen/io/validation plus py.typed and vasp_defaults.yaml, tests/, examples/, .github/, README.md, pyproject.toml, LICENSE. No vendored third-party code and no copyright/licence notice anywhere except LICENSE and pyproject.toml; the scanner's author check found no unnamed holder.
- debian/copyright is DEP-5, names The Regents of the University of California through Lawrence Berkeley National Laboratory, uses the correct Format URL, matches LICENSE verbatim, and reproduces the full Expat text (not in /usr/share/common-licenses).
- All 61 gzip files are VASP fixtures, not built or third-party artefacts. The 19 under examples/MP_compliant/ are examples/MP_compliant/CONTCAR.gz, examples/MP_compliant/DOSCAR.gz, examples/MP_compliant/EIGENVAL.gz, examples/MP_compliant/IBZKPT.gz, examples/MP_compliant/INCAR.gz, examples/MP_compliant/INCAR.orig.gz, examples/MP_compliant/MP_compatible_GaAs_r2SCAN_static.json.gz, examples/MP_compliant/OSZICAR.gz, examples/MP_compliant/OUTCAR.gz, examples/MP_compliant/PCDAT.gz, examples/MP_compliant/POSCAR.gz, examples/MP_compliant/POSCAR.orig.gz, examples/MP_compliant/POTCAR.spec.gz, examples/MP_compliant/PROCAR.gz, examples/MP_compliant/REPORT.gz, examples/MP_compliant/XDATCAR.gz, examples/MP_compliant/custodian.json.gz, examples/MP_compliant/vasp.out.gz and examples/MP_compliant/vasprun.xml.gz: a VASP 6.4.1 calculation directory used as an example.
- The same 19 files exist under examples/MP_non_compliant/ (with MP_incompatible_GaAs_r2SCAN_static.json.gz) as the failing counterpart example; examples/MP_compliant_job.py and examples/using_validation_docs.ipynb document them.
- tests/test_files/vasp/Si_old_double_relax.json.gz and tests/test_files/vasp/Si_static.json.gz (and Si_uniform.json.gz, fake_Si_potcar_spec.json.gz, mp-1245223_site_props_check.json.gz) are serialised VaspFiles/POTCAR-summary test documents read by tests/conftest.py and tests/test_validation.py; the mp-1245223 one holds only a structure and INCAR.
- tests/test_files/vasp/Si_uniform/{CONTCAR,INCAR,INCAR.orig,KPOINTS,KPOINTS.orig,OUTCAR,POSCAR,POSCAR.orig,custodian.json,vasprun.xml}.gz are a small VASP calculation directory used by test_validation_from_files.
- tests/test_files/vasp/fake_potcar/POT_GGA_PAW_PBE/{Al,Eu,Gd,H,O,Si}/POTCAR..gz and POT_GGA_PAW_PBE_54/{La,Si}/POTCAR..gz are synthetic POTCARs: the decompressed POTCAR.Al begins
TITEL = PAW_PBE Al 04Jan2001 ; FAKEand its data blocks are random numbers, consistent with tests/test_validation.py:71because the POTCAR info cannot be distributed. All are test data, not installed by pybuild. - No non-free wording (non-commercial, All rights reserved, Good, not Evil, no modification, patent, proprietary) anywhere in the tree; no PDFs, images, compiled objects or archives other than the gz fixtures.
- vasp_defaults.yaml is the generator input for vasp_defaults.py and is read only by _make_pythonic_defaults() (vasp_defaults.py:248), not at import; VASP_DEFAULTS_LIST is inline, so the package does not need the YAML at runtime.
- uscan found the packaged version as the newest upstream release (upstream
0.1.4, packaged0.1.4).
Not confirmed ◂
- Which licence upstream actually intends (MIT from LICENSE versus BSD-3-Clause-LBNL from pyproject.toml) cannot be checked offline; the review treats the LICENSE text as the operative grant.
- No build or install was possible, so the exact wheel contents (e.g. whether py.typed is included) were not verified.
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.