[MacPorts] #64241: python portgroup: add opt-in test support

MacPorts noreply at macports.org
Sun Dec 19 13:59:52 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 mascguy):

 Replying to [comment:1 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.

 Sounds great Renee. And I'm happy to do the work on this; just wanted to
 facilitate collaborative discussion, to ensure the various bases are
 covered.

 I'll take a stab at all of this over the next week or two. Once the work
 is reasonably complete, I'll submit a PR for formal review.

 And thanks as always for your feedback and insights!

-- 
Ticket URL: <https://trac.macports.org/ticket/64241#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list