Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8446

Test suite in github but missing from pypi tarballs

From Edward Betts <edward@4angle.com>
Newsgroups linux.debian.maint.python
Subject Test suite in github but missing from pypi tarballs
Date 2016-04-21 16:50 +0200
Message-ID <rqo5A-2dR-33@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Recently I've come across some Python libraries that have a test suite in
their github repo but don't include it in the tarball they upload to pypi.

Debian binary packages don't normally include the test suite. Some Python
library developers are treating the pypi releases in a similar way, as if
they're just for deployment. They think anybody who needs the test suite is
doing development and will clone from the github repo.

It is very useful to run the test suite when building a Debian package. It
would be better if upstream would include the test suite in their release
tarballs.

It is often just a one line change to MANIFEST.in to have the test suite
included. If the tests are in a directory called 'tests', then this is the
line that needs to added:

  recursive-include tests *.py

I've been sending github pull requests to encourage library authors to make
this change.

  https://github.com/RPi-Distro/python-gpiozero/pull/284
  https://github.com/john-kurkowski/tldextract/pull/97

You might want to take a few minutes to check any Python packages you've
worked on, see if there is a test suite in the github repo that hasn't made it
to the release tarball and send a pull request to fix it.

It is also good thing to check when making a new Debian package.
-- 
Edward.

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Test suite in github but missing from pypi tarballs Edward Betts <edward@4angle.com> - 2016-04-21 16:50 +0200
  Re: Test suite in github but missing from pypi tarballs Thomas Goirand <zigo@debian.org> - 2016-04-21 17:00 +0200
    Re: Test suite in github but missing from pypi tarballs Matthias Klose <doko@debian.org> - 2016-04-21 17:30 +0200
      Re: Test suite in github but missing from pypi tarballs Thomas Goirand <zigo@debian.org> - 2016-04-21 19:10 +0200
    Re: Test suite in github but missing from pypi tarballs Barry Warsaw <barry@debian.org> - 2016-04-21 19:40 +0200
  Re: Test suite in github but missing from pypi tarballs Tristan Seligmann <mithrandi@mithrandi.net> - 2016-04-21 17:20 +0200
    Re: Test suite in github but missing from pypi tarballs Fred Drake <fred@fdrake.net> - 2016-04-21 17:30 +0200
      Re: Test suite in github but missing from pypi tarballs Ian Cordasco <graffatcolmingov@gmail.com> - 2016-04-21 18:10 +0200
        Re: Test suite in github but missing from pypi tarballs Fred Drake <fred@fdrake.net> - 2016-04-21 18:20 +0200
          Source distribution is for building from source (was: Test suite in github but missing from pypi tarballs) Ben Finney <ben+debian@benfinney.id.au> - 2016-04-22 01:10 +0200
      Re: Test suite in github but missing from pypi tarballs Jeremy Stanley <fungi@yuggoth.org> - 2016-04-21 19:20 +0200
        Re: Test suite in github but missing from pypi tarballs Fred Drake <fdrake@gmail.com> - 2016-04-21 20:10 +0200
    Re: Test suite in github but missing from pypi tarballs Barry Warsaw <barry@debian.org> - 2016-04-21 19:40 +0200
      Re: Test suite in github but missing from pypi tarballs Tristan Seligmann <mithrandi@mithrandi.net> - 2016-04-22 07:20 +0200
    Re: Test suite in github but missing from pypi tarballs Brian May <bam@debian.org> - 2016-04-22 12:10 +0200
    Re: Test suite in github but missing from pypi tarballs Brian May <bam@debian.org> - 2016-04-22 12:10 +0200
  Re: Test suite in github but missing from pypi tarballs Edward Betts <edward@4angle.com> - 2016-04-22 12:50 +0200
    Re: Test suite in github but missing from pypi tarballs Edward Betts <edward@4angle.com> - 2016-04-23 12:40 +0200

csiph-web