DrMarc / slab

python classes for working with sounds and conducting psychoacoustic experiments
MIT License
22 stars 7 forks source link

Add a "tests_requires" #21

Closed hadware closed 3 years ago

hadware commented 3 years ago

Hey, first issue for my review of this really cool package :)

Could you add a tests_require requires to your setup.py (and maybe migrate the stuff that's in extra_requires -> "testing" to it). You should probably also add pytest as a test dependency since it seems that it's your testing framework.

It makes things easier for testing, as we can then just run python setup.py test, then run the tests.

On a side note: are you fine with me posting small issues (very much like this one) that could potentially be mostly nitpicking about stuff, or would you prefer that I only stick strictly to issues about what's required to pass the "JOSS bar"?

DrMarc commented 3 years ago

Hi,

Good point, we'll add pytest to the requirements. My understanding of setuptools is that tests_require is deprecated and the recommended way to specify additional dependencies is through extras_require (see https://setuptools.readthedocs.io/en/latest/userguide/keywords.html). You can use pip install slab[testing] instead of pip install slab test - I'll mention that in the installation instructions.

Yes, small issues are fine - very helpful!

DrMarc commented 3 years ago

Resolved in f509c43.

hadware commented 3 years ago

Ah! well, paint me astonished, i didn't know it was deprecated. I'll also change that on my own packages :thinking: