Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8447
| From | Thomas Goirand <zigo@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Test suite in github but missing from pypi tarballs |
| Date | 2016-04-21 17:00 +0200 |
| Message-ID | <rqofh-2i1-37@gated-at.bofh.it> (permalink) |
| References | <rqo5A-2dR-33@gated-at.bofh.it> |
| Organization | Debian |
On 04/21/2016 04:10 PM, Edward Betts wrote: > 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. Why? It's my view that it's a good idea to include it, if it is located within the lib itself. > 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 It's best that the test suite goes within the project. So if project is called foo, then best is to get the test folder in foo/tests. This way, you don't even need to fix the MANIFEST.in. Then you can even use it as an autopkgtest thing. > 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. IMO, don't bother, and just re-generate a tarball from git, using "git archive", which is my preferred way to use upstream sources. Cheers, Thomas Goirand (zigo)
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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