On 13. 01. 20 22:54, Adam Williamson wrote:
On Sun, 2020-01-12 at 23:24 +0100, Miro Hrončok wrote:

Please don't mention it as required or even necessarily recommended, as
it may not be. I intentionally set up my projects such that tox is
appropriate for upstream CI, not distribution package checking, and
intend distribution packages to run setup.py test.

The %tox macro runs the tests in current environment.

See https://github.com/fedora-python/tox-current-env/ for details.

It's not about the environment. It's about what they actually *do*. In
my projects, tox runs linters, coverage checks and unit tests; setup.py
test only runs unit tests. This is a convenient separation because I
find it appropriate to run linters and coverage checks on commits/PRs
for upstream, but there is no point in running them on package builds.

I agree with everything you said. Taking what we have, ideally we should convince upstreams to only run tests with default toxenv, not linters.

We also don't have a tox-standard to only run offline testes etc. Maybe one 
day...

At the same time, `setup.py test` is deprecated.

Sigh. Always nice when people deprecate perfectly well-working
workflows out from underneath you. :/

Right. Two things to consider:

 - the deprecation period will most likely last forever
 - setup.py files will eventually disappear anyway


--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to