You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
133 lines
5.4 KiB
Tcl
133 lines
5.4 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.0
|
|
PortGroup select 1.0
|
|
|
|
name py-pytest
|
|
version 9.0.2
|
|
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 f3f46ab60373947077561022039bec452aacf163 \
|
|
sha256 75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11 \
|
|
size 1568901
|
|
|
|
python.versions 27 35 36 37 38 39 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools_scm
|
|
|
|
depends_lib-append port:py${python.version}-setuptools \
|
|
port:py${python.version}-iniconfig \
|
|
port:py${python.version}-packaging \
|
|
port:py${python.version}-pygments \
|
|
port:py${python.version}-pluggy
|
|
|
|
if {${python.version} < 38} {
|
|
depends_lib-append \
|
|
port:py${python.version}-importlib-metadata
|
|
}
|
|
|
|
if {${python.version} < 311} {
|
|
depends_lib-append \
|
|
port:py${python.version}-exceptiongroup \
|
|
port:py${python.version}-tomli
|
|
}
|
|
|
|
depends_run port:pytest_select
|
|
|
|
if {${python.version} eq 27} {
|
|
version 4.6.3
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 5d88707bd2fc29ee675087b24461a9ca8cbe1ffb \
|
|
sha256 4a784f1d4f2ef198fe9b7aef793e9fa1a3b2f84e822d9b3a64a181293a572d45 \
|
|
size 949947
|
|
|
|
depends_lib-append port:py${python.version}-atomicwrites \
|
|
port:py${python.version}-six \
|
|
port:py${python.version}-funcsigs \
|
|
port:py${python.version}-more-itertools
|
|
} elseif {${python.version} eq 35} {
|
|
version 5.4.3
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 c846ffd08e49fe6742a97b6606aebcf4a2761f01 \
|
|
sha256 7979331bfcba207414f5e1263b5a0f8f521d0f457318836a7355531ed1a4c7d8 \
|
|
size 1022353
|
|
depends_lib-append port:py${python.version}-more-itertools
|
|
} elseif {${python.version} eq 36} {
|
|
version 7.0.1
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 530488f483b32848f0650ad490ce4e74e85263f8 \
|
|
sha256 e30905a0c131d3d94b89624a1cc5afec3e0ba2fbdb151867d8e0ebd49850f171 \
|
|
size 1249154
|
|
# "py" was added for 6.0.0 then vendored in 7.2.0
|
|
depends_lib-append port:py${python.version}-py
|
|
} elseif {${python.version} eq 37} {
|
|
version 7.4.4
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 12d1be2172489516e510471f581f0391c1937dcb \
|
|
sha256 2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280 \
|
|
size 1357116
|
|
} elseif {${python.version} eq 38} {
|
|
version 8.3.5
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 707dd941a3808989a6cf8b900cf7ba15f4b79404 \
|
|
sha256 f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845 \
|
|
size 1450891
|
|
} elseif {${python.version} eq 39} {
|
|
version 8.4.2
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 684c02e9e4968068d9a22b613af3135067915215 \
|
|
sha256 86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01 \
|
|
size 1519618
|
|
}
|
|
|
|
if {${python.version} <= 35} {
|
|
depends_lib-append port:py${python.version}-wcwidth \
|
|
port:py${python.version}-pathlib2
|
|
depends_lib-delete port:py${python.version}-iniconfig \
|
|
port:py${python.version}-tomli
|
|
}
|
|
|
|
if {${python.version} <= 36} {
|
|
# attrs was dropped in 7.3.0
|
|
depends_lib-append port:py${python.version}-attrs
|
|
depends_lib-delete port:py${python.version}-exceptiongroup
|
|
}
|
|
|
|
if {${python.version} <= 38} {
|
|
depends_lib-delete port:py${python.version}-pygments
|
|
}
|
|
|
|
select.group pytest
|
|
select.file ${filespath}/pytest${python.version}
|
|
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
|
|
}
|