[Distutils] Including tests in source package
Stanisław Pitucha
viraptor at gmail.com
Sat Aug 21 17:59:46 CEST 2010
On 21.08.2010 13:50, Ben Finney wrote:
> I am using effectively the same as you describe above, but I get the
> result you are seeking: the sdist contains the test suite, and the
> binary dist does not.
>
> Have a look at Gracie <URL:http://pypi.python.org/pypi/gracie> for an
> example that works for me. Perhaps it can help you find what's different
> that causes the problem you're seeing.
Thanks a lot. I looked through your module, but I really cannot find
what's wrong with mine. I moved my tests to 'tests.suite' to match your
layout, but that didn't work.
I see that when your egg_info/SOURCES.txt is generated, it includes the
test module. My package doesn't do that - tests are never included in
the SOURCES.txt unless I specifically remove "excludes = ['tests']".
Does anyone have other ideas for fixing this?
Thanks,
Stan
More information about the Distutils-SIG
mailing list