Skip to content

Send informational dependency messages to stderr (#451) - #490

Merged
sheinbergon merged 1 commit into
agronholm:masterfrom
Rajan-vish:fix-cli-print-stderr-451
Nov 19, 2026
Merged

sheinbergon merged 1 commit into
agronholm:masterfrom
Rajan-vish:fix-cli-print-stderr-451

Conversation

@Rajan-vish

Copy link
Copy Markdown
Contributor

Changes

Fixes #451.

When optional packages like sqlalchemy-citext, geoalchemy2, or pgvector are installed, informational messages are printed. Printing them to sys.stderr instead of stdout prevents corrupting generated model code when standard output is piped or redirected to a file.

Checklist

  • You've added tests (in tests/) which would fail without your patch
  • You've added a new changelog entry (in CHANGES.rst).

@sheinbergon

Copy link
Copy Markdown
Collaborator

@Rajan-vish thank you for the contribution. Tests are failing due to sqla 2.1 compat issue I believe. I'll try and #489 merged soon and then we can rebase your work and merge as well

@Rajan-vish

Copy link
Copy Markdown
Contributor Author

Thanks @sheinbergon! Sounds good, happy to rebase whenever #489 lands.

@sheinbergon
sheinbergon force-pushed the fix-cli-print-stderr-451 branch from c0b9756 to bc06d1f Compare November 19, 2026 06:15
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 97.857% (+0.004%) from 97.853% — Rajan-vish:fix-cli-print-stderr-451 into agronholm:master

@sheinbergon
sheinbergon merged commit 10c6361 into agronholm:master Nov 19, 2026
8 checks passed
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.

Use logging instead of print for informational statements

3 participants