-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alembic's runtime doesn't need Mako #126
Comments
Michael Bayer (@zzzeek) wrote: Mako shouldn't fail on python 3.2. Why not post a bug report for Mako ? I'm not sure what's supposed to happen here if someone types "alembic init" and it fails because Alembic didn't install it's dependencies. Wouldn't I get a bug report for that too? |
g2p (@g2p) wrote:
It's not really a Mako bug, but |
g2p (@g2p) wrote: Delaying the Mako import by moving template_to_file from util.py to script.py would be enough to move it out of the operations/migrations imports, if you're okay with that, and have less impact than changing Alembic's dependencies. |
Michael Bayer (@zzzeek) wrote: Well you can't get markupsafe installed in Python 3.2 anymore, and Mako has always been OK at the import level, I'm not sure how you got |
g2p (@g2p) wrote: Somehow I've installed it (with pip and Mako 0.8), even though it's not importable and doesn't install for everyone. Re imports, here's the relevant bit from the backtrace.
|
Michael Bayer (@zzzeek) wrote: OK well that's markupsafe, blow it away from your 3.2 install and it'll be resolved. if somehow people are still managing to install markupsafe in their 3.2 folders they have to get on armin's case about that. |
Michael Bayer (@zzzeek) wrote: mako 0.8.1 wont install markupsafe; users shouldn't have markupsafe in their 3.2 folders and if they do, its a markupsafe bug |
Changes by Michael Bayer (@zzzeek):
|
g2p (@g2p) wrote: Works for me. Moving template_to_file was just a defensive idea, I can let the CI catch any actual breakage. |
Migrated issue, originally created by g2p (@g2p)
I'm using Alembic for its runtime (alembic.migration and alembic.operations), which works well without the script generation portion.
Recent versions of MarkupSafe (0.16 released 3 days ago) break Python 3.2 support, which I'd rather keep for the sake of Debian users, and I would appreciate it if it was possible to have a PyPI name that provides Alembic's runtime without the Mako dependency. Moving Mako to an extras_require=dict(generation=['Mako']) in Alembic's setup.py would be ideal.
The text was updated successfully, but these errors were encountered: