Commits

Renee Otten authored 103f9976ec6
py-cookies: remove py34 subport

- use python.rootname, default PyPI livecheck - enable tests
No tags

python/py-cookies/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 5
6 -set _name cookies
7 -set _n [string index ${_name} 0]
8 -
9 -name py-${_name}
6 +name py-cookies
10 7 version 2.2.1
8 +revision 0
9 +
11 10 categories-append devel
12 11 platforms darwin
13 12 supported_archs noarch
14 13 license MIT
15 -
16 14 maintainers {petr @petrrr} openmaintainer
17 15
18 16 description Friendly, RFC 6265-compliant cookie parser/renderer module
19 -
20 17 long_description \
21 18 Python module for working with HTTP cookies: parsing and rendering \
22 19 'Cookie:' request headers and 'Set-Cookie:' response headers, and \
23 20 exposing a convenient API for creating and modifying cookies. \
24 21 It can be used as a replacement of Python's `Cookie` or `http.cookies`.
25 22
26 23 homepage https://github.com/sashahart/cookies
24 +master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
25 +distname ${python.rootname}-${version}
27 26
28 -distname ${_name}-${version}
29 -master_sites pypi:${_n}/${_name}/
27 +checksums rmd160 a942793a1d643cb30ddf5d161e4c4b1e5c8dcf31 \
28 + sha256 d6b698788cae4cfa4e62ef8643a9ca332b79bd96cb314294b864ae8d7eb3ee8e \
29 + size 40704
30 30
31 -checksums md5 6f4c53aba3ed03e4e7b50812c2c2579a \
32 - rmd160 a942793a1d643cb30ddf5d161e4c4b1e5c8dcf31 \
33 - sha256 d6b698788cae4cfa4e62ef8643a9ca332b79bd96cb314294b864ae8d7eb3ee8e
34 -
35 -python.versions 27 34 35 36 37
31 +python.versions 27 35 36 37
36 32
37 33 if {${name} ne ${subport}} {
38 - depends_build-append port:py${python.version}-setuptools
34 + depends_build-append \
35 + port:py${python.version}-setuptools
36 +
37 + depends_build-append \
38 + port:py${python.version}-pytest
39 +
40 + test.run yes
41 + test.cmd py.test-${python.branch}
42 + test.target
43 + test.env PYTHONPATH=${worksrcpath}/build/lib
39 44
40 - # add documents
41 45 post-destroot {
42 46 set dest_doc ${destroot}${prefix}/share/doc/${subport}
43 47 xinstall -d ${dest_doc}
44 - xinstall -m 644 -W ${worksrcpath} README ${dest_doc}
45 - # temporary: from GitHub, no LICENSE file in the tarball
46 - xinstall -m 644 -W ${filespath} LICENSE ${dest_doc}
48 + xinstall -m 0644 -W ${worksrcpath} README LICENSE ${dest_doc}
47 49 }
48 50
49 51 livecheck.type none
50 -} else {
51 - livecheck.type regex
52 - livecheck.url https://pypi.python.org/pypi/${_name}/json
53 - livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
54 52 }

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

Add shortcut