python setup.py testis no longer supported after we removed the astropy-helpers submodule, usetox -e py36?
_Originally posted by @StanczakDominik in https://github.com/PlasmaPy/PlasmaPy/pull/709#issuecomment-544813340_
There's clearly popular demand for python setup.py test and python setup.py build_docs. However, they've been sort of replaced by tox -e py36 or whichever version of Python you're running and tox -e build_docs, respectively.
SunPy uses ah-helpers to get their test command, but I don't want to have to bring it back.
The options as I see them:
@Cadair, would you mind me asking if you perhaps have Views on this?
The only one I would recommend is the first one, using setup.py to call tox is explicitly discouraged in the tox documentation.
The plan for Astropy (pending approval) and SunPy is to move away from the setup.py commands and replace them with a message telling people what to use instead. I was thinking we could write a single .py file we all could include in our repos that allow us to share this (i.e. by importing it into setup.py)
Thanks, I somehow managed to miss that part of the docs!
That sounds like a reasonable plan. I guess I'll hack something together as a proof of concept, and we can then compare/generalize implementations.
Most helpful comment
Thanks, I somehow managed to miss that part of the docs!
That sounds like a reasonable plan. I guess I'll hack something together as a proof of concept, and we can then compare/generalize implementations.