Skip to content

Commit

Permalink
py-sphinx-autodoc-typehints: update to 1.10.3.
Browse files Browse the repository at this point in the history
1.10.3
======

* Fixed ``TypeError`` (or wrong rendered class name) when an annotation is a generic class that has
  a ``name`` property


1.10.2
======

* Fixed inner classes missing their parent class name(s) when rendered


1.10.1
======

* Fixed ``KeyError`` when encountering mocked annotations (``autodoc_mock_imports``)


1.10.0
======

* Rewrote the annotation formatting logic (fixes Python 3.5.2 compatibility regressions and an
  ``AttributeError`` regression introduced in v1.9.0)
* Fixed decorator classes not being processed as classes


1.9.0
=====

* Added support for typing_extensions_
* Added the ``typehints_document_rtype`` option (PR by Simon-Martin Schröder)
* Fixed metaclasses as annotations causing ``TypeError``
* Fixed rendering of ``typing.Literal``
* Fixed OSError when generating docs for SQLAlchemy mapped classes
* Fixed unparametrized generic classes being rendered with their type parameters
  (e.g. ``Dict[~KT, ~VT]``)

.. _typing_extensions: https://pypi.org/project/typing-extensions/


1.8.0
=====

* Fixed regression which caused ``TypeError`` or ``OSError`` when trying to set annotations due to
  PR #87
* Fixed unintentional mangling of annotation type names
* Added proper ``:py:data`` targets for ``NoReturn``, ``ClassVar`` and ``Tuple``
* Added support for inline type comments (like ``(int, str) -> None``) (PR by Bernát Gábor)
* Use the native AST parser for type comment support on Python 3.8+


1.7.0
=====

* Dropped support for Python 3.4
* Fixed unwrapped local functions causing errors (PR by Kimiyuki Onaka)
* Fixed ``AttributeError`` when documenting the ``__init__()`` method of a data class
* Added support for type hint comments (PR by Markus Unterwaditzer)
* Added flag for rendering classes with their fully qualified names (PR by Holly Becker)


1.6.0
=====

* Fixed ``TypeError`` when formatting annotations from a class that inherits from a concrete
  generic type (report and tests by bpeake-illuscio)
* Added support for ``typing_extensions.Protocol`` (PR by Ian Good)
* Added support for ``typing.NewType`` (PR by George Leslie-Waksman)


1.5.2
=====

* Emit a warning instead of crashing when an unresolvable forward reference is encountered in type
  annotations


1.5.1
=====

* Fixed escape characters in parameter default values getting lost during signature processing
* Replaced use of the ``config-inited`` event (which inadvertently required Sphinx 1.8) with the
  ``builder-inited`` event


1.5.0
=====

* The setting of the ``typing.TYPECHECKING`` flag is now configurable using the
  ``set_type_checking_flag`` option


1.4.0
=====

* The extension now sets ``typing.TYPECHECKING`` to ``True`` during setup to include conditional
  imports which may be used in type annotations
* Fixed parameters with trailing underscores (PR by Daniel Knell)
* Fixed KeyError with private methods (PR by Benito Palacios Sánchez)
* Fixed deprecation warning about the use of formatargspec (PR by Y. Somda)
* The minimum Sphinx version is now v1.7.0


1.3.1
=====

* Fixed rendering of generic types outside the typing module (thanks to Tim Poterba for the PR)
  • Loading branch information
wiz committed Apr 6, 2020
1 parent 693adb1 commit 06463c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
11 changes: 9 additions & 2 deletions textproc/py-sphinx-autodoc-typehints/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.3 2019/05/02 09:27:09 adam Exp $
# $NetBSD: Makefile,v 1.4 2020/04/06 08:06:30 wiz Exp $

DISTNAME= sphinx-autodoc-typehints-1.3.0
DISTNAME= sphinx-autodoc-typehints-1.10.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/sphinx-autodoc-typehints/}
Expand All @@ -12,11 +12,18 @@ LICENSE= mit

BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.4:../../textproc/py-sphinx
DEPENDS+= ${PYPKGPREFIX}-sphobjinv-[0-9]*:../../textproc/py-sphobjinv
DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.1.0:../../devel/py-test

USE_LANGUAGES= # none

PYTHON_VERSIONS_INCOMPATIBLE= 27

TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib

do-test:
cd ${WRKSRC} && ${MAKE_ENV} ${TEST_ENV} py.test-${PYVERSSUFFIX}

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
11 changes: 5 additions & 6 deletions textproc/py-sphinx-autodoc-typehints/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$NetBSD: distinfo,v 1.1 2018/05/27 01:59:35 minskim Exp $
$NetBSD: distinfo,v 1.2 2020/04/06 08:06:30 wiz Exp $

SHA1 (sphinx-autodoc-typehints-1.3.0.tar.gz) = f748fe87594438ffd9475ed2ab4c787e66d6c955
RMD160 (sphinx-autodoc-typehints-1.3.0.tar.gz) = 099eb1d9801982b3c297383f4a9c68a1b26b8c60
SHA512 (sphinx-autodoc-typehints-1.3.0.tar.gz) = 04b7398f5b969c2802022799609c55cfd3201e4cd60f85fa5ef5670e67fc6154904872410776b37258f58517a629885d15f08aa1ba5281dad2ad2480cd89cc5b
Size (sphinx-autodoc-typehints-1.3.0.tar.gz) = 10043 bytes
SHA1 (patch-setup.cfg) = 1ccc450914d50544268b87b485df63a54feebbfb
SHA1 (sphinx-autodoc-typehints-1.10.3.tar.gz) = 2b4de74f22ce3ad223fbbb78b1592595fe9fbe20
RMD160 (sphinx-autodoc-typehints-1.10.3.tar.gz) = c3fd63f02a1017ff6882931c764192ec2653241f
SHA512 (sphinx-autodoc-typehints-1.10.3.tar.gz) = 170fd6cea10d730eefeef4e2e4de985119dbcde06d43181bb522ec31923ddc49dd7757ca623c820e2e5008198ef9b522d70e08c0c6ff5349921f1777b797bddb
Size (sphinx-autodoc-typehints-1.10.3.tar.gz) = 16396 bytes
15 changes: 0 additions & 15 deletions textproc/py-sphinx-autodoc-typehints/patches/patch-setup.cfg

This file was deleted.

0 comments on commit 06463c2

Please sign in to comment.