From 739443444844bbc794ebf16177adf39040340541 Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Mon, 9 Dec 2024 17:34:28 +0100 Subject: [PATCH] chore: Introduce pip support and make uv optional The current implementation of the pyproject.toml does not allow to install all requirements for dev environments to be installed with pip. While PEP 735 is accepted since almost two months, pip does not support it yet. Instead, we rely on PEP 621 and by using optional-dependencies we can for now support pip by allowing to install the dev dependencies by specifying extras, such as pip install .[dev] This can be reverted once https://github.com/pypa/pip/issues/12963 is resolved. --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50c39ecc9..e764cd049 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ name = "gallia" version = "1.9.0" description = "Extendable Pentesting Framework" readme = "README.md" +authors = [{name = "AISEC Pentesting Team"}] maintainers = [ { name = "Stefan Tatschner", email = "stefan.tatschner@aisec.fraunhofer.de" }, { name = "Tobias Specht", email = "tobias.specht@aisec.fraunhofer.de" }, @@ -48,7 +49,8 @@ dependencies = [ "cursed-hr" = "gallia.cli.cursed_hr:main" "hr" = "gallia.cli.hr:main" -[dependency-groups] +# TODO: Change to dependency-groups once https://github.com/pypa/pip/issues/12963 is resolved +[project.optional-dependencies] dev = [ "Sphinx >=8.0", "construct-typing >=0.5.2,<0.7.0",