py-bitarray: update to 1.1.0

- remove py34, add py38 subport
- enable tests
- use python.rootname, use default PyPI livecheck
This commit is contained in:
Renee Otten
2019-11-16 10:27:43 -05:00
committed by Renee Otten
parent 2ace89a855
commit 2be2275fb3
+26 -23
View File
@@ -3,20 +3,16 @@
PortSystem 1.0
PortGroup python 1.0
set _name bitarray
set _n [string index ${_name} 0]
name py-bitarray
version 1.1.0
revision 0
name py-${_name}
version 0.8.3
categories-append math
platforms darwin
license PSF
maintainers {petr @petrrr} openmaintainer
license PSF
description A efficient implementation of arrays of booleans
long_description \
This module provides an object type which efficiently represents an array \
of booleans. Bitarrays are sequence types and behave very much like usual \
@@ -25,23 +21,30 @@ long_description \
and big-endian. Most of the functionality is implemented in C. \
Methods for accessing the machine representation are provided.
homepage https://github.com/ilanschnell/${_name}
homepage https://github.com/ilanschnell/bitarray
distname ${python.rootname}-${version}
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${_name}-${version}
master_sites pypi:${_n}/${_name}/
checksums rmd160 7080c4a112fff2169a8751d843a1354745b44a09 \
sha256 9f578314c7808eb1416620dc7d7977d4787a65a4f61b4c9685343a860712615b \
size 40080
checksums rmd160 f670f9981592cad78e832edc964dbe0101908c7d \
sha256 050cd30b810ddb3aa941e7ddfbe0d8065e793012d0a88cb5739ec23624b9895e \
size 36292
python.versions 27 34 35 36 37
livecheck.type none
python.versions 27 35 36 37 38
if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools
} else {
livecheck.type regex
livecheck.url https://pypi.python.org/pypi/${_name}/json
livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst ${destroot}${docdir}
}
pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
test.run yes
test.cmd ${python.bin} bitarray/test_bitarray.py
test.target
livecheck.type none
}