forked from qulacs/qulacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (102 loc) · 2.64 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
116
[build-system]
requires = ["wheel", "setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "qulacs"
description = "Quantum circuit simulator for research"
authors = [
{ name = "QunaSys", email = "[email protected]" }
]
readme = "README.md"
license = { file = "LICENSE" }
dependencies = [
"numpy",
"scipy"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Communications :: Email"
]
[tool.setuptools.dynamic]
version = {attr = "qulacs._version.__version__"}
[tool.setuptools_scm]
write_to = "pysrc/qulacs/_version.py"
[project.urls]
homepage = "http://docs.qulacs.org"
[project.optional-dependencies]
dev = [
"black",
"flake8",
"isort",
"mypy",
"pybind11-stubgen",
"openfermion",
"pytest"
]
test = [
"openfermion"
]
ci = [
"black",
"flake8",
"isort",
"mypy",
"pybind11-stubgen",
"openfermion",
"pytest"
]
doc = [
"mypy",
"pybind11-stubgen",
"sphinx==7.*",
"sphinx-rtd-theme",
"breathe",
"exhale",
"nbsphinx",
"myst-parser",
"sphinx-copybutton",
"ipykernel",
"sphinx-autoapi==3.*"
]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.cibuildwheel]
build-verbosity = "1"
test-command = "pytest -v -s {project}/python/tests"
test-requires = "pytest numpy scipy openfermion"
[tool.cibuildwheel.linux]
environment = { QULACS_OPT_FLAGS = "-mtune=haswell -mfpmath=both" }
before-build = """\
yum install wget -y && \
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz && \
tar -zxf boost_1_76_0.tar.gz && \
cd boost_1_76_0 && ./bootstrap.sh && ./b2 headers && \
cp -r boost /usr/local/include && rm -rf {project}/build \
"""
[tool.cibuildwheel.windows]
environment = { QULACS_OPT_FLAGS = "-mtune=haswell -mfpmath=both" }
before-test = "rm -rf {project}/build"
[tool.cibuildwheel.macos]
before-build = """\
brew upgrade && brew install -f boost && \
brew link boost && rm -rf {project}/build\
"""
archs = ["x86_64", "arm64"]
repair-wheel-command = "delocate-listdeps {wheel} && script/fix_wheel_osx.sh {wheel} {dest_dir} && delocate-listdeps {wheel}"
[tool.isort]
default_section = "THIRDPARTY"
ensure_newline_before_comments = true
force_grid_wrap = 0
force_single_line = false
include_trailing_comma = true
multi_line_output = 3
use_parentheses = true