Skip to content

fix: include schema.sql in package data - #57

Open
johnathanneals-dev wants to merge 1 commit into
benclawbot:masterfrom
johnathanneals-dev:fix/include-schema-in-package
Open

fix: include schema.sql in package data#57
johnathanneals-dev wants to merge 1 commit into
benclawbot:masterfrom
johnathanneals-dev:fix/include-schema-in-package

Conversation

@johnathanneals-dev

Copy link
Copy Markdown

Closes #54.

The base schema file src/db/schema.sql was excluded from pip/pipx installs because the pyproject.toml package-data glob only matched migrations/*.sql. Without it, non-Docker installs cannot bootstrap the database — the migration chain starts at 002 and assumes schema.sql was already applied.

Adds schema.sql to the src.db package-data glob so it ships with the wheel alongside the migrations.

Change: one line in pyproject.toml"src.db" = ["migrations/*.sql"]"src.db" = ["schema.sql", "migrations/*.sql"].

The base schema file src/db/schema.sql was excluded from pip/pipx
installs because the package-data glob only matched migrations/*.sql.
Without it, non-Docker installs cannot bootstrap the database — the
migration chain starts at 002 and assumes schema.sql was already applied.

Add schema.sql to the src.db package-data glob so it ships with
the wheel alongside the migrations.
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.

src/db/schema.sql is not included in the built package — pipx installs cannot bootstrap the base schema

1 participant