Commits

reneeotten authored and Ken committed 351649844b3
py-docx: update to 0.8.9, add py37

- use github PortGroup, use default livecheck - enable tests - update dependencies - install files in post-destroot
No tags

python/py-docx/Portfile

Modified
1 1 # -*- 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
2 2
3 3 PortSystem 1.0
4 4 PortGroup python 1.0
5 +PortGroup github 1.0
5 6
7 +github.setup python-openxml python-docx 0.8.9 v
6 8 name py-docx
7 -version 0.0.2
8 -revision 1
9 -categories-append devel
9 +revision 0
10 +categories-append devel
10 11 platforms darwin
11 12 license MIT
12 13 maintainers nomaintainer
13 14
14 -description The docx module creates, reads and writes Microsoft Office Word 2007 docx files
15 -long_description \
16 - The module was created when I was looking for a Python support for \
17 - MS Word .doc files, but could only find various hacks involving COM \
18 - automation, calling .net or Java, or automating OpenOffice or MS Office.
15 +description Create and update Microsoft Word .docx files
16 +long_description ${description}
19 17
20 -homepage https://github.com/mikemaccana/python-docx
18 +checksums rmd160 23cfea337911d7cd5a664384c652ca022d789485 \
19 + sha256 3eb8239cd12d50cbcb4728b3aa92b636cca54b0f2bfcb2a526bf6cefee5148b0 \
20 + size 45185886
21 21
22 -fetch.type git
23 -git.url ${homepage}.git
24 -git.branch 7f0781e7a86ba26d69f5e09850ef7e4fc35d3795
25 -
26 -python.versions 27
22 +python.versions 27 37
27 23
28 24 if {${name} ne ${subport}} {
29 - depends_lib-append port:py${python.version}-lxml
25 + depends_build-append \
26 + port:py${python.version}-setuptools
27 +
28 + depends_lib-append \
29 + port:py${python.version}-lxml
30 +
31 + depends_lib-append \
32 + port:py${python.version}-mock \
33 + port:py${python.version}-parsing \
34 + port:py${python.version}-pytest
35 + test.run yes
36 + test.cmd py.test-${python.branch}
37 + test.target
38 + test.env PYTHONPATH=${worksrcpath}/build/lib
39 +
40 + post-destroot {
41 + xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
42 + xinstall -m 0644 -W ${worksrcpath} HISTORY.rst LICENSE README.rst \
43 + ${destroot}${prefix}/share/doc/${subport}
44 + }
30 45
31 46 livecheck.type none
32 -} else {
33 - livecheck.type regex
34 - livecheck.url https://raw.github.com/mikemaccana/python-docx/master/setup.py
35 - livecheck.regex {version='(\d+(?:\.\d+)*)'}
36 47 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut