On Sun, Dec 22, 2024 at 06:23:24PM +0100, Simon Josefsson wrote:
> So far I've only noticed that some self-tests and auxilliary files are
> missing from the PyPI tarballs, and I don't consider that to be
> important enough to deviate from using the pypi.debian.net sources yet.

Hi Simon,

There is no Debian Python policy to use PyPI versus GitHub versions as
far as I am aware.  However, the PyPI versions of packages frequently
do not include the test suites, as many developers regard those as
part of the development environment, not the release environment (and
having test suites included in all packages could cause significant
bloat).  You are, of course, welcome to ask them to reconsider for
this package, but you may not have any success, and I wouldn't rely on
them agreeing to your request.

Whatever the outcome of your negotiations, the Debian Python team is
very keen on having autopkgtests for as many packages as possible:
doing so catches all sorts of bugs and can prevent your package from
mysteriously breaking.  So given that upstream have written a test
suite that you have easy access to (via GitHub), unless you have a
very strong reason *not* to include it in the Debian sources, you
really ought to do so.  "It isn't included in the PyPI source tarball"
is not a strong reason.  So it seems that you have a few choices:

(1) Use the GitHub sources in place of the PyPI sources.

(2) Use the GitHub sources, patched in those few places where the PyPI
version differs to match the PyPI version.  (This can be done via
debian/patches.)

(3) Use the PyPI sources and include the test suite from GitHub; this
could be done via the dpkg-source components mechanism, for example.
It would complicate the packaging a bit, and make upgrading harder
work, but it would certainly be feasible.

(4) Decide on principle that you're going to stick with the PyPI
version come what may, and as upstream haven't included a test suite
in that version, the Debian package won't either.


I am sure I'm not alone on the Debian Python Team in strongly
discouraging you from following option (4).  My personal preference
would be (1) or (2), depending on how significantly different the
GitHub and PyPI versions are.  (And this does also assume that the
developers have tagged their Git repository with appropriate tags.)

Best wishes,

   Julian

Reply via email to