forked from siliconcompiler/siliconcompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
193 lines (169 loc) · 6.41 KB
/
pyproject.toml
File metadata and controls
193 lines (169 loc) · 6.41 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
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm[toml] >= 8"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# Presence of this section activates setuptools_scm, even though it's empty
[project]
name = "siliconcompiler"
authors = [{name = "Zero ASIC"}]
description = "A compiler framework that automates translation from source code to silicon."
readme = {file = "README.md", content-type = "text/markdown"}
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Software Development :: Build Tools"
]
requires-python = ">= 3.9"
dependencies = [
"aiohttp >= 3.10.11, < 3.14.0",
"distro >= 1.9.0, < 2.0.0",
"docker >= 7.1.0, < 8.0.0",
"fastjsonschema >= 2.20.0, < 2.22.0",
"graphviz >= 0.20, < 0.22",
"orjson >= 3.11.0, < 4",
"packaging >= 21.3, < 27",
"requests >= 2.32.0, < 2.33.0",
"Pillow >= 11.3.0, < 12.2.0",
"PyYAML >= 6.0.0, < 7.0.0",
"GitPython >= 3.1.44, < 3.2",
"PyGithub >= 2.8.0, < 2.9.0",
"urllib3 >= 1.26.0", # Required for PyGithub
"lambdapdk >= 0.2.7",
"fasteners >= 0.20",
"pandas >= 1.1.5",
"psutil >= 5.8.0",
"Jinja2 >= 2.11.3",
"pyslang == 10.0.0",
"importlib_metadata; python_version < '3.10'",
# dashboard, streamlit does not support 3.9
"streamlit == 1.54.0; python_version > '3.9'",
"streamlit_agraph == 0.0.45; python_version > '3.9'",
"streamlit-antd-components == 0.3.2; python_version > '3.9'",
"streamlit_javascript == 0.1.5; python_version > '3.9'",
"streamlit-autorefresh == 1.0.1; python_version > '3.9'",
# CLI dashboard
"rich >= 14.0.0, < 15.0.0"
]
license = {text = "Apache License 2.0"}
dynamic = ["version"]
[project.urls]
Homepage = "https://www.siliconcompiler.com"
Documentation = "https://docs.siliconcompiler.com"
Repository = "https://github.com/siliconcompiler/siliconcompiler"
Issues = "https://github.com/siliconcompiler/siliconcompiler/issues"
Discussion = "https://github.com/siliconcompiler/siliconcompiler/discussions"
[project.scripts]
sc-dashboard = "siliconcompiler.apps.sc_dashboard:main"
sc-issue = "siliconcompiler.apps.sc_issue:main"
sc-remote = "siliconcompiler.apps.sc_remote:main"
sc-server = "siliconcompiler.apps.sc_server:main"
sc-show = "siliconcompiler.apps.sc_show:main"
sc-install = "siliconcompiler.apps.sc_install:main"
smake = "siliconcompiler.apps.smake:main"
[project.entry-points."siliconcompiler.showtask"]
scsetup = "siliconcompiler.utils.showtools:showtasks"
[project.entry-points."siliconcompiler.path_resolver"]
https = "siliconcompiler.package.https:get_resolver"
git = "siliconcompiler.package.git:get_resolver"
github = "siliconcompiler.package.github:get_resolver"
[project.entry-points."siliconcompiler.docs"]
linkcode = "siliconcompiler.schema.docs:get_codeurl"
[project.entry-points."siliconcompiler.install"]
groups = "siliconcompiler.apps.sc_install:get_install_groups"
tools = "siliconcompiler.apps.sc_install:get_install_tools"
[project.optional-dependencies]
test = [
"pytest == 8.4.2",
"pytest-xdist == 3.8.0",
"pytest-timeout == 2.4.0",
"pytest-asyncio == 1.2.0",
"pytest-cov == 7.0.0",
"responses == 0.26.0",
"PyVirtualDisplay == 3.0"
]
lint = [
"flake8 == 7.3.0",
"tclint == 0.7.0",
"codespell == 2.4.2"
]
docs = [
"Sphinx >= 7.4, <8.3",
"pip-licenses == 5.5.1",
"pydata-sphinx-theme == 0.16.1",
"sc-leflib >= 0.2.0"
]
optimizer = [
"google-vizier[jax] == 0.1.21; python_version >= '3.10'"
]
cocotb = [
"cocotb >= 2.0.1, < 2.1.0; python_version >= '3.7' and python_version <= '3.13'"
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages]
find = {namespaces = false} # Disable implicit namespaces
[tool.setuptools.dynamic]
version = {attr = "siliconcompiler._metadata.version"}
[tool.pytest.ini_options]
markers = [
"eda: this test requires EDA tools installed to run. By default these tests will be run nightly, not on push.",
"quick: always run this test on push, even if it requires EDA tools.",
"nightly: run this test during nightly runs",
"nocpulimit: don't limit cpu count for this test.",
"docker: test requires docker",
"nocache: don't automatically set the cache directory",
]
pythonpath = [
"tests"
]
testpaths = [
"tests"
]
timeout = "15"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
'ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning',
'ignore:The distutils\.sysconfig module is deprecated, use sysconfig instead',
'ignore:The distutils package is deprecated and slated for removal in Python 3\.12',
'ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release',
'ignore:.* is multi-threaded, use of fork\(\) may lead to deadlocks in the child.:DeprecationWarning',
'ignore:This function is deprecated and will be removed in a future version, use cls\.find_task instead:DeprecationWarning',
'ignore:This function is deprecated and will be removed in a future version, use TimingModeSchema instead:DeprecationWarning',
'ignore:Python 3\.14 will, by default, filter extracted tar archives and reject files or modify their metadata\. Use the filter argument to control this behavior\.:DeprecationWarning'
]
[tool.tclint]
exclude = [
'/setup/',
'build/',
'.venv/',
# messy file adapted from another source
'/siliconcompiler/tools/yosys/scripts/syn_strategies.tcl'
]
[tool.tclint.style]
line-length = 100
indent = 4
max-blank-lines = 1
spaces-in-braces = true
[tool.codespell]
skip = '*/build/*,./docs/_build/*,*.json,*.xml,*.v,./siliconcompiler/data/templates/report/bootstrap.min.js,./tests/utils/test_utils.py,./tests/tools/data/klayout_pdk/interposer.drc'
count = true
quiet-level = 3
ignore-words-list = 'synopsys,inout,subtile,FRAM,dffer,dffers,thirdparty'
[tool.check-wheel-contents]
ignore = [
"W002"
]