Some ports require using Python for their test suite even if the port is not for a Python module. This patch adds support for an optional argument `test` for use within the `USES` property with `python.mk` (eg `python:3.2+,test`) that the relevant content to the `TEST_DEPENDS` property to use the correct version of Python during testing.
Created attachment 164654 [details]
Can you include a patch for an example port that uses this feature please so that the value can be clearly seen
Created attachment 164655 [details]
Remove unnecessary setuptools dependency
A commit references this bug:
Date: Sat Jan 2 15:24:37 UTC 2016
New revision: 405075
Mk/Uses/python.mk: Add support for optional 'test' argument
Some ports may need to use Python for their testing suite but otherwise
do not need it at all (ie, not for build or run). This patch adds
support for the test argument to be used in the USES clause, such as
python:3.2+,test. This enables the relevant Python environment and
modifies TEST_DEPENDS as necessary.
For non-Python ports that use Python as their testing suite, add
python:<ver>,test as required to the USES clause.
Submitted by: Brendan Molloy <brendan+freebsd bbqsrc net>
Reviewed by: mat, miwi, koobs, antoine
Approved by: koobs (python)
Differential Revision: https://reviews.freebsd.org/D4711
Committed, thank you Brendan!