Deprecated

Latest version: v1.2.18

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

Scan your dependencies

Page 2 of 5

1.2.12

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

Bug fix release

Fix
---

- Avoid "Explicit markup ends without a blank line" when the decorated function has no docstring.

- Fix 40: 'version' argument is required in Sphinx directives.

- Fix 41: :mod:`deprecated.sphinx`: strip Sphinx cross-referencing syntax from warning message.


Other
-----

- Change in Tox and Travis CI configurations: enable unit testing on Python 3.10.

1.2.11

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

Bug fix release

Fix
---

- Fix packit configuration: use ``upstream_tag_template: v{version}``.

- Fix 33: Change the class :class:`~deprecated.sphinx.SphinxAdapter`:
add the ``line_length`` keyword argument to the constructor to specify the max line length of the directive text.
Sphinx decorators also accept the ``line_length`` argument.

- Fix 34: ``versionadded`` and ``versionchanged`` decorators don't emit ``DeprecationWarning``
anymore on decorated classes.


Other
-----

- Change the Tox configuration to run tests on Python 2.7, Python 3.4 and above (and PyPy 2.7 & 3.6).

- Update the classifiers in ``setup.py``.

- Replace ``bumpversion`` by `bump2version <https://pypi.org/project/bump2version/>`_ in ``setup.py`` and documentation.

- Update configuration for Black and iSort.

- Fix the development requirement versions in ``setup.py`` for Python 2.7 EOL.

1.2.10

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

Bug fix release

Fix
---

- Fix 25: ``deprecated`` respects global warning filters with actions other than "ignore" and "always" on Python 3.

Other
-----

- Change the configuration for TravisCI to build on pypy and pypy3.

- Change the configuration for TravisCI and AppVeyor: drop configuration for Python **3.4** and add **3.8**.

1.2.9

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

Bug fix release

Fix
---

- Fix 20: Set the :func:`warnings.warn` stacklevel to 2 if the Python implementation is `PyPy <https://pypy.org/>`_.

- Fix packit configuration: use ``dist-git-branch: fedora-all``.

Other
-----

- Change the Tox configuration to run tests on PyPy v2.7 and 3.6.

1.2.8

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

Bug fix release

Fix
---

- Fix 15: The ``deprecated`` decorator doesn't set a warning filter if the *action* keyword argument is
not provided or ``None``. In consequences, the warning messages are only emitted if the global filter allow it.
For more information, see `The Warning Filter <https://docs.python.org/3/library/warnings.html#the-warnings-filter>`_
in the Python documentation.

- Fix 13: Warning displays the correct filename and line number when decorating a class if wrapt
does not have the compiled c extension.

Documentation
-------------

- The :ref:`api` documentation and the :ref:`tutorial` is improved to explain how to use
custom warning categories and local filtering (warning filtering at function call).

- Fix 17: Customize the sidebar to add links to the documentation to the source in GitHub and to the Bug tracker.
Add a logo in the sidebar and change the logo in the main page to see the library version.

- Add a detailed documentation about :ref:`sphinx_deco`.


Other
-----

- Change the Tox configuration to test the library with Wrapt 1.12.x.

1.2.7

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

Bug fix release

Fix
---

- Fix 13: Warning displays the correct filename and line number when decorating a function if wrapt
does not have the compiled c extension.

Other
-----

- Support packit for Pull Request tests and sync to Fedora (thanks to Petr Hráček).
Supported since v1.2.6.

- Add `Black <https://black.readthedocs.io/en/latest/>`_ configuration file.

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.