From b9c92eafc3026dd5f73f3a1b2754de0b4bb0323d Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 15 Mar 2025 10:54:12 +0100 Subject: Rebuild deployment - Use uv instead of poetry - Do not build a container image, just use live uv installing - Use src layout - Fix resource handling Fixes #362 --- blog/pyproject.toml | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'blog/pyproject.toml') diff --git a/blog/pyproject.toml b/blog/pyproject.toml index af8ef386..4281d729 100644 --- a/blog/pyproject.toml +++ b/blog/pyproject.toml @@ -1,26 +1,34 @@ -[tool.poetry] +[project] name = "blog" version = "0.1.0" -description = "" -authors = ["alex "] -packages = [{include = "blog"}] +description = "Add your description here" +requires-python = ">=3.11" +dependencies = [ + "bicephalus", + "feedgen>=1.0.0", + "htmlgenerator>=1.2.32", + "lxml>=5.3.1", +] -[tool.poetry.dependencies] -python = "^3.9" -# bicephalus = { path = "../../bicephalus", develop = true } -bicephalus = { git = "https://github.com/alexpdp7/bicephalus.git" } -htmlgenerator = "^1.2.32" -feedgen = "^1.0.0" -lxml = "^5.3.1" +[tool.uv] +package = true -[tool.poetry.group.dev.dependencies] -pytest = "^8.3.5" -ipython = "^8.15.0" +[tool.uv.sources] +bicephalus = { git = "https://github.com/alexpdp7/bicephalus.git" } -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +[dependency-groups] +dev = [ + "pytest>=8.3.5", +] [tool.pytest.ini_options] addopts = "--doctest-modules" doctest_optionflags = "NORMALIZE_WHITESPACE" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel.force-include] +"content" = "content" +"static" = "static" -- cgit v1.2.3