Python - Packaging Alembic Migrations with Setuptools
问题 What is the right way to package Alembic migration files in a Setuptools setup.py file? Everything is in my repo root as alembic/ . This is a Python application, not a library. My desired installation flow is that someone can pip install the wheel that is my application. They would then be able to initialize the application database by running something like <app> alembic upgrade --sqlalchemy.url=<db_url> . Upgrades would then require a pip install -U , after which they can run the Alembic