-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (73 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (73 loc) · 1.88 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
# pyproject.toml
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "flagquantum"
version = "0.1.0"
description = "A distributed quantum computing framework built on PyTorch"
authors = [
{name = "FlagQuantum Team", email = "flagquantum@gmail.com"}
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"torch>=2.5.0",
"numpy>=1.24.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.0.0",
"ruff>=0.1.0",
"black>=23.0",
"mypy>=1.0",
]
viz = [
"matplotlib>=3.5.0",
]
invertible = [
"torch>=2.5.0", # Nightly build recommended for invertible backprop
]
all = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.0.0",
"ruff>=0.1.0",
"black>=23.0",
"mypy>=1.0",
"matplotlib>=3.5.0",
"torch>=2.5.0", # Nightly build recommended for invertible backprop
]
[project.urls]
Homepage = "https://github.com/flagquantum/flagquantum"
Repository = "https://github.com/flagquantum/flagquantum"
Issues = "https://github.com/flagquantum/flagquantum/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["flagquantum*"]
exclude = ["tests*", "docs*", "scripts*", "examples*"]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311", "py312"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-v --tb=short --strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests that require GPU",
"distributed: marks tests that require multiple processes",
]