prepare package

This commit is contained in:
Bartosz Wieczorek 2025-09-09 15:20:16 +02:00
parent 1ff52f74e7
commit 36db56384d
31 changed files with 32 additions and 4 deletions

View File

@ -3,4 +3,7 @@
<component name="Black">
<option name="sdkName" value="Python 3.13 (victron-energy-prices-calculator) (2)" />
</component>
<component name="PythonCompatibilityInspectionAdvertiser">
<option name="version" value="3" />
</component>
</project>

0
LICENCE Normal file
View File

0
README.md Normal file
View File

26
pyproject.toml Normal file
View File

@ -0,0 +1,26 @@
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[project]
name = "yourpkg" # nazwa na PyPI/pip
version = "0.1.0" # albo użyj dynamicznego (patrz niżej)
description = "Victron/PG price tools"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Bartosz", email = "bartosz@example.com" }]
dependencies = [
"psycopg[binary,pool]>=3.2",
]
#[project.scripts]
#victron-fill = "yourpkg.cli:main" # `victron-fill ...`
# (opcjonalnie) „extras”: pip install yourpkg[pg,dev]
[project.optional-dependencies]
pg = ["psycopg[binary]>=3.2"]
dev = ["black", "ruff", "pytest"]
[tool.hatch.build.targets.wheel]
packages = ["src/victron_energy_price_calculator"]

0
requirements-extra.txt Normal file
View File

View File

@ -1,4 +0,0 @@
psycopg[binary,pool]>=3.1,<3.3
apscheduler>=3.10,<4.0
systemd-python>=235; sys_platform != "win32"

View File

@ -0,0 +1,2 @@
__all__ = []
__version__ = "0.1.0"

View File

@ -0,0 +1 @@
psycopg[binary,pool]>=3.1,<3.3