|
| 1 | +[project] |
| 2 | +name = "rustworkx" |
| 3 | +version = "0.17.0" |
| 4 | +description = "A High-Performance Graph Library for Python" |
| 5 | +requires-python = ">=3.9" |
| 6 | +dependencies = [ |
| 7 | + "numpy>=1.16.0,<3" |
| 8 | +] |
| 9 | +readme = {file = "README.md", content-type = "text/markdown"} |
| 10 | +license-files = ["LICENSE"] |
| 11 | +license = "Apache-2.0" |
| 12 | +classifiers=[ |
| 13 | + "Intended Audience :: Developers", |
| 14 | + "Intended Audience :: Science/Research", |
| 15 | + "Programming Language :: Rust", |
| 16 | + "Programming Language :: Python :: 3 :: Only", |
| 17 | + "Programming Language :: Python :: 3.9", |
| 18 | + "Programming Language :: Python :: 3.10", |
| 19 | + "Programming Language :: Python :: 3.11", |
| 20 | + "Programming Language :: Python :: 3.12", |
| 21 | + "Programming Language :: Python :: 3.13", |
| 22 | + "Operating System :: MacOS :: MacOS X", |
| 23 | + "Operating System :: Microsoft :: Windows", |
| 24 | + "Operating System :: POSIX :: Linux", |
| 25 | + "Development Status :: 5 - Production/Stable", |
| 26 | +] |
| 27 | +keywords = ["Networks", "network", "graph", "Graph Theory", "DAG"] |
| 28 | + |
| 29 | +[tool.setuptools] |
| 30 | +packages = ["rustworkx", "rustworkx.visualization"] |
| 31 | +include-package-data = true |
| 32 | + |
| 33 | +[tool.distutils.bdist_wheel] |
| 34 | +py-limited-api = "cp39" |
| 35 | + |
| 36 | +[[tool.setuptools-rust.ext-modules]] |
| 37 | +target = "rustworkx.rustworkx" |
| 38 | +path = "Cargo.toml" |
| 39 | +binding = "PyO3" |
| 40 | + |
| 41 | +[project.optional-dependencies] |
| 42 | +mpl = ["matplotlib>=3.0"] |
| 43 | +graphviz = ["pillow>=5.4"] |
| 44 | +# TODO: use self-referential rustworkx[mpl] and rustworkx[graphivz] |
| 45 | +# once it is better suported. |
| 46 | +all = [ |
| 47 | + "matplotlib>=3.0", |
| 48 | + "pillow>=5.4", |
| 49 | +] |
| 50 | + |
| 51 | +[project.urls] |
| 52 | +issues = "https://github.com/Qiskit/rustworkx/issues" |
| 53 | +source = "https://github.com/Qiskit/rustworkx" |
| 54 | +documentation ="https://www.rustworkx.org/" |
| 55 | +releasenotes = "https://www.rustworkx.org/release_notes.html" |
| 56 | + |
| 57 | +[[project.authors]] |
| 58 | +name = "Matthew Treinish" |
| 59 | + |
| 60 | + |
| 61 | +[[project.maintainers]] |
| 62 | +name = "Ivan Carvalho" |
| 63 | + |
| 64 | + |
1 | 65 | [build-system] |
2 | | -requires = ["setuptools", "wheel", "setuptools-rust"] |
| 66 | +requires = ["setuptools>=70.1.0", "setuptools-rust>=1.9"] |
3 | 67 | build-backend = "setuptools.build_meta" |
4 | 68 |
|
| 69 | +[dependency-groups] |
| 70 | +test = [ |
| 71 | + "setuptools-rust", |
| 72 | + "fixtures", |
| 73 | + "testtools>=2.5.0", |
| 74 | + "networkx>=2.5", |
| 75 | + "stestr>=4.1", |
| 76 | +] |
| 77 | +lint = [ |
| 78 | + "black~=24.8", |
| 79 | + "ruff~=0.6", |
| 80 | + "setuptools-rust", |
| 81 | + "typos~=1.28", |
| 82 | +] |
| 83 | +stubs = [ |
| 84 | + "mypy==1.11.2", |
| 85 | + "typing-extensions>=4.4", |
| 86 | +] |
| 87 | +docs = [ |
| 88 | + "m2r2", |
| 89 | + "sphinx>=5.0", |
| 90 | + "jupyter-sphinx", |
| 91 | + "pydot", |
| 92 | + "pillow>=4.2.1", |
| 93 | + "reno>=3.4.0", |
| 94 | + "qiskit-sphinx-theme~=1.14.0rc1", |
| 95 | + "matplotlib>=3.4", |
| 96 | + "sphinx-reredirects", |
| 97 | + "sphinxemoji", |
| 98 | + "ipykernel", |
| 99 | +] |
| 100 | + |
5 | 101 | [tool.black] |
6 | 102 | line-length = 100 |
7 | 103 | target-version = ['py39', 'py310', 'py311', 'py312'] |
8 | 104 |
|
9 | 105 | [tool.ruff] |
10 | 106 | line-length = 105 # more lenient than black due to long function signatures |
11 | | -src = ["rustworkx", "setup.py", "retworkx", "tests"] |
| 107 | +src = ["rustworkx", "setup.py", "tests"] |
12 | 108 | lint.select = [ |
13 | 109 | "E", # pycodestyle |
14 | 110 | "F", # pyflakes |
|
0 commit comments