packaging.python.org icon indicating copy to clipboard operation
packaging.python.org copied to clipboard

Provide some guidance on specifying test dependencies

Open nchammas opened this issue 5 years ago • 2 comments

The packaging guide could use a brief blurb providing guidance on how to specify test dependencies for your project.

Some background:

Would it make sense to add something to the setuptools guide on specifying test dependencies, and specifically on whether or not to use tests_require?

What would the guidance be?

nchammas avatar Aug 31 '20 14:08 nchammas

I agree that this should be covered.

AFAIK the current "recommended way" of doing this in setuptools is to add an optional dependency ("extra") for it, named something like tests or test.

smheidrich avatar Mar 26 '22 21:03 smheidrich

Hi @smheidrich I think testing is also common, it is used in setuptools itself and I also think in virtualenv.

testing might have became popular because it is one of the examples in the tox docs.

abravalheri avatar Mar 26 '22 22:03 abravalheri