pretty-midi 0.2.11+ds-1
Package Information
| Description | utility functions for handling MIDI data in a nice/intuitive way This contains utility function/classes for handling MIDI data, so that it's in a format which is easy to modify and extract information from. This package installs the library for Python 3. |
|---|---|
| Maintainer | Alex Myczko <tar@debian.org> |
| Changed By | Alex Myczko <tar@debian.org> |
| Sponsor | tar@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/debian/pretty-midi.git (browse) |
| Tracker | https://tracker.debian.org/pkg/pretty-midi |
| Uploaded | 3 days ago |
| Supersedes | 0.2.11-1 |
New Package Report
.changes
| Version | 0.2.11+ds-1 |
|---|---|
| Changed-By | Alex Myczko <tar@debian.org> |
| Architecture | source all |
| Distribution | unstable |
| Date | Wed, 02 Dec 2026 19:53:42 +0100 |
| Source | pretty-midi |
Changelog
pretty-midi (0.2.11+ds-1) unstable; urgency=medium . * Initial release.
.dsc
| Section | python |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | python3-pretty-midi deb python optional arch=all |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/craffel/pretty-midi Upstream-Name: pretty-midi Upstream-Contact: Colin Raffel Files-Excluded: pretty_midi/TimGM6mb.sf2 Files: * Copyright: 2014-2026 Colin Raffel 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. Files: debian/* Copyright: 2026 Alex Myczko <tar@debian.org> License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package. If not, see <https://www.gnu.org/licenses/>. Comment: On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
DFSG Assistant LLM REVIEW 1 blocker, 1 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 3 days ago.
Report
DFSG NEW review for pretty-midi version 0.2.11+ds-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: No
- Issues: 1 blocker, 1 important, 4 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 1 found
Licensing
The text sources are consistently MIT, the DEP-5 copyright file reproduces the MIT text, and the excluded TimGM6mb soundfont is properly replaced by a dependency on timgm6mb-soundfont. However, example.mid is a MIDI arrangement of Bohemian Rhapsody carrying third-party copyright notices (International Music Publications Ltd, Barnes Music Engraving Ltd) and no licence permitting distribution; it is in the upstream source tarball and is wrongly attributed to Colin Raffel under MIT. Distribution of the source package is therefore not DFSG-compliant.
Packaging
The packaging is mostly conventional, but the binary package declares no dependency (and dh_python3 cannot derive one) for importlib_resources, which pretty_midi/fluidsynth.py imports unconditionally and pretty_midi/pretty_midi.py imports at the top, so import pretty_midi fails on a clean system. debian/rules also hardcodes the Python 3.14/3.15 dist-packages directories and disables the whole upstream test suite with echo moo. Standards-Version, changelog, Vcs fields and the soundfont handling are fine.
Issues
blocker licensing 1. example.mid is a copyrighted Bohemian Rhapsody MIDI with no free licence, attributed to Colin Raffel under MIT ◂
- Files:
example.mid,debian/copyright - Basis: checked, in the package or with a reference tool
- Evidence: MIDI metadata in
example.mid:Bohemian GM,(P)1993 International Music Publications Ltd,(C)1993 Barnes Music Engraving Ltd;debian/copyrighthasFiles: */Copyright: 2014-2026 Colin Raffel/License: MIT. - Problem: The file is a commercial musical work's MIDI sequence whose own notices claim phonographic and engraving rights in third parties, with no statement permitting redistribution. Policy 2.3: a work with a copyright notice but no permission allows nothing, so the file is non-free and cannot be in main; it is part of the distributed source package. debian/copyright is also inaccurate: it attributes the file to Colin Raffel under MIT and omits the named holders.
- Fix: Remove example.mid from the source package (add it to Files-Excluded and repack the +ds tarball, adjusting the README/Tutorial examples), or replace it with a freely licensed MIDI. If it is kept, obtain a written permission and record the actual holders and licence in debian/copyright.
important packaging 2. python3-pretty-midi lacks a dependency for importlib_resources, which importing pretty_midi requires ◂
- Files:
pretty_midi/pretty_midi.py:23,pretty_midi/fluidsynth.py:6,debian/control:19-22 - Basis: checked, in the package or with a reference tool
- Evidence:
pretty_midi/pretty_midi.py:23hasfrom .fluidsynth import get_fluidsynth_instance;pretty_midi/fluidsynth.py:6hasimport importlib_resources;debian/controlonly has${python3:Depends}, ${misc:Depends}, timgm6mb-soundfont; dh-python's map/usr/share/dh-python/dist/cpython3_fallbackhas no importlib-resources entry, soguess_dependency()returns None (checked in/usr/share/dh-python/dhpython/pydist.py). - Problem:
__init__.pyimports.pretty_midi, which imports.fluidsynth, which imports the top-level backport moduleimportlib_resourcesunconditionally. Nothing ensures that module is installed: control names no dependency and dh_python3 cannot translate the egg-info requirement, soimport pretty_midiraises ModuleNotFoundError on a clean system. The reviewing system's package lists and NEW queue also show no python3-importlib-resources binary. - Fix: Patch pretty_midi/fluidsynth.py to use the standard-library
importlib.resources(Python >= 3.9) and dropimportlib_resourcesfrom install_requires, or add the correct runtime dependency if such a Debian package exists.
minor packaging 3. debian/rules hardcodes the python3.14 and python3.15 dist-packages paths ◂
- Files:
debian/rules:13-15 - Basis: checked, in the package or with a reference tool
- Evidence:
ln -sf /usr/share/sounds/sf2/TimGM6mb.sf2 debian/python3-pretty-midi/usr/lib/python3.14/dist-packages/pretty_midi/TimGM6mb.sf2and the same line withpython3.15. - Problem: pybuild installs each supported interpreter into
/usr/lib/python<version>/dist-packages(DEFAULT_INSTALL_DIRin/usr/share/dh-python/dhpython/build/options.py), and dh_python3 later merges those directories. The list depends on python3-all's current supported versions (currently 3.14 and 3.15 per apt-cache). When Debian adds or drops a minor version, onelnwill fail because its parent directory does not exist, or the wrong interpreter's copied 5 MB soundfont will be left in the package instead of the symlink. - Fix: Create the link with a debian/python3-pretty-midi.links entry (and stop installing TimGM6mb.sf2 via package_data), or generate the versioned paths from
py3versions -rrather than hardcoding them.
minor
packaging
4. override_dh_auto_test disables the upstream test suite with echo moo
◂
- Files:
debian/rules:17-18,debian/control:13 - Basis: checked, in the package or with a reference tool
- Evidence:
override_dh_auto_test:/@echo moo;#Testsuite: autopkgtest-pkg-pythonis commented out and there is no debian/tests. - Problem: The tests in tests/ are never run at build time or by autopkgtest, and the target succeeds regardless, so regressions are not detected. The tests need only python3-pytest (pytest and mido are imported), and pybuild enables pytest automatically when python3-pytest is in Build-Depends.
- Fix: Add python3-pytest to Build-Depends, drop the override to let dh_auto_test run the suite (or run it explicitly), and enable Testsuite: autopkgtest-pkg-python as an additional check.
minor packaging 5. Files-Excluded is set but debian/watch sets no repack suffix ◂
- Files:
debian/copyright,debian/watch - Basis: found by the review tooling's own checks
- Evidence:
0.2.11+ds-1 - Problem:
debian/copyrighthasFiles-Excluded, so uscan repacks the upstream tarball, butdebian/watchneither names the suffix the repacked version gets nor mangles the version. - Fix: Set
Repacksuffixindebian/watchto the suffix the version carries.
minor packaging 6. The repack suffix is not removed before versions are compared ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Evidence: uscan compares
0.2.11+dswith upstream's0.2.11(status:only older package available) - Problem: The packaged version carries a repack suffix that
debian/watchdoes not remove before comparing, so uscan compares it as it is with upstream's version and never finds them equal. - Fix: Remove the suffix for the comparison, with
Dversion-Mangle: auto(version 5) ordversionmangle=auto(version 4).
Verified ◂
- Read every file under debian/ in full (changelog, clean, control, copyright, docs, rules, source/format, source/options, upstream/metadata); debian/watch left to the separate check.
- Inventoried the 25 non-debian files; all Python, docs, examples, tests and README files carry no separate copyright/licence headers and match the MIT holder Colin Raffel, so
Files: *covers them. - debian/copyright is valid DEP-5: complete MIT text, and the GPL-2+ stanza points to /usr/share/common-licenses/GPL-2.
- Files-Excluded
pretty_midi/TimGM6mb.sf2is absent from the unpacked tree; the soundfont comes from timgm6mb-soundfont (in the archive, 1.3-5, installs /usr/share/sounds/sf2/TimGM6mb.sf2), which is a binary Depends. - The prescan's holder check is correct for the text files: every textual holder found (Colin Raffel, and the debian/ uploader) is named in debian/copyright.
- examined example.mid as raw bytes: it is a standard MIDI file whose track name and embedded notices identify a Bohemian Rhapsody sequence with the two third-party notices quoted above.
- dh_python3 maps numpy, mido and six to Debian packages (checked /usr/share/dh-python/dist/cpython3_fallback), so those runtime dependencies are generated; python3-mido and python3-six exist per apt-cache.
- Checked dh-python's DEFAULT_INSTALL_DIR and fix_locations to confirm pybuild installs into versioned dist-packages that dh_python3 later merges.
- Standards-Version 4.7.4 is current against Policy 4.7.4.1; changelog distribution, version and date are sane; compat 13 is supported and not discouraged.
- No debian/patches, maintainer scripts or *.maintscript exist; the single binary package is Architecture: all and the pybuild/rules structure is otherwise conventional.
- Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (GPL-2).
Not confirmed ◂
- The package was not built and its tests were not run; the test-disabling override means upstream tests are not exercised at all.
- Whether some package outside the reviewing system's lists and NEW queue provides the top-level importlib_resources module; the missing dependency is a fault either way.
- example.mid's provenance beyond its embedded metadata; the holders quoted are those the file itself names.
- The licence and copyright of the excluded TimGM6mb.sf2 soundfont were not reviewed because the file is not shipped.
debian/watchlooks atgithub.com/craffel/@package@, but theSourcefield ofdebian/copyrightnamesgithub.com/craffel/pretty-midi. Whether these are the same upstream was not checked.debian/watchlooks atgithub.com/craffel/@package@, butRepositoryindebian/upstream/metadatanamesgithub.com/craffel/pretty-midi. Whether these are the same upstream was not checked.
Proposed changes ◂
None.
Uploader's response to the LLM review
I have another pkg with example.mid excluded, and examples/* installed, please reject. Will upload either very late today or tomorrow...
— Alex Myczko (tar), 3 days ago
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.