Fix a regression in extension packaging.

Review Request #13213 — Created Aug. 14, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

When typing was introduced for djblets.extensions.packaging, an import
was added that triggered Django model/app machinery. This ended up
breaking, since we weren't setting up a Django environment at this
stage.

This import was only needed for typing, so it's been moved into a
TYPE_CHECKING block.

Successfully installed extension packages.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Fix a regression in extension packaging.
When typing was introduced for `djblets.extensions.packaging`, an import was added that triggered Django model/app machinery. This ended up breaking, since we weren't setting up a Django environment at this stage. This import was only needed for typing, so it's been moved into a `TYPE_CHECKING` block.
bf3eaadab2dd358430d8730a96f6b28a671c3e4a Christian Hammond
djblets/extensions/packaging.py
Loading...