-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
93 lines (83 loc) · 2.4 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
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[project]
name = "ffsim"
requires-python = ">=3.9"
version = "0.0.49.dev"
description = "Faster simulations of fermionic quantum circuits."
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy",
"opt_einsum",
"orjson",
"pyscf >= 2.7",
"qiskit >= 1.1",
"scipy",
"typing-extensions",
]
[project.urls]
Homepage = "https://github.com/qiskit-community/ffsim"
Documentation = "https://qiskit-community.github.io/ffsim/"
[project.optional-dependencies]
dev = [
"coverage",
"maturin",
"mypy",
"myst-parser",
"nbmake",
"nbsphinx",
"pre-commit",
"pytest",
"qiskit[visualization]",
"qiskit-sphinx-theme",
"ruff == 0.6.2",
"sphinx",
"sphinx-autodoc-typehints",
]
[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "python"
module-name = "ffsim._lib"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
files = ["python/**/*.py", "python/**/*.pyi", "tests/**/*.py", "docs/**/*.py"]
[tool.ruff]
src = ["python"]
include = [
"pyproject.toml",
"python/**/*.py",
"python/**/*.pyi",
"tests/**/*.py",
"tests/**/*.pyi",
"docs/**/*.py",
"docs/**/*.pyi",
"docs/**/*.ipynb",
]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "NPY", "NPY201"]
[tool.cibuildwheel]
build = "cp39-macosx* cp39-manylinux_x86_64 cp39-manylinux_aarch64"
test-requires = "pytest"
test-command = "pytest {project}/tests"
[tool.cibuildwheel.linux]
# mirrorlist.centos.org doesn't exist anymore
# Workaround from https://serverfault.com/a/1161847
before-all = "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && yum install -y openssl-devel rust cargo openblas-devel"