Closed mgorny closed 2 years ago
This makes me ask a question to @zzzeek and @bourke -
lingua
and babel
are in the tox.ini for testing - https://github.com/sqlalchemy/mako/blob/main/tox.ini#L4-L14
however, they're not part of the setup.cfg for test -- https://github.com/sqlalchemy/mako/blob/main/setup.cfg#L44-L50
looking at how the babel plugin and test are structured, it is subject to the same error as this test.
IMHO, i think we could either (i) expand this "fix" to also cover babel (IIRC, dogpile uses the same technique with extension testing so it's not foreign to this project), (ii) expand the setup.cfg to install babel and lingua as part of the testing installation requirements, or (iii) both.
This makes me ask a question to @zzzeek and @bourke -
lingua
andbabel
are in the tox.ini for testing - https://github.com/sqlalchemy/mako/blob/main/tox.ini#L4-L14however, they're not part of the setup.cfg for test -- https://github.com/sqlalchemy/mako/blob/main/setup.cfg#L44-L50
looking at how the babel plugin and test are structured, it is subject to the same error as this test.
IMHO, i think we could either (i) expand this "fix" to also cover babel (IIRC, dogpile uses the same technique with extension testing so it's not foreign to this project), (ii) expand the setup.cfg to install babel and lingua as part of the testing installation requirements, or (iii) both.
When I refactored the test suite, I ran into the disconnect between tox.ini and setup.cfg. At the time I set it aside by telling myself the presence of tox.ini indicates that tests should run through tox. [It goes without saying here that we could do more to make policies around contribution and testing clearer, both in docs and here in the repo.] But I take your point about (iii) and agree it's the correct approach.
@mgorny, would you be willing to add support for the babel plugin to this PR? If you have other priorities I'll be happy to take it myself.
I'm kinda busy right now, so I'd prefer if you took it. TIA!
I'm kinda busy right now, so I'd prefer if you took it. TIA!
No worries. Thanks for the PR!
Ping.
had to rebase will merge when the gerrit finishes tests
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/3723 has been merged. Congratulations! :)
ok we are good thanks
by which i mean, THANKS!!! :cake: :cake: :cake:
Defer the import of LinguaMakoExtractor in order to fix the following test error when lingua is not available: