Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adamboche committed Feb 2, 2020
1 parent deb0fde commit 53d2ce9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
31 changes: 0 additions & 31 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,40 +60,9 @@ Union fields for marshmallow.

* Free software: MIT license

Installation
============

::

pip install marshmallow-union

Documentation
=============


https://python-marshmallow-union.readthedocs.io/


Development
===========

To run the all tests run::

tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
:widths: 10 90
:stub-columns: 1

- - Windows
- ::

set PYTEST_ADDOPTS=--cov-append
tox

- - Other
- ::

PYTEST_ADDOPTS=--cov-append tox
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@
napoleon_use_param = True

autoapi_dirs = ["../src/marshmallow_union"]


rst_prolog = """
.. warning::
Figuring out the correct field type from an untagged dump is a matter of guesswork and
can be error-prone. A more explicit approach like
https://github.com/Bachmann1234/marshmallow-polyfield/ is better. This project remains
here to avoid breaking existing software.
"""
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Usage
=====


To use marshmallow-union in a project import ``marshmallow_union.Union`` and pass it a
list of ``marshmallow.fields.Field`` instances.

Expand Down

0 comments on commit 53d2ce9

Please sign in to comment.