From c640239f8aa9b4b9415ed3f8763fbbcfa7341ef1 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Tue, 18 Aug 2026 01:22:18 +0300 Subject: [PATCH] build: move toxfile to tools packages --- pyproject.toml | 1 - .../tox_plugins/dynamic_version/__init__.py | 0 tools/tox_plugins/pyproject.toml | 18 ++++++++++++++++++ tox.toml | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) rename toxfile.py => tools/tox_plugins/dynamic_version/__init__.py (100%) create mode 100644 tools/tox_plugins/pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index 0dc108f6..d5f84bd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,6 @@ exclude = [ "/conftest.py", "/github-logo.png", "/tox.toml", - "/toxfile.py", "/web.png", ] diff --git a/toxfile.py b/tools/tox_plugins/dynamic_version/__init__.py similarity index 100% rename from toxfile.py rename to tools/tox_plugins/dynamic_version/__init__.py diff --git a/tools/tox_plugins/pyproject.toml b/tools/tox_plugins/pyproject.toml new file mode 100644 index 00000000..52fe4575 --- /dev/null +++ b/tools/tox_plugins/pyproject.toml @@ -0,0 +1,18 @@ +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[project] +name = "ahriman-tox-plugins" +classifiers = [ + "Framework :: tox", +] +version = "1" + +[project.entry-points.tox] +dynamic-version = "dynamic_version" + +[tool.hatch.build.targets.wheel] +packages = ["dynamic_version"] diff --git a/tox.toml b/tox.toml index 17dfaeff..5963579a 100644 --- a/tox.toml +++ b/tox.toml @@ -3,6 +3,7 @@ env_list = [ "tests", ] requires = [ + "ahriman-tox-plugins @ file://{tox_root}/tools/tox_plugins", "tox-uv", ] labels.release = [