mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-05 19:43:22 +02:00
Fix setuptools package discovery error during cloud provider dependency installation
The issue occurred when uv tried to install optional dependencies (e.g., [digitalocean]) because setuptools was auto-discovering directories like 'roles', 'library', etc. as Python packages. Since Algo is an Ansible project, not a Python package, this caused builds to fail. Added explicit build-system configuration to pyproject.toml with py-modules = [] to disable package discovery entirely. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a87a021d5b
commit
e62b2ea55b
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=68.0.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "algo"
|
name = "algo"
|
||||||
description = "Set up a personal IPSEC VPN in the cloud"
|
description = "Set up a personal IPSEC VPN in the cloud"
|
||||||
|
@ -12,6 +16,10 @@ dependencies = [
|
||||||
"segno>=1.6.0",
|
"segno>=1.6.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
# Explicitly disable package discovery since Algo is not a Python package
|
||||||
|
py-modules = []
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
# Cloud provider dependencies (installed automatically based on provider selection)
|
# Cloud provider dependencies (installed automatically based on provider selection)
|
||||||
aws = [
|
aws = [
|
||||||
|
|
2
uv.lock
generated
2
uv.lock
generated
|
@ -20,7 +20,7 @@ wheels = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "algo"
|
name = "algo"
|
||||||
version = "2.0.0b0"
|
version = "2.0.0b0"
|
||||||
source = { virtual = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "ansible" },
|
{ name = "ansible" },
|
||||||
{ name = "jinja2" },
|
{ name = "jinja2" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue