| 1 |
1.8.0 |
| 2 |
===== |
| 3 |
* replaced deprecated pkg_resources with importlib.metadata and importlib.resources (https://github.com/pecan/pecan/pull/171) |
| 4 |
* minimum Python version is now 3.10; removed support for Python 3.8 and 3.9 (https://github.com/pecan/pecan/pull/171) |
| 5 |
|
| 6 |
1.7.0 |
| 7 |
===== |
| 8 |
* added official support for Python 3.8 through 3.13 (https://github.com/pecan/pecan/pull/165) |
| 9 |
* extensions pecan imports via `pecan.ext` has been removed (https://github.com/pecan/pecan/issues/157) |
| 10 |
|
| 11 |
1.6.0 |
| 12 |
===== |
| 13 |
* remove pecan's dependency on https://pypi.org/project/logutils/, which is no |
| 14 |
longer actively maintained (https://github.com/pecan/pecan/issues/159) |
| 15 |
as a result, pecan's CLI will no longer print colorized log levels |
| 16 |
* remove support for Python 3.7 and prior |
| 17 |
|
| 18 |
1.5.1 |
| 19 |
===== |
| 20 |
* addressed an installation bug caused by a duplicate entry script (https://github.com/pecan/pecan/pull/142) |
| 21 |
|
| 22 |
1.5.0 |
| 23 |
===== |
| 24 |
|
| 25 |
* pecan no longer has a dependency on six (https://github.com/pecan/pecan/issues/144) |
| 26 |
* pecan now supports SQLAlchemy 2.0 (https://github.com/pecan/pecan/issues/143) |
| 27 |
* pecan no longer supports SQLAlchemy 1.3 |
| 28 |
|
| 29 |
1.4.2 |
| 30 |
===== |
| 31 |
|
| 32 |
* pecan no longer depends on webtest (https://github.com/pecan/pecan/issues/139) |
| 33 |
|
| 34 |
1.4.1 |
| 35 |
===== |
| 36 |
|
| 37 |
* add support for Python 3.10 |
| 38 |
* added trove classifiers for Python 3.6 - 3.9 |
| 39 |
* fixed a bug related to setuptools as a dependency |
| 40 |
(https://github.com/pecan/pecan/pull/122) |
| 41 |
* fixed a bug that broke pecan when used with certain versions of |
| 42 |
SQLAlchemy (https://github.com/pecan/pecan/pulls) |
| 43 |
|
| 44 |
1.4.0 |
| 45 |
===== |
| 46 |
* pecan now requires webob >= 1.8 |
| 47 |
* fixed a bug when parsing certain Accept headers |
| 48 |
(https://github.com/Pylons/webob/issues/403) |
| 49 |
* removed official support for Python 3.5 |
| 50 |
|
| 51 |
1.3.3 |
| 52 |
===== |
| 53 |
* fixed a bug in RestController that incorrectly routed certain @secure |
| 54 |
requests (https://github.com/pecan/pecan/pull/105) |
| 55 |
* removed official support for Python 3.3 |
| 56 |
|
| 57 |
1.3.2 |
| 58 |
===== |
| 59 |
* pecan now works with webob < and > 1.8 |
| 60 |
(https://github.com/pecan/pecan/pull/99) |
| 61 |
|
| 62 |
1.3.1 |
| 63 |
===== |
| 64 |
* pinned webob to <1.8 due to breaking changes in Accept header parsing |
| 65 |
(https://github.com/pecan/pecan/pull/97) |
| 66 |
(https://github.com/Pylons/webob/pull/338) |
| 67 |
|
| 68 |
1.3.0 |
| 69 |
===== |
| 70 |
* pecan is now officially supported for Python 3.6 |
| 71 |
* pecan is no longer supported for Python 2.6 |
| 72 |
|
| 73 |
1.2.1 |
| 74 |
===== |
| 75 |
* Reverts a stable API change/regression (in the 1.2 release) |
| 76 |
(https://github.com/pecan/pecan/issues/72). This change will re-released in |
| 77 |
a future major version upgrade. |
| 78 |
|
| 79 |
1.2 |
| 80 |
=== |
| 81 |
* Added a better error message when an invalid template renderer is specified |
| 82 |
in `pecan.expose()` (https://github.com/pecan/pecan/issues/81). |
| 83 |
* Pecan controllers that return `None` are now treated as an `HTTP 204 No |
| 84 |
Content` (https://github.com/pecan/pecan/issues/72). |
| 85 |
* The `method` argument to `pecan.expose()` for generic controllers is no |
| 86 |
longer optional (https://github.com/pecan/pecan/pull/77). |
| 87 |
|
| 88 |
1.1.2 |
| 89 |
===== |
| 90 |
* Fixed a bug where JSON-formatted HTTP response bodies were not making |
| 91 |
use of pecan's JSON type registration functionality |
| 92 |
(http://pecan.readthedocs.io/en/latest/jsonify.html) |
| 93 |
(https://github.com/pecan/pecan/issues/68). |
| 94 |
* Updated code and documentation examples to support readthedoc's move from |
| 95 |
`readthedocs.org` to `readthedocs.io`. |
| 96 |
|
| 97 |
1.1.1 |
| 98 |
===== |
| 99 |
* Pecan now officially supports Python 3.5. |
| 100 |
* Pecan now uses `inspect.signature` instead of `inspect.getargspec` in |
| 101 |
Python 3.5 and higher (because `inspect.getargspec` is deprecated in these |
| 102 |
versions of Python 3). |
| 103 |
* Fixed a bug that caused "after" hooks to run multiple times when |
| 104 |
`pecan.redirect(..., internal=True)` was used |
| 105 |
(https://github.com/pecan/pecan/issues/58). |
| 106 |
|
| 107 |
1.1.0 |
| 108 |
===== |
| 109 |
* `pecan.middleware.debug.DebugMiddleware` now logs exceptions at the ERROR |
| 110 |
level (https://github.com/pecan/pecan/pull/56). |
| 111 |
* Fix a Javascript bug in the default project scaffold |
| 112 |
(https://github.com/pecan/pecan/pull/55). |
| 113 |
|
| 114 |
1.0.5 |
| 115 |
===== |
| 116 |
* Fix a bug in controller argspec detection when class-based decorators are |
| 117 |
used (https://github.com/pecan/pecan/issues/47). |
| 118 |
|
| 119 |
1.0.4 |
| 120 |
===== |
| 121 |
* Removed an open file handle leak when pecan renders errors for Jinja2 and |
| 122 |
Genshi templates (https://github.com/pecan/pecan/issues/30). |
| 123 |
* Resolved a bug which caused log output to be duplicated in projects created |
| 124 |
with `pecan create` (https://github.com/pecan/pecan/issues/39). |
| 125 |
|
| 126 |
1.0.3 |
| 127 |
===== |
| 128 |
* Fixed a bug in `pecan.hooks.HookController` for newer versions of Python3.4 |
| 129 |
(https://github.com/pecan/pecan/issues/19). |
| 130 |
|
| 131 |
1.0.2 |
| 132 |
===== |
| 133 |
* Fixed an edge case in `pecan.util.getargspec` that caused the incorrect |
| 134 |
argspec to be returned in certain situations when using Python 2.6. |
| 135 |
* Added a `threading.lock` to the file system monitoring in `pecan serve |
| 136 |
--reload` to avoid extraneous server reloads. |
| 137 |
|
| 138 |
1.0.1 |
| 139 |
===== |
| 140 |
* Fixed a bug wherein the file extension for URLs with a trailing slash |
| 141 |
(`file.html` vs `file.html/`) were not correctly guessed, thus resulting in |
| 142 |
incorrect Content-Type headers. |
| 143 |
* Fixed a subtle bug in `pecan.config.Configuration` attribute/item assignment |
| 144 |
that caused some types of configuration changes to silently fail. |
| 145 |
|
| 146 |
1.0.0 |
| 147 |
===== |
| 148 |
* Replaced pecan's debugger middleware with an (optional) dependency on the |
| 149 |
`backlash` package. Developers who want to debug application-level |
| 150 |
tracebacks interactively should `pip install backlash` in their development |
| 151 |
environment. |
| 152 |
* Fixed a Content-Type related bug: when an explicit content_type is specified |
| 153 |
as an argument to `pecan.expose()`, it is now given precedence over the |
| 154 |
application-level default renderer. |
| 155 |
* Fixed a bug that prevented the usage of certain RFC3986-specified characters |
| 156 |
in path segments. |
| 157 |
* Fixed a bug in `pecan.abort` which suppressed the original traceback (and |
| 158 |
prevented monitoring tools like NewRelic from working as effectively). |
| 159 |
|
| 160 |
0.9.0 |
| 161 |
===== |
| 162 |
* Support for Python 3.2 has been dropped. |
| 163 |
* Added a new feature which allows users to specify custom path segments for |
| 164 |
controllers. This is especially useful for path segments that are not |
| 165 |
valid Python identifiers (such as path segments that include certain |
| 166 |
punctuation characters, like `/some/~path~/`). |
| 167 |
* Added a new configuration option, `app.debugger`, which allows developers to |
| 168 |
specify an alternative debugger to `pdb` (e.g., `ipdb`) when performing |
| 169 |
interactive debugging with pecan's `DebugMiddleware`. |
| 170 |
* Changed new quickstart pecan projects to default the `pecan` log level to |
| 171 |
`DEBUG` for development. |
| 172 |
* Fixed a bug that prevented `staticmethods` from being used as controllers. |
| 173 |
* Fixed a decoding bug in the way pecan handles certain quoted URL path |
| 174 |
segments and query strings. |
| 175 |
* Fixed several bugs in the way pecan handles Unicode path segments (for |
| 176 |
example, now you can define pecan routes that contain emoji characters). |
| 177 |
* Fixed several bugs in RestController that caused it to return `HTTP 404 Not |
| 178 |
Found` rather than `HTTP 405 Method Not Allowed`. Additionally, |
| 179 |
RestController now returns valid `Allow` headers when `HTTP 405 Method Not |
| 180 |
Allowed` is returned. |
| 181 |
* Fixed a bug which allowed special pecan methods (`_route`, `_lookup`, |
| 182 |
`_default`) to be marked as generic REST methods. |
| 183 |
* Added more emphasis in pecan's documentation to the need for `debug=False` in |
| 184 |
production deployments. |
| 185 |
|
| 186 |
0.8.3 |
| 187 |
===== |
| 188 |
* Changed pecan to more gracefully handle a few odd request encoding edge |
| 189 |
cases. Now pecan applications respond with an HTTP 400 (rather than an |
| 190 |
uncaught UnicodeDecodeError, resulting in an HTTP 500) when: |
| 191 |
- HTTP POST requests are composed of non-Unicode data |
| 192 |
- Request paths contain invalid percent-encoded characters, e.g., |
| 193 |
``/some/path/%aa/`` |
| 194 |
* Improved verbosity for import-related errors in pecan configuration files, |
| 195 |
especially those involving relative imports. |
| 196 |
|
| 197 |
0.8.2 |
| 198 |
===== |
| 199 |
* Fixes a bug that breaks support for multi-value query string variables (e.g., |
| 200 |
`?check=a&check=b`). |
| 201 |
|
| 202 |
0.8.1 |
| 203 |
===== |
| 204 |
* Improved detection of infinite recursion for PecanHook and pypy. This fixes |
| 205 |
a bug discovered in pecan + pypy that could result in infinite recursion when |
| 206 |
using the PecanHook metaclass. |
| 207 |
* Fixed a bug that prevented @exposed controllers from using @staticmethod. |
| 208 |
* Fixed a minor bug in the controller argument calculation. |
| 209 |
|
| 210 |
0.8.0 |
| 211 |
===== |
| 212 |
* For HTTP POSTs, map JSON request bodies to controller keyword arguments. |
| 213 |
* Improved argspec detection and leniency for wrapped controllers. |
| 214 |
* When path arguments are incorrect for RestController, return HTTP 404, not 400. |
| 215 |
* When detecting non-content for HTTP 204, properly catch UnicodeDecodeError. |
| 216 |
* Fixed a routing bug for generic subcontrollers. |
| 217 |
* Fixed a bug in generic function handling when context locals are disabled. |
| 218 |
* Fixed a bug that mixes up argument order for generic functions. |
| 219 |
* Removed `assert` for flow control; it can be optimized away with `python -O`. |
| 220 |
|
| 221 |
0.7.0 |
| 222 |
===== |
| 223 |
* Fixed an edge case in RestController routing which should have returned an |
| 224 |
HTTP 400 but was instead raising an exception (and thus, HTTP 500). |
| 225 |
* Fixed an incorrect root logger configuration for quickstarted pecan projects. |
| 226 |
* Added `pecan.state.arguments`, a new feature for inspecting controller call |
| 227 |
arguments. |
| 228 |
* Fixed an infinite recursion error in PecanHook application. Subclassing both |
| 229 |
`rest.RestController` and `hooks.HookController` resulted in an infinite |
| 230 |
recursion error in hook application (which prevented applications from |
| 231 |
starting). |
| 232 |
* Pecan's tests are now included in its source distribution. |
| 233 |
|
| 234 |
0.6.1 |
| 235 |
===== |
| 236 |
* Fixed a bug which causes pecan to mistakenly return HTTP 204 for non-empty |
| 237 |
response bodies. |
| 238 |
|
| 239 |
0.6.0 |
| 240 |
===== |
| 241 |
* Added support for disabling the `pecan.request` and `pecan.response` |
| 242 |
threadlocals at the WSGI application level in favor of explicit reference |
| 243 |
passing. For more information, see :ref:`contextlocals`. |
| 244 |
* Added better support for hook composition via subclassing and mixins. For |
| 245 |
more information, see :ref:`attaching_hooks`. |
| 246 |
* Added support for specifying custom request and response implementations at |
| 247 |
the WSGI application level for people who want to extend the functionality |
| 248 |
provided by the base classes in `webob`. |
| 249 |
* Pecan controllers may now return an explicit `webob.Response` instance to |
| 250 |
short-circuit Pecan's template rendering and serialization. |
| 251 |
* For generic methods that return HTTP 405, pecan now generates an `Allow` |
| 252 |
header to communicate acceptable methods to the client. |
| 253 |
* Fixed a bug in adherence to RFC2616: if an exposed method returns no response |
| 254 |
body (or namespace), pecan will now enforce an HTTP 204 response (instead of |
| 255 |
HTTP 200). |
| 256 |
* Fixed a bug in adherence to RFC2616: when pecan responds with HTTP 204 or |
| 257 |
HTTP 304, the `Content-Type` header is automatically stripped (because these |
| 258 |
types of HTTP responses do not contain body content). |
| 259 |
* Fixed a bug: now when clients request JSON via an `Accept` header, `webob` |
| 260 |
HTTP exceptions are serialized as JSON, not their native HTML representation. |
| 261 |
* Fixed a bug that broke applications which specified `default_renderer |
| 262 |
= json`. |
| 263 |
|
| 264 |
0.5.0 |
| 265 |
===== |
| 266 |
* This release adds formal support for pypy. |
| 267 |
* Added colored request logging to the `pecan serve` command. |
| 268 |
* Added a scaffold for easily generating a basic REST API. |
| 269 |
* Added the ability to pass arbitrary keyword arguments to |
| 270 |
`pecan.testing.load_test_app`. |
| 271 |
* Fixed a recursion-related bug in the error document middleware. |
| 272 |
* Fixed a bug in the `gunicorn_pecan` command that caused `threading.local` |
| 273 |
data to leak between eventlet/gevent green threads. |
| 274 |
* Improved documentation through fixes and narrative tutorials for sample pecan |
| 275 |
applications. |
| 276 |
|
| 277 |
0.4.5 |
| 278 |
===== |
| 279 |
* Fixed a trailing slash bug for `RestController`s that have a `_lookup` method. |
| 280 |
* Cleaned up the WSGI app reference from the threadlocal state on every request |
| 281 |
(to avoid potential memory leaks, especially when testing). |
| 282 |
* Improved pecan documentation and corrected intersphinx references. |
| 283 |
* pecan supports Python 3.4. |
| 284 |
|
| 285 |
0.4.4 |
| 286 |
===== |
| 287 |
* Removed memoization of certain controller attributes, which can lead to |
| 288 |
a memory leak in dynamic controller lookups. |
| 289 |
|
| 290 |
0.4.3 |
| 291 |
===== |
| 292 |
* Fixed several bugs for RestController. |
| 293 |
* Fixed a bug in security handling for generic controllers. |
| 294 |
* Resolved a bug in `_default` handlers used in `RestController`. |
| 295 |
* Persist `pecan.request.context` across internal redirects. |
| 296 |
|
| 297 |
0.4.2 |
| 298 |
===== |
| 299 |
* Remove a routing optimization that breaks the WSME pecan plugin. |
| 300 |
|
| 301 |
0.4.1 |
| 302 |
===== |
| 303 |
* Moved the project to `StackForge infrastructure |
| 304 |
<http://docs.openstack.org/infra/system-config/stackforge.html>`_, including Gerrit code review, |
| 305 |
Jenkins continuous integration, and GitHub mirroring. |
| 306 |
* Added a pecan plugin for the popular `uwsgi server |
| 307 |
<https://uwsgi-docs.readthedocs.io>`_. |
| 308 |
* Replaced the ``simplegeneric`` dependency with the new |
| 309 |
``functools.singledispatch`` function in preparation for Python 3.4 support. |
| 310 |
* Optimized pecan's core dispatch routing for notably faster response times. |
| 311 |
|
| 312 |
0.3.2 |
| 313 |
===== |
| 314 |
* Made some changes to simplify how ``pecan.conf.app`` is passed to new apps. |
| 315 |
* Fixed a routing bug for certain ``_lookup`` controller configurations. |
| 316 |
* Improved documentation for handling file uploads. |
| 317 |
* Deprecated the ``pecan.conf.requestviewer`` configuration option. |
| 318 |
|
| 319 |
0.3.1 |
| 320 |
===== |
| 321 |
* ``on_error`` hooks can now return a Pecan Response objects. |
| 322 |
* Minor documentation and release tooling updates. |
| 323 |
|
| 324 |
0.3.0 |
| 325 |
===== |
| 326 |
* Pecan now supports Python 2.6, 2.7, 3.2, and 3.3. |
| 327 |
|
| 328 |
0.2.4 |
| 329 |
===== |
| 330 |
* Add support for ``_lookup`` methods as a fallback in RestController. |
| 331 |
* A variety of improvements to project documentation. |
| 332 |
|
| 333 |
0.2.3 |
| 334 |
===== |
| 335 |
* Add a variety of optimizations to ``pecan.core`` that improve request |
| 336 |
handling time by approximately 30% for simple object dispatch routing. |
| 337 |
* Store exceptions raised by ``abort`` in the WSGI environ so they can be |
| 338 |
accessed later in the request handling (e.g., by other middleware or pecan |
| 339 |
hooks). |
| 340 |
* Make TransactionHook more robust so that it isn't as susceptible to failure |
| 341 |
when exceptions occur in *other* pecan hooks within a request. |
| 342 |
* Rearrange quickstart verbiage so users don't miss a necessary step. |
| 343 |
|
| 344 |
0.2.2 |
| 345 |
===== |
| 346 |
* Unobfuscate syntax highlighting JavaScript for debian packaging. |
| 347 |
* Extract the scaffold-building tests into tox. |
| 348 |
* Add support for specifying a pecan configuration file via the |
| 349 |
``PECAN_CONFIG`` |
| 350 |
environment variable. |
| 351 |
* Fix a bug in ``DELETE`` methods in two (or more) nested ``RestControllers``. |
| 352 |
* Add documentation for returning specific HTTP status codes. |
| 353 |
|
| 354 |
0.2.1 |
| 355 |
===== |
| 356 |
|
| 357 |
* Include a license, readme, and ``requirements.txt`` in distributions. |
| 358 |
* Improve inspection with ``dir()`` for ``pecan.request`` and ``pecan.response`` |
| 359 |
* Fix a bug which prevented pecan applications from being mounted at WSGI |
| 360 |
virtual paths. |
| 361 |
|
| 362 |
0.2.0 |
| 363 |
===== |
| 364 |
|
| 365 |
* Update base project scaffolding tests to be more repeatable. |
| 366 |
* Add an application-level configuration option to disable content-type guessing by URL |
| 367 |
* Fix the wrong test dependency on Jinja, it's Jinja2. |
| 368 |
* Fix a routing-related bug in ``RestController``. Fixes #156 |
| 369 |
* Add an explicit ``CONTRIBUTING.rst`` document. |
| 370 |
* Improve visibility of deployment-related docs. |
| 371 |
* Add support for a ``gunicorn_pecan`` console script. |
| 372 |
* Remove and annotate a few unused (and py26 alternative) imports. |
| 373 |
* Bug fix: don't strip a dotted extension from the path unless it has a matching mimetype. |
| 374 |
* Add a test to the scaffold project buildout that ensures pep8 passes. |
| 375 |
* Fix misleading output for ``$ pecan --version``. |
| 376 |
|
| 377 |
0.2.0b |
| 378 |
====== |
| 379 |
|
| 380 |
* Fix a bug in ``SecureController``. Resolves #131. |
| 381 |
* Extract debug middleware static file dependencies into physical files. |
| 382 |
* Improve a test that can fail due to a race condition. |
| 383 |
* Improve documentation about configation format and ``app.py``. |
| 384 |
* Add support for content type detection via HTTP Accept headers. |
| 385 |
* Correct source installation instructions in ``README``. |
| 386 |
* Fix an incorrect code example in the Hooks documentation. |
| 387 |
* docs: Fix minor typo in ``*args`` Routing example. |