Rename the import package app to fluksio
A wheel whose top-level module is `app` collides with anything else in a user's venv, so the package that is about to be published takes the name it is published under. Only the Python package moves; the repo, the Docker WORKDIR and the compose project keep theirs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,7 @@ from typing import Any
|
||||
|
||||
sys.path.insert(0, str(__import__("pathlib").Path(__file__).resolve().parents[1]))
|
||||
|
||||
from app.core.config import settings # noqa: E402
|
||||
from fluksio.core.config import settings # noqa: E402
|
||||
|
||||
log = logging.getLogger("bench")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
ruff check app scripts --fix
|
||||
ruff format app scripts
|
||||
ruff check fluksio scripts --fix
|
||||
ruff format fluksio scripts
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
mypy app
|
||||
ruff check app
|
||||
ruff format app --check
|
||||
mypy fluksio
|
||||
ruff check fluksio
|
||||
ruff format fluksio --check
|
||||
|
||||
@@ -4,10 +4,10 @@ set -e
|
||||
set -x
|
||||
|
||||
# Let the DB start
|
||||
python app/backend_pre_start.py
|
||||
python -m fluksio.backend_pre_start
|
||||
|
||||
# Run migrations
|
||||
alembic upgrade head
|
||||
|
||||
# Create initial data in DB
|
||||
python app/initial_data.py
|
||||
python -m fluksio.initial_data
|
||||
|
||||
@@ -10,8 +10,8 @@ script the previous one:
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from app.core.config import settings
|
||||
from app.flow.secrets import SecretsStore, SecretsUnreadable
|
||||
from fluksio.core.config import settings
|
||||
from fluksio.flow.secrets import SecretsStore, SecretsUnreadable
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -35,8 +35,8 @@ from typing import Any
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core.config import settings
|
||||
from app.flow.metrics import FLUSH_INTERVAL_S
|
||||
from fluksio.core.config import settings
|
||||
from fluksio.flow.metrics import FLUSH_INTERVAL_S
|
||||
|
||||
log = logging.getLogger("soak")
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
python app/tests_pre_start.py
|
||||
python -m fluksio.tests_pre_start
|
||||
|
||||
bash scripts/test.sh "$@"
|
||||
|
||||
Reference in New Issue
Block a user