CherryPy is a pythonic, object-oriented web development framework.
CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program.
This usually results in smaller source code developed in less time.
CherryPy is now more than three years old and it is has proven very
fast and stable. It is being used in production by many sites, from
the simplest ones to the most demanding ones.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-cherrypy listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py311-cherrypy-18.10.0:
EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
devel/py-zclockfile: switch its consumers to devel/py-zc.lockfile
devel/py-zc.lockfile is a duplicate package as devel/py-zclockfile,
but more fresh. Switch consumers to this latest version.
With hat: python
devel/py-setuptools-scm: update to 8.0.4
Directory and PORTNAME changed to match normalised name in release
tarball; consumers updated to match.
Although setuptools itself is specified as a run dependency in the
Python package metadata, it is currently left out here to prevent
environment pollution until at least PR 270510 is committed.
Additionally, this version of setuptools-scm requires setuptools>=61,
which means this version is only meant for USE_PYTHON=pep517 ports
as all USE_PYTHON=distutils ports will switch to devel/py-setuptools58
also after PR 270510. science/py-emmet-core is switched to
devel/py-setuptools_scm7 accordingly, as it specifies setuptools-scm<8.
devel/py-{flit-scm,hatch-vcs} have ${PY_SETUPTOOLS} added to
RUN_DEPENDS to compensate.
Further details: https://wiki.freebsd.org/Python/setuptools
Reported by: yuri
Co-authored by: matthew
Exp-run by: antoine (earlier iteration)
Approved by: yuri (science/py-emmet-core, previous iteration)
PR: 272134
Differential Revision: https://reviews.freebsd.org/D39288
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.
With hat: python
PR: 270510, 270358
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
www/py-cherrypy: Update to 18.8.0
- Update build/run/test dependencies
- Remove patches (included now in the distribution)
- Remove do-test target (managed by python.mk)
www/py-cherrypy: unbreak with python311
>>> import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/cherrypy/__init__.py", line 71,
in <module>
from . import _cpdispatch as dispatch
File "/usr/local/lib/python3.11/site-packages/cherrypy/_cpdispatch.py", line
209, in <module>
getargspec = inspect.getargspec
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean:
'getargs'?
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
www/py-cherrypy: Fix runtime with Python 3.8 and onward
Backport patches from the 18.x release branch that uses the Python's
library "contextlib" instead of the external library "contextlib2".
The "contextlib2" library is a backported version which is required for
compatibility with Python 2.7 as the 17.x release of CherryPy is the
last one that has compatibility for Python 2.7.
Since the support for Python 2.7 has been removed in aa7a6c429ea6,
"contextlib2 is no longer needed for backward compatibility.
This is a transitional solution to fix the regression with Python 3.8
because an update to the 18.x release needs a bit more work and also
requires one or more new Python packages.
(Only the first 15 lines of the commit message are shown above )
Update to 17.4.2
The upcoming update of news/sabnzbd to 3.0.0 needs an updated cherrypy.
This is not the newest release of cherrypy as that has dependencies that
aren't in ports yet, but this gets us from a 2016 release to a 2019 release
PR: 247597
Submitted by: James French <james@french.id.au>
Approved by: maintainer timeout
www/py-cherrypy: unbreak with DEFAULT_VERSIONS += python=3.8
>>> import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/cherrypy/__init__.py", line 67,
in <module>
from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect
File "/usr/local/lib/python3.8/site-packages/cherrypy/_cperror.py", line 118,
in <module>
from cgi import escape as _escape
ImportError: cannot import name 'escape' from 'cgi'
(/usr/local/lib/python3.8/cgi.py)
Obtained from: upstream
www/py-cherrypy: Added USE_PYTHON=concurrent
It is obviously needed because py27 and py36 currently
conflict with each other.
Approved by: tcberner (mentor, implicit)
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10
Differential Revision: https://reviews.freebsd.org/D2639
Reviewed by: sunpoet, mva
- Update to 3.2.4 [1]
- Use CHEESESHOP as only download site [1]
- Remove leading article from COMMENT
- Add LICENSE (BSD3CLAUSE)
- Deprecate easy_install
- Use automatic pkg-plist via PYDISTUTILS_AUTOPLIST
- Convert to the new options framework
- Make EXAMPLES option effective only for Python ver. < 3,
due to devel/py-cheetah at the moment only for Python 2
- Add support for stage-dir
- Add a post-[extract|patch] target to fix setup.py,
otherwise *_AUTOPLIST fails
- Fix format of WWW field in pkg-descr, and remove Author:
PR: ports/186286 [1]
Submitted by: Martin Tournoij <martin@arp242.net>
- Update to 3.2.0
- Install test/native-server.ini, and test/fastcgi.conf
only if Python version < 3
- Set USE_PYTHON to "yes"
- Use devel/py-setuptools to install the module
- Update to 3.1.1
- Add devel/py-cheetah to RUN_DEPENDS when NOPORTEXAMPLES is not defined
- Remove files/patch-setup.py
PR: ports/128843
Submitted by: Wen Heping < wenheping at gmail dot com >
- Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
Python Eggs and the easy_install system
Tested by: pointyhat runs
Approved by: pav (portmgr)
Most work by: perky
Thanks to: pav
CherryPy is a pythonic, object-oriented web development framework.
CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program.
This usually results in smaller source code developed in less time.
PR: ports/91686
Submitted by: Nicola Vitale <nivit@email.it>