Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (119 loc) · 3.55 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (119 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "terravision"
version = "0.53.0"
description = "Cloud architecture diagrams in both directions: AI prompt or JSON to diagram, diagram to Terraform via MCP server, and Terraform to diagram via CLI or CI/CD. Using Official AWS, Azure and GCP icons."
readme = "README.md"
authors = [{ name = "Patrick Chugh", email = "terravisionapp@gmail.com" }]
license = "AGPL-3.0-only"
requires-python = ">=3.11"
keywords = [
"terraform",
"cloud-architecture-diagram",
"architecture-diagram-generator",
"diagram-as-code",
"drawio",
"architecture",
"diagram",
"visualization",
"cloud",
"aws",
"azure",
"gcp",
"infrastructure-as-code",
"graphviz",
"mcp",
"mcp-server",
"model-context-protocol",
]
dependencies = [
"click>=8.1.3",
"GitPython>=3.1.31",
"graphviz>=0.21",
"tqdm>=4.65.0",
"python-hcl2==4.3.0",
"PyYAML>=6.0",
"ollama>=0.6.1",
"requests>=2.32.3",
"typing-extensions>=4.0.0",
"tomli>=2.0.1",
"boto3>=1.35.0",
]
[project.optional-dependencies]
# Model Context Protocol server (`terravision mcp`). Optional so the default
# install stays unchanged for users who only need the CLI. Pillow scales the
# diagram preview returned inline to chat apps.
mcp = ["mcp>=2.0,<3", "pillow>=10"]
[project.scripts]
terravision = "terravision.terravision:main"
[tool.poetry]
name = "terravision"
version = "0.53.0"
description = "Cloud architecture diagrams in both directions: AI prompt or JSON to diagram, diagram to Terraform via MCP server, and Terraform to diagram via CLI or CI/CD. Using Official AWS, Azure and GCP icons."
authors = ["Patrick Chugh <terravisionapp@gmail.com>"]
license = "AGPL-3.0-only"
readme = "README.md"
exclude = []
packages = [
{ include = "terravision" },
{ include = "modules" },
{ include = "resource_classes" }
]
include = [
{ path = "terravision.py", format = ["sdist", "wheel"] },
{ path = "pyproject.toml", format = ["sdist", "wheel"] },
{ path = "shiftLabel.gvpr", format = ["sdist", "wheel"] },
{ path = "terravision.bat", format = ["sdist", "wheel"] },
{ path = "resource_images/**/*", format = ["sdist", "wheel"] },
{ path = "hcl2/**/*", format = ["sdist", "wheel"] },
# The agent skill: its rules, node types and examples also back the MCP
# diagram_guide tool, for apps that have the server but not the skill.
{ path = "skills/**/*", format = ["sdist", "wheel"] }
]
[tool.poetry.dependencies]
click = "8.1.3"
GitPython = "3.1.31"
graphviz = "^0.21"
tqdm = "4.65.0"
python-hcl2 = "4.3.0"
python = ">=3.11"
PyYAML = ">=6.0"
ollama = "^0.6.1"
requests = ">=2.32.3"
typing-extensions = "^4.0.0"
tomli = "^2.0.1"
boto3 = ">=1.35.0"
[tool.poetry.scripts]
terravision = "terravision.terravision:main"
[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
black = "24.3.0"
isort = "^5.12.0"
# Installed for tests so CI covers the MCP server. Runtime users get these
# from the `mcp` extra instead; they are never required dependencies.
mcp = ">=2.0,<3"
pillow = ">=10"
[tool.poetry.group.dev.dependencies]
pre-commit = "<4.0"
[tool.black]
line-length = 88
target-version = ['py39', 'py310', 'py311']
# use a double-quoted string with escaped backslash so the regex is valid TOML
include = "\\.pyi?$"
# use a literal (single-quoted triple) string so backslashes inside are not treated as escapes
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
skip = ["drawing.py"]