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 authored and rumpelsepp committed Dec 9, 2024
1 parent ab85568 commit 14ba96d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
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
36 changes: 16 additions & 20 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14ba96d

Please sign in to comment.