mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-25 15:14:34 +02:00
feat: make AI Copilot an optional dependency
This change makes AI Copilot features optional to reduce installation size and support restricted environments. Changes: - Split AI dependencies into ai-requirements.txt - Add ai-copilot optional dependency in pyproject.toml - Add import protection in gns3server/agent/__init__.py - Return 501 for AI endpoints when dependencies not installed - Add gns3server-uninstall-ai-copilot command for cleanup - Update README with installation and uninstallation instructions Installation: - Basic: pip install gns3-server - With AI: pip install gns3-server[ai-copilot] - Development: pip install gns3-server[ai-copilot,dev] Uninstallation: - gns3server-uninstall-ai-copilot
This commit is contained in:
1 parent
0b741dd834
commit
cd1d28729a
8 files changed
+337
-76
No files matched your search
@@ -38,8 +38,13 @@ version = {attr = "gns3server.version.__version__"}
|
||||
dependencies = {file = "requirements.txt"}
|
||||
|
||||
[tool.setuptools.dynamic.optional-dependencies]
|
||||
# Development dependencies
|
||||
dev = {file = ['dev-requirements.txt']}
|
||||
|
||||
# Optional components (can be installed individually or combined)
|
||||
ai-copilot = {file = ['ai-requirements.txt']}
|
||||
# terraform = {file = ['terraform-requirements.txt']} # Future component
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "http://gns3.com"
|
||||
"Repository" = "http://github.com/GNS3/gns3-server"
|
||||
@@ -48,3 +53,4 @@ dev = {file = ['dev-requirements.txt']}
|
||||
[project.scripts]
|
||||
gns3server = "gns3server.main:main"
|
||||
gns3vmnet = "gns3server.utils.vmnet:main"
|
||||
gns3server-uninstall-ai-copilot = "gns3server.utils.uninstall_ai_copilot:main"
|
||||
Reference in new issue
Block a user