Skip to content
Permalink
Browse files

py-pytools: update to 2019.1, add py37

- enable tests
- install files in post-destroot
- use default PyPI livecheck and python.rootname
  • Loading branch information
reneeotten authored and cjones051073 committed Apr 5, 2019
1 parent 68c173f commit b030d47c1595228d333c6e42281ef716e4b0a059
Showing with 32 additions and 16 deletions.
  1. +32 −16 python/py-pytools/Portfile
@@ -3,10 +3,9 @@
PortSystem 1.0
PortGroup python 1.0

set real_name pytools

name py-${real_name}
version 2017.6
name py-pytools
version 2019.1
revision 0
platforms darwin
supported_archs noarch
license MIT
@@ -16,22 +15,39 @@ description A collection of tools for Python
long_description Pytools is a big bag of things that are 'missing' \
from the Python standard library.

homepage https://pypi.python.org/pypi/${real_name}
master_sites pypi:p/${real_name}
distname ${real_name}-${version}
homepage https://documen.tician.de/pytools/
master_sites pypi:p/${python.rootname}
distname ${python.rootname}-${version}

checksums rmd160 67f3250237ca2472a0ffbd140056aea607e7f92a \
sha256 80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115
checksums rmd160 84a65add0ac2fdbbfd07e68f0d6a1927de36c7a4 \
sha256 f6972030e6c97089e49b832fd1f4e7959aee89bb6db929aaa3bde2553d78872b \
size 57745

python.versions 27 35 36
python.versions 27 35 36 37

if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
depends_run-append port:py${python.version}-decorator
depends_build-append \
port:py${python.version}-setuptools

depends_lib-append port:py${python.version}-appdirs \
port:py${python.version}-decorator \
port:py${python.version}-numpy \
port:py${python.version}-six

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
${destroot}${docdir}
}

depends_test-append port:py${python.version}-pytest
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib



livecheck.type none
} else {
livecheck.type regex
livecheck.url https://pypi.python.org/pypi/${python.rootname}/json
livecheck.regex "\"${python.rootname}-(\[.\\d\]+)\\${extract.suffix}\""
}

0 comments on commit b030d47

Please sign in to comment.
You can’t perform that action at this time.