Skip to content

ci: ignore import errors from crypt as stop-gap for check_format - #7228

Open
blackboxsw wants to merge 1 commit into
canonical:mainfrom
blackboxsw:ci-ignore-crypt
Open

blackboxsw wants to merge 1 commit into
canonical:mainfrom
blackboxsw:ci-ignore-crypt

Conversation

@blackboxsw

Copy link
Copy Markdown
Collaborator

Proposed Commit Message

ci: ignore import errors from crypt as stop-gap for check_format

python-3.13+ no longer ships crypt which breaks tox -e mypy and
check_format operations with typing import error.

Upstream cloud-init already handles ImportError fallback to use
passlib in environments when crypt is unavaiable.

Provide a stop-gap for check_format passes in CI while upstream
confirms with distribution and platform vendors that there are
no environments which still provide crypt instead of passlib.

Additional Context

upstream PR to drop crypt import will follow to replace this stop-gap

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

python-3.13+ no longer ships crypt which breaks tox -e mypy and
check_format operations with typing import error.

Upstream cloud-init already handles ImportError fallback to use
passlib in environments when crypt is unavaiable.

Provide a stop-gap for check_format passes in CI while upstream
confirms with distribution and platform vendors that there are
no environments which still provide crypt instead of passlib.
@blackboxsw
blackboxsw requested a review from nryanl November 12, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant