Skip to content
Permalink
Browse files

py-tzlocal: update to 1.5.1, add py37

- add noarch
- fix livecheck
- enable tests
- install files in post-destroot
  • Loading branch information
reneeotten committed Apr 15, 2019
1 parent 1638ca1 commit ffc26d73ad3b9a16fcdf235621d3f641140105e0
Showing with 30 additions and 13 deletions.
  1. +30 −13 python/py-tzlocal/Portfile
@@ -1,32 +1,49 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
# -*- 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 github 1.0
PortGroup python 1.0

github.setup regebro tzlocal 1.4
github.setup regebro tzlocal 1.5.1
revision 0
name py-${name}
maintainers nomaintainer
categories python
description tzinfo object for the local timezone
long_description This Python module returns a tzinfo object with the local \
timezone information under Unix and Win-32. It requires \
pytz, and returns pytz tzinfo objects.

platforms darwin
supported_archs noarch
license MIT

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

checksums rmd160 7b36602b2940534e97c3aeb67065a4b9446a8b46 \
sha256 498469a5c544ea85a85f25a4b6896221b9ebb0fe4b6c139a12e2b6a2a466da89
checksums rmd160 6933b17f1d6ba5cc1c364bb8d46a365c81a07a37 \
sha256 f06ea7b1ff33ebd13292333ef73c58102da6fa4ba70f72b4c46dddd639fe0e45 \
size 16737

if { $name ne $subport } {
depends_build-append port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-tz

test.run yes
test.env PYTHONPATH=${worksrcpath}/build/lib

livecheck.type none
depends_build-append \
port:py${python.version}-setuptools

depends_lib-append \
port:py${python.version}-tz

depends_test-append \
port:py${python.version}-mock
test.run yes
test.cmd ${python.bin} setup.py
test.env PYTHONPATH=${worksrcpath}/build/lib

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

livecheck.type none
} else {
github.livecheck.regex {([0-9.]+)}
}

0 comments on commit ffc26d7

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