diff --git a/docs/source/changes.rst b/docs/source/changes.rst index dc3d9d10..66a27243 100644 --- a/docs/source/changes.rst +++ b/docs/source/changes.rst @@ -17,6 +17,7 @@ all releases are available on `PyPI `_ and - :pull:`219` removes some leftovers from pytest in :class:`~_pytask.mark.Mark`. - :pull:`221` adds more test cases for parametrizations. - :pull:`222` adds an automated Github Actions job for creating a list pytask plugins. +- :pull:`225` fixes a circular import noticeable in plugins created by :pull:`197`. 0.1.8 - 2022-02-07 diff --git a/src/pytask/__init__.py b/src/pytask/__init__.py index c71ead8a..4b94b3f5 100644 --- a/src/pytask/__init__.py +++ b/src/pytask/__init__.py @@ -3,7 +3,6 @@ from _pytask import __version__ from _pytask.build import main -from _pytask.cli import cli from _pytask.compat import check_for_optional_program from _pytask.compat import import_optional_dependency from _pytask.config import hookimpl @@ -32,6 +31,9 @@ from _pytask.outcomes import TaskOutcome from _pytask.session import Session +# This import must come last, otherwise a circular import occurs. +from _pytask.cli import cli # noreorder + __all__ = [ "__version__",