-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
115 lines (95 loc) · 3.22 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
110
111
112
113
114
115
[project]
name = "guppylang"
version = "0.14.0"
requires-python = ">=3.10,<4"
description = "Pythonic quantum-classical programming language"
license = { file = "LICENCE" }
readme = "quickstart.md"
authors = [
{ name = "Mark Koch", email = "[email protected]" },
{ name = "TKET development team", email = "[email protected]" },
]
maintainers = [
{ name = "Mark Koch", email = "[email protected]" },
{ name = "TKET development team", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Compilers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"graphviz >=0.20.1,<0.21",
"networkx >=3.2.1,<4",
"pydantic >=2.7.0b1,<3",
"typing-extensions >=4.9.0,<5",
"hugr >=0.10.1,<0.11",
"tket2-exts>=0.3.0,<0.4",
]
[project.optional-dependencies]
# pytket = ["pytket >=1.30.0,<2", "tket2 >=0.4.1,<0.5"]
pytket = ["pytket>=1.34"]
[project.urls]
homepage = "https://github.com/CQCL/guppylang"
repository = "https://github.com/CQCL/guppylang"
[dependency-groups]
docs = ["sphinx >=7.2.6,<9", "sphinx-book-theme >=1.1.2,<2"]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "execution" },
{ include-group = "pytket_integration" },
]
lint = ["pre-commit >=3.6.0,<4", "ruff >=0.6.2,<0.7", "mypy ==1.10.0"]
test = [
"pytest >=8.3.2,<9",
"pytest-cov >=5.0.0,<6",
"pytest-notebook >=0.10.0,<0.11",
"pytest-snapshot >=0.9.0,<1",
"ipykernel >=6.29.5,<7",
"tket2>=0.6.0",
]
execution = [
{ include-group = "test" },
# Required to run the llvm integration tests
"maturin >=1.4.0,<2",
"pip >=24",
"execute-llvm",
]
pytket_integration = [{ include-group = "test" }, "pytket >=1.34.0,<2"]
[tool.uv.workspace]
members = ["execute_llvm"]
[tool.uv.sources]
execute-llvm = { workspace = true }
# Uncomment these to test the latest dependency version during development
# hugr = { git = "https://github.com/CQCL/hugr", subdirectory = "hugr-py", rev = "e40b6c7" }
# tket2-exts = { git = "https://github.com/CQCL/tket2", subdirectory = "tket2-exts", rev = "eb7cc63"}
# tket2 = { git = "https://github.com/CQCL/tket2", subdirectory = "tket2-py", rev = "eb7cc63"}
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
allow_redefinition = true
[tool.coverage.report]
exclude_also = [
# Don't complain about missing coverage on typing imports
"if TYPE_CHECKING:",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"raise InternalGuppyError",
# Don't complain about abstract methods, they aren't run:
"@abstractmethod",
]