Skip to content

Commit

Permalink
chore: Introduce pip support and make uv optional
Browse files Browse the repository at this point in the history
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 pypa/pip#12963 is
resolved.
  • Loading branch information
ferdinandjarisch committed Dec 9, 2024
1 parent ab85568 commit 7394434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
{ name = "Tobias Specht", email = "[email protected]" },
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 7394434

Please sign in to comment.