Skip to content
Permalink
Browse files

py-cherrypy: update; add python 3.7; add dependencies

For python 3, update to 18.1.1
For python 2.7, update to last version supported 17.4.1

Tested with both 27 and 37 using the 10 tutorialsa

closes https://trac.macports.org/ticket/58337
  • Loading branch information
kurthindenburg committed Apr 13, 2019
1 parent dbab50b commit 9fd2c7271f691c4822baa3d93a676c0c96fc47c8
Showing with 21 additions and 6 deletions.
  1. +21 −6 python/py-cherrypy/Portfile
@@ -7,8 +7,7 @@ set _name cherrypy
set _n [string index ${_name} 0]

name py-${_name}
# 11.1.0 require various jaraco ports not in macports
version 11.0.0
version 18.1.1
categories-append www
platforms darwin
supported_archs noarch
@@ -32,17 +31,33 @@ homepage http://www.cherrypy.org/
distname CherryPy-${version}
master_sites pypi:${_n}/${_name}/

checksums rmd160 097cdb2f7be28792abcf1673314c68d1af9edb4b \
sha256 5671f88c8dd8aecaac650761d18f74a2789b88a9337eb7433abe92a5e0be6780
checksums rmd160 b615e83b2ed375714b92cfddc10cc1b2c3c285fe \
sha256 6585c19b5e4faffa3613b5bf02c6a27dcc4c69a30d302aba819639a2af6fa48b \
size 683044

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

if {${name} ne ${subport}} {
conflicts py${python.version}-cherrypy3

depends_build-append port:py${python.version}-setuptools \
port:py${python.version}-setuptools_scm
depends_lib-append port:py${python.version}-cheroot
depends_lib-append port:py${python.version}-cheroot \
port:py${python.version}-contextlib2 \
port:py${python.version}-portend \
port:py${python.version}-zc-lockfile

if {${python.version} eq 27} {
# Last version that will support python 2.7
version 17.4.1
revision 0
# Need to set distname again for some reason
distname CherryPy-${version}

checksums rmd160 dd53082306fd9f65f39da7a8b157df2c2b0b6d71 \
sha256 fba9fd96d0d9d5b4d680f7ec08e0758a7e5005039ee164e7936594ffad3a81ce \
size 684113
}

post-destroot {
xinstall -m 644 -W ${worksrcpath} \

0 comments on commit 9fd2c72

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