Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Include tests in releases #12

Open
oxan opened this issue May 6, 2011 · 2 comments
Open

Include tests in releases #12

oxan opened this issue May 6, 2011 · 2 comments

Comments

@oxan
Copy link

oxan commented May 6, 2011

Hi,

The tests directory currently isn't included in the manifest file and releases. As the tests can be quite useful for distributions packaging your software (testing for regressions), could you include it in the releases? Also, changing setup.py so that the tests are automatically run when you call 'setup.py test' would be a nice addition.

Thanks!

@mtai
Copy link

mtai commented May 9, 2011

I'm not too familiar with package distributions but from what I understand, isn't that akin to including the "source" with the package? Don't we typically want to exclude tests/source from a production package? Not saying its a bad idea but I don't know how to include tests/ on the top level without having it create a "tests" module discoverable in PYTHONPATH. Ideas?

@oxan
Copy link
Author

oxan commented May 11, 2011

I think it's possible to do using setuptools. You include the tests directory, but when setup.py install is called it doesn't install the directory. Anything you add to the manifest doesn't get installed by default as far as I know, but I haven't tried it yet.

(woops, hit comment&close again..)

@oxan oxan closed this as completed May 11, 2011
@oxan oxan reopened this May 11, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants