[MacPorts] #64241: python portgroup: add opt-in test support
MacPorts
noreply at macports.org
Sat Dec 18 22:51:10 UTC 2021
#64241: python portgroup: add opt-in test support
--------------------------+----------------------
Reporter: mascguy | Owner: mascguy
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: tests
Port: python |
--------------------------+----------------------
Comment (by reneeotten):
I like that idea and it's certainly worth considering to add something
along these lines as it would indeed simplify the ports. I'd probably in
favor of having `python.tests` with options like `pytest` or `nose` to
specify which testing framework to use. Ideally one would be able to check
whether `supported_archs noarch` is set which would give the code you give
above, if it's not set one would use
{{{
pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
}}}
instead of the `test.env-append` given above. I haven't looked whether
that's an easy thing to do, but we can investigate that a bit more. I can
take a look if you want, but that's probably not going to happen until
Christmas time.
--
Ticket URL: <https://trac.macports.org/ticket/64241#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list