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:
+10
-7
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "app"
|
||||
name = "fluksio"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
description = "Node-based automation engine: flows, dashboards, batch runs"
|
||||
# Capped below 3.14: the MCP SDK wants a newer starlette there than the
|
||||
# pinned sentry-sdk allows. Lift it when sentry-sdk moves to 2.x.
|
||||
requires-python = ">=3.10,<3.14"
|
||||
@@ -39,6 +39,9 @@ dev = [
|
||||
"coverage<8.0.0,>=7.4.3",
|
||||
]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["fluksio"]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
@@ -47,7 +50,7 @@ build-backend = "hatchling.build"
|
||||
strict = true
|
||||
exclude = ["venv", ".venv", "alembic"]
|
||||
# influxdb_client's Point builder carries no annotations; calling it is not a
|
||||
# reason to stop checking the caller (app/flow/nodes/influx.py).
|
||||
# reason to stop checking the caller (fluksio/flow/nodes/influx.py).
|
||||
untyped_calls_exclude = ["influxdb_client"]
|
||||
|
||||
# Every module is checked strictly. influxdb_client is typed but re-exports its
|
||||
@@ -84,24 +87,24 @@ ignore = [
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
# Node functions take `params` whether or not they use it — that is the
|
||||
# contract the engine calls them with.
|
||||
"app/flow/nodes.py" = ["ARG001", "ARG002"]
|
||||
"fluksio/flow/nodes.py" = ["ARG001", "ARG002"]
|
||||
"tests/flow/*" = ["ARG001"]
|
||||
# Printing is what this one is about: node code is user code, and `print` is
|
||||
# how it says things.
|
||||
"tests/flow/test_logs.py" = ["ARG001", "T201"]
|
||||
# This one takes its own directory off sys.path before the rest of its imports
|
||||
# run, which is the whole point of doing it there.
|
||||
"app/flow/worker_main.py" = ["E402"]
|
||||
"fluksio/flow/worker_main.py" = ["E402"]
|
||||
# A standalone script copied onto another machine: it has no logger configured
|
||||
# before it tells you the one dependency it is missing.
|
||||
"app/worker/fluksio_worker.py" = ["T201"]
|
||||
"fluksio/worker/fluksio_worker.py" = ["T201"]
|
||||
|
||||
[tool.ruff.lint.pyupgrade]
|
||||
# Preserve types, even if a file imports `from __future__ import annotations`.
|
||||
keep-runtime-typing = true
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["app"]
|
||||
source = ["fluksio"]
|
||||
dynamic_context = "test_function"
|
||||
|
||||
[tool.coverage.report]
|
||||
|
||||
Reference in New Issue
Block a user