-
Notifications
You must be signed in to change notification settings - Fork 205
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (140 loc) · 4.38 KB
/
pyproject.toml
File metadata and controls
159 lines (140 loc) · 4.38 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
[project]
name = "rustworkx"
version = "0.17.1"
description = "A High-Performance Graph Library for Python"
requires-python = ">=3.10"
dependencies = [
"numpy>=1.16.0,<3"
]
readme = {file = "README.md", content-type = "text/markdown"}
license-files = ["LICENSE"]
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Rust",
"Programming Language :: Python :: 3 :: Only",
"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 :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
keywords = ["Networks", "Network", "Graph", "Graph Theory", "DAG"]
[tool.setuptools]
packages = ["rustworkx", "rustworkx.visualization"]
include-package-data = true
[tool.distutils.bdist_wheel]
py-limited-api = "cp310"
[[tool.setuptools-rust.ext-modules]]
target = "rustworkx.rustworkx"
path = "Cargo.toml"
binding = "PyO3"
[project.optional-dependencies]
mpl = ["matplotlib>=3.0"]
graphviz = ["pillow>=5.4"]
# TODO: use self-referential rustworkx[mpl] and rustworkx[graphivz]
# once it is better suported.
all = [
"matplotlib>=3.0",
"pillow>=5.4",
]
[project.urls]
issues = "https://github.com/Qiskit/rustworkx/issues"
source = "https://github.com/Qiskit/rustworkx"
documentation ="https://www.rustworkx.org/"
releasenotes = "https://www.rustworkx.org/release_notes.html"
[[project.authors]]
name = "Matthew Treinish"
email = "mtreinish@kortar.org"
[[project.maintainers]]
name = "Ivan Carvalho"
email = "ivancarvalho@gatech.edu"
[build-system]
requires = ["setuptools>=77.0.0", "setuptools-rust>=1.9"]
build-backend = "setuptools.build_meta"
[dependency-groups]
testinfra = [
"nox==2025.10.16",
"uv==0.11.6",
]
test = [
"setuptools-rust",
"testtools>=2.5.0",
"networkx>=3.2",
"stestr>=4.1",
]
lint = [
"ruff==0.15.7",
"setuptools-rust",
"typos~=1.39",
]
stubs = [
"mypy==1.17.1",
"typing-extensions>=4.4",
]
docs = [
"m2r2",
"sphinx>=5.0",
"jupyter-sphinx",
"pydot",
"pillow>=4.2.1",
"reno>=3.4.0",
"qiskit-sphinx-theme==2.0.0",
"matplotlib>=3.4",
"sphinx-reredirects",
"sphinxemoji",
"ipykernel",
"lxml_html_clean",
]
releaseinfra = [
"cibuildwheel==3.3.0; python_version >= '3.11'",
]
[tool.ruff]
line-length = 100
src = ["rustworkx", "setup.py", "tests"]
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"PYI", # flake8-pyi
"Q", # flake8-quotes
]
target-version = "py310"
extend-exclude = ["doc"]
[tool.ruff.lint.per-file-ignores]
"rustworkx/__init__.py" = ["F405", "F403"]
"*.pyi" = ["F403", "F405", "PYI001", "PYI002"]
[tool.ruff.lint.pycodestyle]
max-line-length = 105 # lint has a larger limit than the formatter because of long signatures
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.typos.default]
extend-ignore-words-re = [
"[Ss]toer",
"[Bb]rin",
]
[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
skip = "pp* cp314t* *win32 *musllinux*i686"
test-requires = "networkx"
test-command = "python -m unittest discover {project}/tests"
before-build = "pip install -U setuptools-rust"
test-skip = "*linux_s390x *ppc64le *i686 *win32"
[tool.cibuildwheel.linux]
before-all = "yum install -y wget && {package}/tools/install_rust.sh"
environment = 'PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true"'
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} && pipx run abi3audit==0.0.9 --strict --report {wheel}"
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = "apk add --no-cache curl gcc && curl https://sh.rustup.rs -sSf | sh -s -- -y && source $HOME/.cargo/env && rustup install stable && rustup default stable"
[tool.cibuildwheel.macos]
environment = "MACOSX_DEPLOYMENT_TARGET=10.12"
repair-wheel-command = "brew install pipx && pipx ensurepath && pipx run --spec delocate==0.11.0 delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && pipx run abi3audit==0.0.9 --strict --report {wheel}"
[tool.cibuildwheel.windows]
repair-wheel-command = "cp {wheel} {dest_dir}/. && pipx run abi3audit==0.0.9 --strict --report {wheel}"