[Bug 2096544] [NEW] 0.24.3 shipped with partial tests in PyPI

Dave Jones 2096544 at bugs.launchpad.net
Thu Jan 23 19:19:10 UTC 2025


Public bug reported:

The current version of pyudev in the archive (0.24.3) shipped with
several files under tests/ missing. This appears to be a combination of
a couple of factors:

* firstly a mistake in the PyPI packaging (reported upstream [1]), and

* secondly the fact the Debian package is using the PyPI archive in the
first place (grabbing an orig tar-ball from GitHub is generally
preferred for more or less this reason -- that test suites and other
things may quite reasonably be excluded from PyPI packaging)

The upstream developers advise (at [1]) that the test-suite included in
the repo should not be used in packaging, and suggests an alternate set
[2]. However, we don't run the full test-suite, merely a subset so I
think we're probably okay sticking with that. Still, we should switch
the source of the orig tar-ball to GitHub, and produce a new upload of
the current version that includes the full test-suite.

[1]: https://github.com/pyudev/pyudev/pull/519

[2]: https://src.fedoraproject.org/tests/python-pyudev/tree/main

** Affects: pyudev (Ubuntu)
     Importance: Undecided
     Assignee: Dave Jones (waveform)
         Status: Confirmed

** Changed in: pyudev (Ubuntu)
     Assignee: (unassigned) => Dave Jones (waveform)

** Changed in: pyudev (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pyudev in Ubuntu.
https://bugs.launchpad.net/bugs/2096544

Title:
  0.24.3 shipped with partial tests in PyPI

Status in pyudev package in Ubuntu:
  Confirmed

Bug description:
  The current version of pyudev in the archive (0.24.3) shipped with
  several files under tests/ missing. This appears to be a combination
  of a couple of factors:

  * firstly a mistake in the PyPI packaging (reported upstream [1]), and

  * secondly the fact the Debian package is using the PyPI archive in
  the first place (grabbing an orig tar-ball from GitHub is generally
  preferred for more or less this reason -- that test suites and other
  things may quite reasonably be excluded from PyPI packaging)

  The upstream developers advise (at [1]) that the test-suite included
  in the repo should not be used in packaging, and suggests an alternate
  set [2]. However, we don't run the full test-suite, merely a subset so
  I think we're probably okay sticking with that. Still, we should
  switch the source of the orig tar-ball to GitHub, and produce a new
  upload of the current version that includes the full test-suite.

  [1]: https://github.com/pyudev/pyudev/pull/519

  [2]: https://src.fedoraproject.org/tests/python-pyudev/tree/main

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyudev/+bug/2096544/+subscriptions




More information about the foundations-bugs mailing list