-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
268 lines (240 loc) · 8.12 KB
/
Copy pathpyproject.toml
File metadata and controls
268 lines (240 loc) · 8.12 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "circuit_synth"
dynamic = ["version"]
description = "Pythonic circuit design for production-ready KiCad projects"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{name = "Circuit Synth Contributors", email = "contact@circuitsynth.com"},
]
keywords = ["circuit", "design", "kicad", "electronics", "pcb", "schematic"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Operating System :: OS Independent",
]
dependencies = [
# Core dependencies
"numpy>=1.20.0",
"scipy>=1.7.0",
"matplotlib>=3.3.0",
"networkx>=2.6.0",
"pydantic>=2.0.0",
"PyYAML>=5.4.0",
"click>=8.0.0",
"rich>=10.0.0",
"loguru>=0.5.0",
"psutil>=5.9.0",
# Cache and performance dependencies
"cachetools>=5.3.0",
# KiCad API integration
"kicad-sch-api>=0.5.5",
"packaging>=21.0",
# Additional data processing
"sexpdata>=0.0.3",
# Async support
"aiohttp>=3.9.0",
"aiofiles>=23.2.0",
# Dashboard dependencies
"fastapi>=0.100.0",
"uvicorn>=0.20.0",
# Web scraping for JLC integration
"requests>=2.28.0",
"beautifulsoup4>=4.11.0",
"lxml>=6.0.0",
"pyspice>=1.5",
"reportlab>=4.4.0",
"twine>=6.1.0",
# Fast generation dependencies
"openai>=1.0.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=3.0.0",
"pytest-mock>=3.14.0",
"pytest-env>=1.1.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=4.0.0",
"mypy>=0.950",
"types-PyYAML>=6.0.0",
"pre-commit>=2.17.0",
]
claude = [
# Claude Code SDK integration for AI-powered circuit design
"claude-code-sdk>=0.0.17",
]
fast_generation = [
# Fast generation with Google ADK (optional)
"google-adk>=0.1.0",
# Additional async dependencies
"asyncio-mqtt>=0.16.0",
]
test = [
"pytest>=7.0.0",
"pytest-mock>=3.14.0",
"pytest-asyncio>=0.24.0", # Async test support
"memory-profiler>=0.60.0",
"hypothesis>=6.0.0", # Property-based testing
]
[project.scripts]
# Sync scripts
kicad-to-python = "circuit_synth.tools.kicad_integration.kicad_to_python_sync:main"
python-to-kicad = "circuit_synth.tools.kicad_integration.python_to_kicad_sync:main"
# Symbol management scripts
preload-symbols = "circuit_synth.tools.kicad_integration.preload_symbols:main"
preparse-symbols = "circuit_synth.tools.kicad_integration.preparse_kicad_symbols:main"
# Import/Export tools
netlist-import = "circuit_synth.kicad.netlist_importer:main"
json-to-python = "circuit_synth.codegen.json_to_python_project:main"
# KiCad Integration
validate-kicad = "circuit_synth.core.kicad_validator:main"
# Claude Code Integration
setup-claude-integration = "circuit_synth.tools.development.setup_claude:main"
register-agents = "circuit_synth.ai_integration.claude.agent_registry:main"
validate-circuit = "circuit_synth.ai_integration.validation.real_time_check:main"
cs-new-project = "circuit_synth.tools.project_management.new_project:main"
cs-init-pcb = "circuit_synth.tools.project_management.init_pcb:main"
cs-init-existing-project = "circuit_synth.tools.project_management.init_existing_project:main"
cs-setup-kicad-plugins = "circuit_synth.tools.development.setup_kicad_plugins:main"
# Quality Assurance Tools
cs-fmea = "circuit_synth.tools.quality_assurance.fmea_cli:main"
# Library API Setup Tools
cs-setup-snapeda-api = "circuit_synth.tools.setup.library_api_setup:setup_snapeda_api"
cs-setup-digikey-api = "circuit_synth.tools.setup.library_api_setup:setup_digikey_api"
cs-library-setup = "circuit_synth.tools.setup.library_api_setup:show_library_setup"
# Fast Generation Tools
cs-fast-gen-demo = "circuit_synth.fast_generation.demo:main_cli"
# Fast JLCPCB Search CLI
jlc-fast = "circuit_synth.tools.jlc_fast_search_cli:cli"
# Test Plan Generation - DISABLED: Files don't exist yet
# create-test-plan = "circuit_synth.tools.test_plan_commands:create_test_plan"
# generate-manufacturing-tests = "circuit_synth.tools.test_plan_commands:generate_manufacturing_tests"
# Plugin Management - REMOVED: Modules don't exist
# install-kicad-plugins = "install_kicad_plugins:main" # BROKEN
# cs-fast-gen-setup = "fast_generation_setup:main" # BROKEN
[project.urls]
Homepage = "https://github.com/circuit-synth/circuit-synth"
Documentation = "https://circuit-synth.readthedocs.io"
Repository = "https://github.com/circuit-synth/circuit-synth"
Issues = "https://github.com/circuit-synth/circuit-synth/issues"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
version = {attr = "circuit_synth.__version__"}
# Include all packages from src
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
circuit_synth = [
"py.typed",
"data/templates/project/*",
"data/templates/claude/*",
# Include circuit template files (CRITICAL: needed for cs-new-project)
"data/templates/base_circuits/*.py",
"data/templates/example_circuits/*.py",
# Include all files in example_project recursively
"data/templates/example_project/**/*",
"data/templates/example_project/**/**/*",
"data/templates/example_project/**/**/**/*",
# Explicitly include hidden files in .claude directory
"data/templates/example_project/.claude/**/*",
# Explicitly include Python source files in circuit-synth directory
"data/templates/example_project/circuit-synth/*.py",
"data/templates/project_template/*",
"data/templates/project_template/circuit-synth/*",
"data/templates/project_template/.claude/*",
"data/templates/project_template/.claude/agents/*/*",
"data/templates/project_template/.claude/commands/*/*"
]
# Include all Python module files
"*" = [
"__init__.py", "*.py", # Python files
]
[tool.black]
line-length = 88
target-version = ['py38']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
exclude = [
"^.venv/",
"^venv/",
"build/",
"dist/"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Don't collect Test* classes from source code, only from tests/
norecursedirs = [".*", "build", "dist", "*.egg", "src"]
# Ignore collection warnings for domain classes named Test* in source code
# These are legitimate domain classes (TestEquipment, TestProcedure, etc.)
filterwarnings = [
"ignore::pytest.PytestCollectionWarning",
]
markers = [
"unit: marks tests as unit tests (fast, pure Python, no I/O)",
"integration: marks tests as integration tests (file I/O allowed, no external tools)",
"e2e: marks tests as end-to-end tests (external tools like kicad-cli allowed)",
"slow: marks tests as slow running tests",
"asyncio: marks tests as async/await tests",
"functional: marks tests as functional tests",
"cache: marks tests as cache-related tests",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
env = [
"KICAD_SYMBOL_DIR=tests/test_data/kicad_symbols",
]
[tool.uv.workspace]
members = [
"test_uv",
"cs_test",
"test_agent_setup/fresh_agent_test",
"test_agent_setup/validation_test",
"test_agent_setup/final_test",
"agent_validation_test/agent_test",
"test_generation/format_test",
"test_8_agents/test_project",
"test_install",
"test-project",
"test_project_creation",
]
[dependency-groups]
dev = [
"black>=25.1.0",
"build>=1.2.2.post1",
"flake8>=7.3.0",
"isort>=6.0.1",
"linkify-it-py>=2.0.3",
"myst-parser>=3.0.1",
"pytest-env>=1.1.5",
"sphinx>=7.4.7",
"sphinx-autodoc-typehints>=2.3.0",
"sphinx-rtd-theme>=3.0.2",
"twine>=6.1.0",
]
test = [
"pytest-asyncio>=1.1.0",
]