d5f3c0f7ac
The checkout is now astrape/astrape-ems, not astrape/astrape-ems/<package>. The package contents move to the repository root and pyproject maps the package name to '.' via package-dir, with the subpackages listed explicitly. The systemd units move out to /srv/astrape/deploy/systemd, outside every repository, because they describe this deployment rather than any one component. Verified both install modes: editable, which is how the deployment runs, and a plain wheel install, which is what the container build does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 lines
738 B
TOML
18 lines
738 B
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "astrape-ems"
|
|
version = "0.1.0"
|
|
description = "Energy backend connection: Sigenergy Modbus client and plant store"
|
|
requires-python = ">=3.12"
|
|
dependencies = ["gibil", "psycopg[binary]>=3.2,<4", "pymodbus>=3.8,<4"]
|
|
|
|
# Flat layout: this repository *is* the package. package-dir maps astrape_ems to the
|
|
# repository root rather than to a nested astrape_ems/ directory, so the checkout is
|
|
# astrape/astrape-ems and not astrape/astrape-ems/astrape_ems.
|
|
[tool.setuptools]
|
|
packages = ["astrape_ems", "astrape_ems.classes", "astrape_ems.scripts", "astrape_ems.scripts.daemons", "astrape_ems.scripts.debug"]
|
|
package-dir = {"astrape_ems" = "."}
|