You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
py-dnspython: update to 2.1.0 for python 36+; use pypi; enable tests
This commit is contained in:
@@ -4,7 +4,7 @@ PortSystem 1.0
|
||||
PortGroup python 1.0
|
||||
|
||||
name py-dnspython
|
||||
version 1.16.0
|
||||
version 2.1.0
|
||||
categories-append net
|
||||
license ISC
|
||||
platforms darwin
|
||||
@@ -18,17 +18,48 @@ long_description \
|
||||
dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
||||
|
||||
homepage http://www.dnspython.org/
|
||||
master_sites ${homepage}kits/${version}
|
||||
distname dnspython-${version}
|
||||
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}/
|
||||
|
||||
python.versions 27 35 36 37 38 39
|
||||
python.versions 27 36 37 38 39
|
||||
|
||||
checksums rmd160 c3662f85998d51b437a3eaa0f5a04c3b0d61fd69 \
|
||||
sha256 4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9 \
|
||||
size 150524
|
||||
use_zip true
|
||||
|
||||
checksums rmd160 788eefa23e3ec734bfd02910ecab2cff534bb117 \
|
||||
sha256 e4a87f0b573201a0f3727fa18a516b055fd1107e0e5477cded4a2de497df1dd4 \
|
||||
size 389021
|
||||
|
||||
if {${name} ne ${subport}} {
|
||||
depends_build-append port:py${python.version}-setuptools
|
||||
|
||||
depends_lib-append port:py${python.version}-cryptography \
|
||||
port:py${python.version}-idna \
|
||||
port:py${python.version}-requests \
|
||||
port:py${python.version}-requests-toolbelt \
|
||||
port:py${python.version}-sniffio \
|
||||
port:py${python.version}-trio
|
||||
|
||||
if {${python.version} eq 27} {
|
||||
version 1.16.0
|
||||
revision 0
|
||||
# Below distname is required for this to work
|
||||
distname dnspython-${version}
|
||||
|
||||
checksums rmd160 1be4e79bcadfd39bc631d56391f727ce92fdabe2 \
|
||||
sha256 36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01 \
|
||||
size 266364
|
||||
|
||||
depends_lib-delete port:py${python.version}-sniffio \
|
||||
port:py${python.version}-trio
|
||||
} else {
|
||||
depends_test-append port:py${python.version}-pytest
|
||||
|
||||
test.run yes
|
||||
test.dir ${build.dir}/tests
|
||||
test.cmd python${python.branch}
|
||||
test.target utest.py
|
||||
test.env PYTHONPATH=${worksrcpath}/build/lib
|
||||
}
|
||||
}
|
||||
|
||||
post-destroot {
|
||||
@@ -42,11 +73,3 @@ post-destroot {
|
||||
${destroot}${prefix}/share/doc/${subport}/examples
|
||||
}
|
||||
}
|
||||
|
||||
if {${name} eq ${subport}} {
|
||||
livecheck.type regex
|
||||
livecheck.url ${homepage}
|
||||
livecheck.regex {is (\d+(?:\.\d+)*),}
|
||||
} else {
|
||||
livecheck.type none
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user