-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
109 lines (96 loc) · 3.2 KB
/
pyproject.toml
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
[tool.poetry]
name = "tket2-py"
version = "0.2.0"
description = "Quantinuum's TKET2 Quantum Compiler"
classifiers = [
"Environment :: Console",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
authors = ["TKET development team <[email protected]>"]
maintainers = ["TKET development team <[email protected]>"]
include = ["pyproject.toml"]
license = "Apache-2.0"
readme = "README.md"
packages = [{ include = "tket2-py" }]
[tool.poetry.dependencies]
python = "^3.10"
# Note: Be sure to update the dependency versions in [project.dependencies] as well
#
# Poetry does not currently follow PEP 621, it will be supported on poetry 2
# https://github.com/python-poetry/poetry/issues/3332
tket2_eccs = { path = "tket2-eccs", develop = true }
pytket = "1.31.0"
hugr = "^0.5.0"
[tool.poetry.group.dev.dependencies]
maturin = "^1.7.0"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
ruff = "^0.5.5"
mypy = "^1.11.0"
hypothesis = "^6.108.5"
graphviz = "^0.20"
pre-commit = "^3.8.0"
[build-system]
requires = ["maturin~=1.7"]
build-backend = "maturin"
[project]
name = "tket2"
classifiers = [
"Environment :: Console",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
authors = [
{ name = "TKET development team", email = "[email protected]" },
]
maintainers = [
{ name = "TKET development team", email = "[email protected]" },
]
version = "0.2.0"
description = "Quantinuum's TKET2 Quantum Compiler"
requires-python = ">=3.10"
license = { file = "LICENCE" }
# Note: Be sure to update the dependency versions in [tool.poetry.dependencies] as well
dependencies = [
'pytket >= 1.29.2, < 2',
'hugr >= 0.5.0, < 0.6',
'tket2_eccs >= 0.1.0, < 0.2',
]
[project.urls]
homepage = "https://github.com/CQCL/tket2"
repository = "https://github.com/CQCL/tket2"
[tool.maturin]
module-name = "tket2._tket2"
manifest-path = "tket2-py/Cargo.toml"
python-source = "tket2-py"
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
features = ["pyo3/extension-module"]
[tool.pytest]
pythonpath = "tket2-py"
[tool.pytest.ini_options]
# Lark throws deprecation warnings for `src_parse` and `src_constants`.
filterwarnings = "ignore::DeprecationWarning:lark.*"
[tool.pyright]
# Rust bindings have typing stubs but no python source code.
reportMissingModuleSource = "none"
[[tool.mypy.overrides]]
# Ignore errors in tikv-jemalloc.
module = "gen_run_tests.*"
ignore_errors = true