Skip to content

Commit

Permalink
fix: include migration files (#2887)
Browse files Browse the repository at this point in the history
* fix: include migrations in image

* fix

* add it to artifacts

* fix linting
  • Loading branch information
mikeldking committed Apr 12, 2024
1 parent 50517f7 commit b0a772e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/phoenix"]
exclude = ["src/phoenix/evals/"]
artifacts = ["src/phoenix/server/static"]
artifacts = ["src/phoenix/server/static", "src/phoenix/db/migrations"]

[tool.hatch.build]
only-packages = true

[tool.hatch.build.targets.sdist]
exclude = ["src/phoenix/evals/", "packages/"]
artifacts = ["src/phoenix/server/static"]
artifacts = ["src/phoenix/server/static", "src/phoenix/db/migrations"]

[tool.hatch.envs.default]
dependencies = [
Expand Down
Empty file.
5 changes: 3 additions & 2 deletions src/phoenix/db/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
from logging.config import fileConfig

from alembic import context
from sqlalchemy import Connection, engine_from_config, pool
from sqlalchemy.ext.asyncio import AsyncEngine

from phoenix.config import get_env_database_connection_str
from phoenix.db.engines import get_async_db_url
from phoenix.db.models import Base
from phoenix.settings import Settings
from sqlalchemy import Connection, engine_from_config, pool
from sqlalchemy.ext.asyncio import AsyncEngine

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
Expand Down

0 comments on commit b0a772e

Please sign in to comment.