Morepath

Latest version: v0.19

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.20

=================

- Fix Flake8.

- Apply Black code formatter.

- Drop support for EOL Python 3.4 and 3.5.

- Upgrade Python syntax with pyupgrade --py36-plus.

- Remove unused imports.

- Also a nit: drop the dot in py.test.

- Use GitHub Actions for CI.

0.19

=================

* **Removed**: Removed support for Python 2.

You have to upgrade to Python 3 if you want to use this version.

* Added support for Python 3.8 and PyPy 3.6.

* Make Python 3.7 the default.

* Update to new signature of reg.arginfo, which returns now a FullArgSpec
tuple instead of an ArgSpec tuple.

* Add integration for the Black code formatter.

0.18.2

===================

* Fixes an infinite recursion error during morepath.autoscan.

The error that occurred when morepath.autoscan was run in an environment where
two packages depended on each other, as well as depending on morepath
through an intermediary.

See `536`_

.. _536: https://github.com/morepath/morepath/issues/536

* Added support for Python 3.6 and 3.7 and dropped support for Python 3.3

0.18.1

===================

* Link generation was unstable when supplied with multiple URL parameters.
Sort URL parameters so that link generation is stable. This is convenient
in tests.

This could potentially break tests which weren't stable in the past. Fixing
the tests to use the alphabetical sort order should fix the issue.

* The poisoned host header protection is no longer case-sensitive.

* Underscores are now allowed in host headers. Though they are not valid in
domain names, they are valid in host names and offer no attack surface.

0.18

=================

* **New**: The `load`` API, which allows you to define how incoming JSON
(through a POST, PUT or PATH request) will be converted to a Python object and
how it will be validated. This feature lets you plug in external
serialization and validation libraries, such as Marshmallow, Colander,
Cerberus, Jsonschema or Voluptuous.

* **Removed**: ``morepath.body_model_predicate`` is removed from the
Morepath API together with the ``morepath.App.load_json`` directive
and the ``morepath.request.body_obj`` property.
If you use the ``load_json`` directive, this functionality has been moved
to a separate `more.body_model`_ package. Use this package instead by
subclassing your App from `more.body_model.BodyModelApp`.

.. _more.body_model: https://github.com/morepath/more.body_model

* Uploading huge files lead to excessive memory consumption as the whole body
was consumed for no good reason. This is now fixed.

See `504`_

.. _504: https://github.com/morepath/morepath/issues/504

* Fixes link prefix not applying to mounted applications.

See `516`_

.. _516: https://github.com/morepath/morepath/issues/516

0.17

=================

* **Removed**: The class ``morepath.ViewRegistry`` is gone.

* Upload universal wheels to pypi during release.

* Refactored and simplified implementation of ``ConverterRegistry``.

* Bugfix: exception views in mounted apps weren't looked up correctly
anymore.

* Adds compatibility with WebOb 1.7.

* Removed extra spaces after the colon in json.
For example: {"foo": "bar"} is now {"foo":"bar"}.

* Morepath now keeps track of what code was used to resolve a path and
a view. You use `more.whytool`_ to get a command line tool that
provides insight in what code was used for a request.

.. _`more.whytool`: https://pypi.python.org/pypi/morepath

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.