pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-bottle
Module Name: pkgsrc
Committed By: adam
Date: Mon Sep 9 16:46:51 UTC 2024
Modified Files:
pkgsrc/www/py-bottle: Makefile PLIST distinfo
Log Message:
py-bottle: updated to 0.13.1
Release 0.13
==============
.. warning:: This release contains breaking changers, please read the notes below
.. rubric:: Dropped support for Python versions that reached their end-of-life.
Bottle up to 0.12 supported an absurd range of Python versions (2.5 to 3.12) and
keeping support for Python versions as ancient as 2.5 required a ton of workarounds
and compromises, but served no real purpose. If you need support for older Python
versions, you can stay on bottle 0.12. The updated list of tested and supported python
releases is as follows:
* Python 2 >= 2.7.3
* Python 3 >= 3.8
Support for Python 2.5 was marked as deprecated since 0.12. We decided to go a step further
and also remove support for 2.6 and 3.1 to 3.7 even if it was never deprecated explicitly
in bottle. This means that this release is *not* backwards compatible in Python <2.7.3 or
<3.8 environments. Maintainers for distributions or systems that still use these old python
versions should not update to Bottle 0.13 and stick with 0.12 instead.
.. rubric:: Stabilized APIs
* The documented API of the :class:`ConfigDict` class is now considered stable and ready to use.
.. rubric:: Deprecated APIs
* The old route syntax (``/hello/:name``) is deprecated in favor of the more readable and flexible ``/hello/<name>`` syntax.
* :meth:`Bottle.mount` now recognizes Bottle instance and will warn about parameters that are not compatible with the new mounting behavior. The old behavior (mount applications as WSGI callable)
still works and is used as a fallback automatically.
* The undocumented :func:`local_property` helper is now deprecated.
* The server adapter for google app engine is not useful anymore and marked as deprecated.
* Bottle uses pickle to store arbitrary objects into signed cookies. This is safe, as long as the signature key remains a secret. Unfortunately, people tend to push code with signature keys to github
all the time, so we decided to remove pickle-support from bottle. Signed cookies will now issue a deprecation warning if the value is not a string, and support for non-string values will be removed
in 0.14. The global :func:`cookie_encode`, :func:`cookie_decode` and :func:`is_cookie_encoded` are now also deprecated. If you are using this feature, think about using json to serialize your objects
before storing them into cookies, or switch to a session system that stores data server-side instead of client-side.
.. rubric:: Removed APIs (deprecated since 0.12)
* Plugins with the old API (``api=1`` or no api attribute) will no longer work.
* Parameter order of :meth:`Bottle.mount` changed in 0.10. The old order will now result in an error instead of a warning.
* The :class:`ConfigDict` class was introduced in 0.11 and changed during 0.12. These changes are now final.
* Attribute access and assignment was removed due to high overhead and limited usability.
* Namespaced sub-instance creation was removed. ``config["a"]["b"]`` has a high overhead and little benefit over ``config["a.b"]``.
* :class:`ConfigDict` instances are no longer callable. This was a shortcut for :meth:`ConfigDict.update`.
* :class:`ConfigDict` constructor no longer accepts any parameters. Use the `load_*` methods instead.
* Bottle 0.12 changed some aspects of the Simple Template Engine. These changes are now final and the old syntax will now longer work.
* The magic ``{{rebase()}}`` call was replaced by a ``base`` variable. Example: ``{{base}}``
* In STPL Templates, the ``rebase`` and ``include`` keywords were replaced with functions in 0.12.
* PEP-263 encoding strings are no longer recognized. Templates are always utf-8.
* The 'geventSocketIO' server adapter was removed without notice. It did not work anyway.
.. rubric:: Changes
These changes might require special care when updating.
* Signed cookies now use a stronger HMAC algorithm by default. This will result in old cookies to appear invalid after the update. Pass an explicit ``digestmod=hashlib.md5`` to
:meth:`BaseRequest.get_cookie` and :meth:`BaseResponse.set_cookie` to get the old behavior.
* Bottle now ships with its own multipart form data parser (borrowed from `multipart <https://pypi.org/project/multipart/>`_) and no longer relies on ``cgi.FieldStorage``, which was removed in Python
3.13. This may change the way broken (non-standard) form submissions are parsed. The new parser is more strict and correct than ohe old one.
.. rubric:: Other Improvements
* :class:`Bottle` instances are now context managers. If used in a with-statement, the default application changes to the specific instance and the shortcuts for many instance methods can be used.
* Added support for ``PATCH`` requests and the :meth:`Bottle.patch` decorator.
* Added `aiohttp <http://aiohttp.readthedocs.io/en/stable/>`_ and `uvloop <https://github.com/MagicStack/uvloop>`_ server adapters.
* Added command-line arguments for config from json or ini files.
* :meth:`Bottle.mount` now recognizes instances of :class:`Bottle` and mounts them with significantly less overhead than other WSGI applications.
* The :attr:`BaseRequest.json` property now accepts ``application/json-rpc`` requests.
* :func:`static_file` gained support for ``ETag`` headers. It will generate ETags and recognizes ``If-None-Match`` headers.
* :func:`static_file` will now guess the mime type of ``*.gz`` and other compressed files correctly (e.g. ``application/gzip``) and NOT set the ``Content-Encoding`` header.
* Jinja2 templates will produce better error messages than before.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/www/py-bottle/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-bottle/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/www/py-bottle/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-bottle/Makefile
diff -u pkgsrc/www/py-bottle/Makefile:1.16 pkgsrc/www/py-bottle/Makefile:1.17
--- pkgsrc/www/py-bottle/Makefile:1.16 Mon Mar 6 09:29:03 2023
+++ pkgsrc/www/py-bottle/Makefile Mon Sep 9 16:46:51 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2023/03/06 09:29:03 adam Exp $
+# $NetBSD: Makefile,v 1.17 2024/09/09 16:46:51 adam Exp $
-DISTNAME= bottle-0.12.25
+DISTNAME= bottle-0.13.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/bottle/}
@@ -10,11 +10,14 @@ HOMEPAGE= https://bottlepy.org/docs/stab
COMMENT= Fast, simple and lightweight WSGI micro web-framework for Python
LICENSE= mit
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} bottle.py bottle-${PYVERSSUFFIX} || ${TRUE}
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-bottle/PLIST
diff -u pkgsrc/www/py-bottle/PLIST:1.4 pkgsrc/www/py-bottle/PLIST:1.5
--- pkgsrc/www/py-bottle/PLIST:1.4 Mon Aug 3 13:58:05 2020
+++ pkgsrc/www/py-bottle/PLIST Mon Sep 9 16:46:51 2024
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.4 2020/08/03 13:58:05 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2024/09/09 16:46:51 adam Exp $
bin/bottle-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/bottle.py
${PYSITELIB}/bottle.pyc
${PYSITELIB}/bottle.pyo
Index: pkgsrc/www/py-bottle/distinfo
diff -u pkgsrc/www/py-bottle/distinfo:1.14 pkgsrc/www/py-bottle/distinfo:1.15
--- pkgsrc/www/py-bottle/distinfo:1.14 Mon Mar 6 09:29:03 2023
+++ pkgsrc/www/py-bottle/distinfo Mon Sep 9 16:46:51 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2023/03/06 09:29:03 adam Exp $
+$NetBSD: distinfo,v 1.15 2024/09/09 16:46:51 adam Exp $
-BLAKE2s (bottle-0.12.25.tar.gz) = 23d2e4e1808090a1c6734a9ba413e2d785cdb8552134c973fef89fd8f5e29873
-SHA512 (bottle-0.12.25.tar.gz) = 14b8ed1ffd58f9667d451872ccf73a6f4bf8f7ffb9329f55314f90c770630cfe3f9956f786bcc7fd5f67fde22d14961952969af405912ebe71f019ca6599c975
-Size (bottle-0.12.25.tar.gz) = 74231 bytes
+BLAKE2s (bottle-0.13.1.tar.gz) = 702f74b8fe49ad53e8705f0ba0b96c6cf248d4857422f9402bc57cb83face226
+SHA512 (bottle-0.13.1.tar.gz) = 504704d20712723436c61712e8aa41e603a0f66f74927b4d4122aaea3a090ab910d5daa12217d48b803a66fc3d96d491c2a0b30df236aff50520adb8c115609f
+Size (bottle-0.13.1.tar.gz) = 836422 bytes
Home |
Main Index |
Thread Index |
Old Index