[Distutils] Where should I put tests when packaging python modules?

Antoine Pitrou solipsis at pitrou.net
Tue Oct 6 14:51:10 CEST 2015


On Tue, 6 Oct 2015 15:34:38 +0300
Ionel Cristian Mărieș <contact at ionelmc.ro> wrote:
> 
> Very few
> test runners change the current working directory by default [1], so it's
> better to just get a better project layout. pyca/cryptography
> <https://github.com/pyca/cryptography> is a good example.​

The "src" convention is actually terrible when working with Python
code, since suddenly you can't experiment easily on a VCS checkout, you
have to do extra steps and/or write helper scripts for it.

The fact that few Python projects, including amongst the most popular
projects, use that convention mean it's really not considered a good
practice, nor convenient.

Regards

Antoine.


More information about the Distutils-SIG mailing list