mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-02-24 09:56:20 +00:00
fix: Adapt versioning scheme to Home Assistant and switch to uv (#896)
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
Home Assistant expects versioning always increases numbers. Add a date component to the development version to comply with this expectation. The scheme is now 0.0.0.dev<date><hash>. Use uv for creating and managing the virtual environment for developement. This enourmously speeds up dependency updates. For this change dependency requirements are now solely handled in pyproject.toml. requirements.tx and requirements-dev.txt are deleted. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -13,18 +13,87 @@ classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = [
|
||||
"babel==2.18.0",
|
||||
"beautifulsoup4==4.14.3",
|
||||
"cachebox==5.2.2",
|
||||
"numpy==2.4.2",
|
||||
"numpydantic==1.7.0",
|
||||
"matplotlib==3.10.8",
|
||||
"contourpy==1.3.3",
|
||||
"fastapi[standard-no-fastapi-cloud-cli]==0.128.0",
|
||||
"fastapi_cli==0.0.21",
|
||||
"rich-toolkit==0.19.4",
|
||||
"python-fasthtml==0.12.47",
|
||||
"MonsterUI==1.0.43",
|
||||
"markdown-it-py==4.0.0",
|
||||
"mdit-py-plugins==0.5.0",
|
||||
"bokeh==3.8.2",
|
||||
"uvicorn==0.40.0",
|
||||
"scipy==1.17.0",
|
||||
"tzfpy==1.1.1",
|
||||
"deap==1.4.3",
|
||||
"requests==2.32.5",
|
||||
"pandas==3.0.0",
|
||||
"pendulum==3.2.0",
|
||||
"platformdirs==4.9.2",
|
||||
"psutil==7.2.2",
|
||||
"pvlib==0.15.0",
|
||||
"pydantic==2.12.5",
|
||||
"pydantic_extra_types==2.11.0",
|
||||
"statsmodels==0.14.6",
|
||||
"pydantic-settings==2.13.1",
|
||||
"linkify-it-py==2.0.3",
|
||||
"loguru==0.7.3",
|
||||
"lmdb==1.7.5",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
# Pre-commit framework - basic package requirements handled by pre-commit itself
|
||||
# - pre-commit-hooks
|
||||
# - isort
|
||||
# - ruff
|
||||
# - mypy (mirrors-mypy) - sync with requirements-dev.txt (if on pypi)
|
||||
# - pymarkdown
|
||||
# - commitizen - sync with requirements-dev.txt (if on pypi)
|
||||
#
|
||||
# !!! Sync .pre-commit-config.yaml with these dependencies !!!
|
||||
"pre-commit==4.5.1",
|
||||
"mypy==1.19.1",
|
||||
"types-requests==2.32.4.20260107", # for mypy
|
||||
"pandas-stubs==3.0.0.260204", # for mypy
|
||||
"tokenize-rt==6.2.0", # for mypy
|
||||
"types-docutils==0.22.3.20251115", # for mypy
|
||||
"types-PyYaml==6.0.12.20250915", # for mypy
|
||||
"commitizen==4.13.8",
|
||||
"deprecated==1.3.1", # for commitizen
|
||||
|
||||
# Sphinx
|
||||
"sphinx==9.0.4",
|
||||
"sphinx_rtd_theme==3.1.0",
|
||||
"sphinx-tabs==3.4.7",
|
||||
"GitPython==3.1.46",
|
||||
"myst-parser==5.0.0",
|
||||
"docutils==0.21.2",
|
||||
|
||||
# Pytest
|
||||
"pytest==9.0.2",
|
||||
"pytest-asyncio==1.3.0",
|
||||
"pytest-cov==7.0.0",
|
||||
"pytest-xprocess==1.0.2",
|
||||
"coverage==7.13.4",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/Akkudoktor-EOS/EOS"
|
||||
Issues = "https://github.com/Akkudoktor-EOS/EOS/issues"
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
requires = ["setuptools>=77", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
dependencies = {file = ["requirements.txt"]}
|
||||
optional-dependencies = {dev = { file = ["requirements-dev.txt"] }}
|
||||
# version.txt must be generated
|
||||
version = { file = "version.txt" }
|
||||
|
||||
@@ -92,6 +161,7 @@ markers = [
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
mypy_path= "src"
|
||||
files = ["src", "tests"]
|
||||
exclude = "class_soc_calc\\.py$"
|
||||
check_untyped_defs = true
|
||||
|
||||
Reference in New Issue
Block a user