prepare package
This commit is contained in:
parent
1ff52f74e7
commit
36db56384d
@ -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>
|
||||
26
pyproject.toml
Normal file
26
pyproject.toml
Normal 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
0
requirements-extra.txt
Normal file
@ -1,4 +0,0 @@
|
||||
psycopg[binary,pool]>=3.1,<3.3
|
||||
apscheduler>=3.10,<4.0
|
||||
|
||||
systemd-python>=235; sys_platform != "win32"
|
||||
2
src/victron_energy_price_calculator/__init__.py
Normal file
2
src/victron_energy_price_calculator/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
__all__ = []
|
||||
__version__ = "0.1.0"
|
||||
1
src/victron_energy_price_calculator/requirements.txt
Normal file
1
src/victron_energy_price_calculator/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
psycopg[binary,pool]>=3.1,<3.3
|
||||
Loading…
Reference in New Issue
Block a user