[Pkg-matrix-maintainers] Bug#961852: python-matrix-nio: autopkgtest failure: No module named 'matrix_nio'

Henry-Nicolas Tourneur debian at nilux.be
Mon Jun 8 11:34:38 BST 2020


Dear Matrix-team maintainers,

As discussed over the matrix room #debian-matrix:matrix.org, please 
find in attachment a patch to solve this bug.
Basically, this happened because autodep8 tries to derive the Python 
module name from the package name.
In this case, the module name is nio while autodep8 tries to import 
matrix_nio from the package name, which fails.

The patch attached does the following:
- Remove the autodep8 autopkgtest
- Add a custom autopkgtest (debian/test/control and debian/test/pytest):
  This autopkgtest is actually using the upstream test cases (pytest-3 
tests/), going further than a regular module import.
- Adding a debian/salsa-ci.yml file so you can enable CI on your Salsa 
repo and use that file to validate autopkgtests works fine before 
uploading to main
- Document the changes in debian/changelog


Best regards,

Henry-Nicolas Tourneur
Matrix id: @hntourne:matrix.nilux.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-matrix-nio.diff
Type: text/x-patch
Size: 2351 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-matrix-maintainers/attachments/20200608/bdfa0ba3/attachment.bin>


More information about the Pkg-matrix-maintainers mailing list