Add packaging metadata so python -m build works

#110 recorded pyproject.toml + __init__.py as verified on a real toolchain
but they were never committed; origin has nothing past d5203ce.

pyproject.toml is deliberately plain: the sidecar's pypi.ReadProjectMetadata
is a line scanner, not a TOML parser, and reads name and version as literal
single-line assignments under [project]. A dynamic version would break both
the publish check and the startup reconcile.

__init__.py re-exports the public API so src/i7lib is an importable package.
.gitignore keeps dist/ out of the tree — a committed wheel would travel in
gitea's source archive and trip the builder's one-wheel-in-dist check.
This commit is contained in:
Iñigo Etxaniz
2026-08-04 09:27:03 +02:00
parent d5203ce60a
commit bb73c9901c
3 changed files with 27 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
dist/
build/
*.egg-info/
__pycache__/
*.pyc
+17
View File
@@ -0,0 +1,17 @@
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "i7lib"
version = "0.1.0"
description = "i7 library for scripts"
readme = "README.md"
requires-python = ">=3.8"
dependencies = ["requests>=2.31"]
[project.optional-dependencies]
dotenv = ["python-dotenv>=1.0"]
[tool.setuptools.packages.find]
where = ["src"]
+5
View File
@@ -0,0 +1,5 @@
from . import timeutils
from .client import Plant, WriteBatch, run
from .dbutils import Database
__all__ = ["Database", "Plant", "WriteBatch", "run", "timeutils"]