Sign me up Login

Details about package python-test2ref

Name: python-test2ref
Uploader: Mitchell Augustin <mitchell@mitchellaugustin.com> (Debian QA page)
Description: python3-test2ref - Testing Against Learned Reference Data

Package uploads

Upload #1

Information

Version: 0.8.2-1
Uploaded: 2025-04-19 21:56
Source package: python-test2ref_0.8.2-1.dsc
Distribution: unstable
Section: python
Priority: optional
Homepage: https://github.com/nbiotcloud/test2ref/
Closes bugs: #1103609

Changelog

 python-test2ref (0.8.2-1) unstable; urgency=medium
 .
   * New upstream release. (closes: #1103609)

QA information

Comments

  1. Mitchell,
    
    Review of upload: 2025-04-19 21:56
    
    For information about the tests run, see:
    
    https://wiki.debian.org/PhilWyett/DebianMentoring
    
    Test 1 (reproducibility): Information only
    
     dpkg-source --before-build .
     debian/rules clean
    dh clean --buildsystem=pybuild
       dh_auto_clean -O--buildsystem=pybuild
       dh_autoreconf_clean -O--buildsystem=pybuild
       dh_clean -O--buildsystem=pybuild
     debian/rules binary
    dh binary --buildsystem=pybuild
       dh_update_autotools_config -O--buildsystem=pybuild
       dh_autoreconf -O--buildsystem=pybuild
       dh_auto_configure -O--buildsystem=pybuild
       dh_auto_build -O--buildsystem=pybuild
    I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
    I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /tmp/reprotest.Zoor8c/const_build_path/const_build_path/.pybuild/cpython3_3.13_python-test2ref  
    * Building wheel...
     - Adding .pdm-build/test2ref-0.8.2.dist-info/METADATA -> test2ref-0.8.2.dist-info/METADATA
     - Adding .pdm-build/test2ref-0.8.2.dist-info/WHEEL -> test2ref-0.8.2.dist-info/WHEEL
     - Adding .pdm-build/test2ref-0.8.2.dist-info/entry_points.txt -> test2ref-0.8.2.dist-info/entry_points.txt
     - Adding .pdm-build/test2ref-0.8.2.dist-info/licenses/LICENSE -> test2ref-0.8.2.dist-info/licenses/LICENSE
     - Adding src/test2ref/__init__.py -> test2ref/__init__.py
     - Adding test2ref-0.8.2.dist-info/RECORD -> test2ref-0.8.2.dist-info/RECORD
    Successfully built test2ref-0.8.2-py3-none-any.whl
    I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
       dh_auto_test -O--buildsystem=pybuild
    I: pybuild base:311: cd /tmp/reprotest.Zoor8c/const_build_path/const_build_path/.pybuild/cpython3_3.13_python-test2ref/build; python3.13 -m pytest tests
    ==================================================================== test session starts =====================================================================
    platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
    rootdir: /tmp/reprotest.Zoor8c/const_build_path/const_build_path/.pybuild/cpython3_3.13_python-test2ref/build
    configfile: pyproject.toml
    plugins: cov-5.0.0, typeguard-4.4.2
    collected 16 items                                                                                                                                           
    
    tests/test_main.py ................                                                                                                                    [100%]
    
    ------------ generated xml file: /tmp/reprotest.Zoor8c/const_build_path/const_build_path/.pybuild/cpython3_3.13_python-test2ref/build/report.xml -------------
    
    ---------- coverage: platform linux, python 3.13.3-final-0 -----------
    Name                   Stmts   Miss  Cover
    ------------------------------------------
    test2ref/__init__.py     133      6    95%
    ------------------------------------------
    TOTAL                    133      6    95%
    Coverage HTML written to dir htmlcov
    
    ===================================================================== 16 passed in 0.16s =====================================================================
       create-stamp debian/debhelper-build-stamp
       dh_testroot -O--buildsystem=pybuild
       dh_prep -O--buildsystem=pybuild
       dh_auto_install --destdir=debian/python3-test2ref/ -O--buildsystem=pybuild
    I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir
       dh_installdocs -O--buildsystem=pybuild
       dh_installchangelogs -O--buildsystem=pybuild
       dh_python3 -O--buildsystem=pybuild
       dh_installsystemduser -O--buildsystem=pybuild
       dh_perl -O--buildsystem=pybuild
       dh_link -O--buildsystem=pybuild
       dh_strip_nondeterminism -O--buildsystem=pybuild
       dh_compress -O--buildsystem=pybuild
       dh_fixperms -O--buildsystem=pybuild
       dh_missing -O--buildsystem=pybuild
       dh_installdeb -O--buildsystem=pybuild
       dh_gencontrol -O--buildsystem=pybuild
       dh_md5sums -O--buildsystem=pybuild
       dh_builddeb -O--buildsystem=pybuild
    dpkg-deb: building package 'python3-test2ref' in '../python3-test2ref_0.8.2-1_all.deb'.
     dpkg-genbuildinfo --build=binary -O../python-test2ref_0.8.2-1_amd64.buildinfo
     dpkg-genchanges --build=binary -O../python-test2ref_0.8.2-1_amd64.changes
    dpkg-genchanges: info: binary-only upload (no source code included)
     dpkg-source --after-build .
    dpkg-buildpackage: info: binary-only upload (no source included)
    --- /tmp/tmpof8xoej8/control
    +++ /tmp/tmpof8xoej8/experiment-0
    │   --- /tmp/tmpof8xoej8/control/source-root
    ├── +++ /tmp/tmpof8xoej8/experiment-0/source-root
    │ │   --- /tmp/tmpof8xoej8/control/source-root/python3-test2ref_0.8.2-1_all.deb
    │ ├── +++ /tmp/tmpof8xoej8/experiment-0/source-root/python3-test2ref_0.8.2-1_all.deb
    │ │ ├── control.tar.xz
    │ │ │ ├── control.tar
    │ │ │ │ ├── ./md5sums
    │ │ │ │ │ ├── ./md5sums
    │ │ │ │ │ │┄ Files differ
    │ │ ├── data.tar.xz
    │ │ │ ├── data.tar
    │ │ │ │ ├── ./usr/lib/python3/dist-packages/report.xml
    │ │ │ │ │ ├── ./usr/lib/python3/dist-packages/report.xml
    │ │ │ │ │ │ @@ -1,19 +1,19 @@
    │ │ │ │ │ │  <?xml version="1.0" encoding="utf-8"?>
    │ │ │ │ │ │  <testsuites>
    │ │ │ │ │ │ +  <testsuite name="pytest" errors="0" failures="0" skipped="0" tests="16" time="0.167" timestamp="2025-04-19T22:33:50.385201-12:00" hostname="ks-tarkin">
    │ │ │ │ │ │ +    <testcase classname="tests.test_main" name="test_configure" time="0.003"/>
    │ │ │ │ │ │ -  <testsuite name="pytest" errors="0" failures="0" skipped="0" tests="16" time="0.162" timestamp="2025-04-19T22:33:47.468853-12:00" hostname="ks-tarkin">
    │ │ │ │ │ │ -    <testcase classname="tests.test_main" name="test_configure" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_default[False]" time="0.005"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_default[True]" time="0.003"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_capsys[False]" time="0.004"/>
    │ │ │ │ │ │ +    <testcase classname="tests.test_main" name="test_capsys[True]" time="0.004"/>
    │ │ │ │ │ │ +    <testcase classname="tests.test_main" name="test_caplog[False]" time="0.004"/>
    │ │ │ │ │ │ -    <testcase classname="tests.test_main" name="test_capsys[True]" time="0.003"/>
    │ │ │ │ │ │ -    <testcase classname="tests.test_main" name="test_caplog[False]" time="0.003"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_caplog[True]" time="0.003"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_replace" time="0.003"/>
    │ │ │ │ │ │ +    <testcase classname="tests.test_main" name="test_default_excludes" time="0.003"/>
    │ │ │ │ │ │ -    <testcase classname="tests.test_main" name="test_default_excludes" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_excludes" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_assert_paths" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_path_replacements" time="0.003"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_path_abs" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_path_rel" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_flavor" time="0.002"/>
    │ │ │ │ │ │      <testcase classname="tests.test_main" name="test_regex" time="0.003"/>
    Not reproducible, even when fixing as much as reprotest knows how to. :(
    
    Test 3 (build twice): Information only
    
     debian/rules clean
    dh clean --buildsystem=pybuild
       dh_auto_clean -O--buildsystem=pybuild
       dh_autoreconf_clean -O--buildsystem=pybuild
       dh_clean -O--buildsystem=pybuild
     dpkg-source -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: building python-test2ref using existing ./python-test2ref_0.8.2.orig.tar.gz
    dpkg-source: info: local changes detected, the modified files are:
     python-test2ref-0.8.2/.pdm-build/test2ref-0.8.2.dist-info/METADATA
     python-test2ref-0.8.2/.pdm-build/test2ref-0.8.2.dist-info/WHEEL
     python-test2ref-0.8.2/.pdm-build/test2ref-0.8.2.dist-info/entry_points.txt
     python-test2ref-0.8.2/.pdm-build/test2ref-0.8.2.dist-info/licenses/LICENSE
    dpkg-source: hint: make sure the version in debian/changelog matches the unpacked source tree
    dpkg-source: hint: you can integrate the local changes with dpkg-source --commit
    dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/python-test2ref_0.8.2-1.diff.qcVmox
    dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
    I: copying local configuration
    E: Failed autobuilding of package
    
    Test 4 (sbuild): Information only
    
    lintian:
    
    Running lintian...
    N:
    E: python3-test2ref: unknown-file-in-python-module-directory [usr/lib/python3/dist-packages/report.xml]
    N: 
    N:   This package installs the specified "non-Python" file in the top-level of
    N:   a Python library directory.
    N:   
    N:   This was either a mistake and/or will likely to cause conflicts with other
    N:   packages.
    N: 
    N:   Visibility: error
    N:   Show-Always: no
    N:   Check: languages/python
    N: 
    N:
    W: python3-test2ref: package-contains-vcs-control-file [usr/lib/python3/dist-packages/htmlcov/.gitignore]
    N: 
    N:   The package contains a VCS control file such as .(cvs|git|hg)ignore. Files
    N:   such as these are used by revision control systems to, for example,
    N:   specify untracked files it should ignore or inventory files. This file is
    N:   generally useless in an installed package and was probably installed by
    N:   accident.
    N: 
    N:   Visibility: warning
    N:   Show-Always: no
    N:   Check: files/vcs
    N: 
    N:
    I: python3-test2ref: extended-description-is-probably-too-short
    N: 
    N:   The extended description (the lines after the first line of the
    N:   "Description:" field) is only one or two lines long. The extended
    N:   description should provide a user with enough information to decide
    N:   whether they want to install this package, what it contains, and how it
    N:   compares to similar packages. One or two lines is normally not enough to
    N:   do this.
    N: 
    N:   Please refer to General guidelines for package descriptions (Section
    N:   6.2.1) in the Debian Developer's Reference and The long description
    N:   (Section 6.2.3) in the Debian Developer's Reference for details.
    N: 
    N:   Visibility: info
    N:   Show-Always: no
    N:   Check: fields/description
    N: 
    N:
    I: python3-test2ref: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/htmlcov/class_index.html]
    N: 
    N:   This package ships a documentation file outside /usr/share/doc
    N:   Documentation files are normally installed inside /usr/share/doc.
    N:   
    N:   If this file doesn't describe the contents or purpose of the directory it
    N:   is in, please consider moving this file to /usr/share/doc/ or maybe even
    N:   removing it. If this file does describe the contents or purpose of the
    N:   directory it is in, please add a lintian override.
    N: 
    N:   Visibility: info
    N:   Show-Always: no
    N:   Check: documentation
    N: 
    N:   Screen: python/egg/metadata
    N:     Advocates: "Scott Kitterman" <debian@kitterman.com>
    N:     Reason: The folders XXX.dist-info/ and XXX.egg-info/ hold metadata for
    N:             Python modules. Those files are not documentation even though
    N:             some of their names carry the .txt file extension.
    N:             
    N:             Python modules can be both public and private.
    N:             
    N:             Read more in
    N:             https://www.python.org/dev/peps/pep-0427/#the-dist-info-directory,
    N:             https://www.python.org/dev/peps/pep-0376/#id16,
    N:             https://www.python.org/dev/peps/pep-0610/,
    N:             https://www.python.org/dev/peps/pep-0639/,
    N:             https://setuptools.pypa.io/en/latest/deprecated/python_eggs.html,
    N:             and Bug#1003913.
    N: 
    N:
    I: python3-test2ref: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/htmlcov/function_index.html]
    N:
    I: python3-test2ref: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/htmlcov/index.html]
    N:
    I: python3-test2ref: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/htmlcov/z_b2c20d3605bca8e4___init___py.html]
    N:
    I: python3-test2ref: spelling-error-in-description "allows to" "allows one to"
    N: 
    N:   Lintian found a spelling error in the package description. Lintian has a
    N:   list of common misspellings that it looks for. It does not have a
    N:   dictionary like a spelling checker does. It is particularly picky about
    N:   spelling and capitalization in package descriptions since they're very
    N:   visible to end users.
    N: 
    N:   Visibility: info
    N:   Show-Always: no
    N:   Check: fields/description
    N: 
    N:
    P: python3-test2ref: image-file-in-usr-lib [usr/lib/python3/dist-packages/htmlcov/favicon_32_cb_58284776.png]
    N: 
    N:   This package installs a pixmap or a bitmap within /usr/lib. According to
    N:   the Filesystem Hierarchy Standard, architecture-independent files should
    N:   be placed within /usr/share instead.
    N: 
    N:   Visibility: pedantic
    N:   Show-Always: no
    N:   Check: images
    N: 
    N:
    P: python3-test2ref: image-file-in-usr-lib [usr/lib/python3/dist-packages/htmlcov/keybd_closed_cb_605cab3d.png]
    
    E: Lintian run failed (runtime error)
    
    Test 7 (licenserecon): Information only
    
    philwyett@ks-tarkin:~/Development/builder/debian/python-test2ref-0.8.2$ lrc
    en: Versions: licenserecon '4.2'  licensecheck '3.3.9-1'
    
    Parsing Source Tree  ....
    Reading d/copyright  ....
    Running licensecheck ....
    
    d/copyright      | licensecheck
    
    MIT              | Expat             LICENSE
    MIT              | Expat             pyproject.toml
    MIT              | Expat             src/test2ref/__init__.py
    MIT              | Expat             tests/__init__.py
    MIT              | Expat             tests/test_main.py
    MIT              | Expat             tests/util.py
    
    Summary
    =======
    
    Looks promising. Above are a number of issues you may wish to look at.
    
    Regards
    
    Phil
    Needs work Phil Wyett at April 20, 2025, 10:37 a.m.
  2. Thanks Phil.
    
    I should be able to resolve this by adding some overrides - on my local test, the following works:
    
    override_dh_auto_clean:
    	dh_auto_clean -- $(options)
    	rm -rf .pdm-build
    
    override_dh_auto_install:
    	dh_auto_install -- $(options)
    	rm -r debian/python3-test2ref/usr/lib/python*/dist-packages/htmlcov
    	rm debian/python3-test2ref/usr/lib/python*/dist-packages/report.xml
    
    I'm certain there's a more 'proper' way of doing this that I just haven't found, though (especially w.r.t. the wildcard I use in override_dh_auto_install, which I'd like to avoid). Is there a Debian-preferred way of doing these things you can recommend?
    Needs work Mitchell Augustin at April 22, 2025, 10:50 p.m.