From ad813df0c519626ab9b674a7c297faca4d75c33f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 13 Dec 2025 20:29:09 +0100 Subject: [PATCH] Switch to pyproject.toml for Python dependencies Introduce pyproject.toml as the single source of truth for Python dependencies. Remove legacy requirements.txt and simplify requirements.yml to Ansible collections only. Drop pytest in favor of the built-in unittest framework. https://chatgpt.com/share/693dbe8c-8b64-800f-a6e5-41b7d21ae7e0 --- pyproject.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 9 --------- requirements.yml | 7 +------ 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..8912450c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools>=68", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "infinito-nexus" +version = "0.0.0" +description = "Infinito.Nexus" +readme = "README.md" +requires-python = ">=3.10" +license = { file = "LICENSE.md" } + +dependencies = [ + "simpleaudio", + "numpy", + "ansible", + "colorscheme-generator @ https://github.com/kevinveenbirkenbach/colorscheme-generator/archive/refs/tags/v0.3.0.zip", + "bcrypt", + "ruamel.yaml", + "tld", + "passlib", + "requests", +] + +[tool.setuptools] +# Non-src layout: explicitly control packaged modules +packages = { find = { where = ["."], include = [ + "cli*", + "filter_plugins*", + "lookup_plugins*", + "module_utils*", + "library*", +], exclude = [ + "roles*", + "assets*", + "docs*", + "templates*", + "logs*", + "tasks*", + "tests*", + "__pycache__*", +] } } +include-package-data = true diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 004b90dd..00000000 --- a/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -colorscheme-generator @ https://github.com/kevinveenbirkenbach/colorscheme-generator/archive/refs/tags/v0.3.0.zip -numpy -bcrypt -ruamel.yaml -tld -passlib -requests -ansible -pytest \ No newline at end of file diff --git a/requirements.yml b/requirements.yml index 5997ebc6..82d232ee 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,9 +1,4 @@ collections: - name: kewlfft.aur - name: community.general - - name: hetzner.hcloud -yay: - - python-simpleaudio - - python-numpy -pacman: - - ansible \ No newline at end of file + - name: hetzner.hcloud \ No newline at end of file