Matt McClure <
ma...@cens.io> wrote:
> After reading the tutorial, and searching a little in the documentation and group archives, I'm unclear on the best location and name of the Alembic scripts directory.
>
> The tutorial advises:
>
> yourproject/
> alembic/
>
> And indicates:
>
> yourproject - this is the root of your application’s source code, or some directory within it.
>
> If my project directory structure looks like:
>
> my-project/
> mypackage/
> __init__.py
>
> Then, is it better to make the scripts directory a child or a sibling of my package?
I tend to go with sibling, it’s not really a “package”.
>
> Is the intent that the scripts directory be an importable module?
it’s not. some people try to treat it that way, putting the migration files at least deep within their package tree, and that is fine also, but Alembic itself doesn’t need it to behave that way.
>
> Would it be best to name it something other than "alembic" to avoid import conflicts with Alembic itself?
you can name it whatever, but it’s not a package so doesn’t have any kind of module name conflicts.
> --
> You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sqlalchemy-alem...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.