Files

84 lines
3.2 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.1
PortGroup select 1.0
name py-pytest
version 9.1.1
revision 0
categories-append devel
platforms {darwin any}
supported_archs noarch
license MIT
maintainers {reneeotten @reneeotten} openmaintainer
description py.test: simple powerful testing with Python
long_description The pytest framework makes it easy to write small tests, \
yet scales to support complex functional testing \
for applications and libraries.
homepage https://pytest.org
checksums rmd160 43618b381f315db39a053c875f96db747f71770a \
sha256 1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313 \
size 1636369
python.versions 27 310 311 312 313 314 315 315t
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.suffix}-setuptools_scm
depends_lib-append port:py${python.suffix}-iniconfig \
port:py${python.suffix}-packaging \
port:py${python.suffix}-pluggy \
port:py${python.suffix}-pygments
if {${python.version} == 310} {
depends_lib-append \
port:py${python.suffix}-exceptiongroup \
port:py${python.suffix}-tomli
}
if {${python.version} == 27} {
version 4.6.3
revision 0
distname ${python.rootname}-${version}
checksums rmd160 5d88707bd2fc29ee675087b24461a9ca8cbe1ffb \
sha256 4a784f1d4f2ef198fe9b7aef793e9fa1a3b2f84e822d9b3a64a181293a572d45 \
size 949947
depends_lib-delete port:py${python.suffix}-iniconfig \
port:py${python.suffix}-pygments
depends_lib-append \
port:py${python.suffix}-atomicwrites \
port:py${python.suffix}-attrs \
port:py${python.suffix}-funcsigs \
port:py${python.suffix}-importlib-metadata \
port:py${python.suffix}-more-itertools \
port:py${python.suffix}-packaging \
port:py${python.suffix}-pathlib2 \
port:py${python.suffix}-pluggy \
port:py${python.suffix}-py \
port:py${python.suffix}-setuptools \
port:py${python.suffix}-six \
port:py${python.suffix}-wcwidth
}
depends_run port:pytest_select
select.group pytest
select.file ${filespath}/pytest${python.suffix}
notes-append "
To make the Python ${python.branch} version of pytest the one that is run\
when you execute the commands without a version suffix, e.g. 'pytest', run:
sudo port select --set ${select.group} [file tail ${select.file}]
"
livecheck.type none
}