You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
67 lines
2.2 KiB
Tcl
67 lines
2.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.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup docker docker-py 4.4.4
|
|
revision 0
|
|
|
|
name py-docker
|
|
categories-append devel
|
|
platforms darwin
|
|
supported_archs noarch
|
|
license Apache-2
|
|
maintainers {emcrisostomo @emcrisostomo} \
|
|
openmaintainer
|
|
|
|
description An API client for docker written in Python
|
|
long_description $description
|
|
|
|
checksums rmd160 17742c62ffa2462bbfbc2bbb846ea05c555e062c \
|
|
sha256 5ec598dfb7acbe7c8231695d8d6361ae0128a140e5dfee6354ca536b4ee6c472 \
|
|
size 247689
|
|
|
|
python.versions 27 37 38 39
|
|
|
|
if {${subport} ne ${name}} {
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools
|
|
|
|
depends_lib-append \
|
|
port:py${python.version}-paramiko \
|
|
port:py${python.version}-requests \
|
|
port:py${python.version}-six \
|
|
port:py${python.version}-websocket-client
|
|
|
|
depends_test-append \
|
|
port:py${python.version}-flake8 \
|
|
port:py${python.version}-mock \
|
|
port:py${python.version}-pytest \
|
|
port:py${python.version}-pytest-cov \
|
|
port:py${python.version}-pytest-timeout
|
|
|
|
if {${python.version} eq 27} {
|
|
depends_lib-append port:py${python.version}-ipaddress
|
|
}
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/share/doc/${subport}
|
|
xinstall -m 0644 -W ${worksrcpath} CONTRIBUTING.md LICENSE \
|
|
MAINTAINERS README.md ${destroot}${prefix}/share/doc/${subport}
|
|
}
|
|
|
|
pre-test {
|
|
test.env-append \
|
|
PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
|
|
# See https://docs.pytest.org/en/stable/pythonpath.html
|
|
delete ${test.dir}/${test.target}/__init__.py
|
|
}
|
|
|
|
test.run yes
|
|
test.cmd py.test-${python.branch}
|
|
test.target tests
|
|
|
|
livecheck.type none
|
|
}
|