forked from qulacs/qulacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (84 loc) · 2.23 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
[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 = "qulacs@qunasys.com" }
]
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://www.qulacs.org"
[project.optional-dependencies]
dev = [
"black",
"flake8",
"openfermion",
"mypy",
"pybind11-stubgen"
]
test = [
"openfermion"
]
ci = [
"openfermion",
"mypy",
"pybind11-stubgen"
]
doc = [
"sphinx",
"sphinx-rtd-theme",
"breathe",
"exhale",
"nbsphinx",
"myst-parser",
"sphinx-copybutton",
"ipykernel",
]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.cibuildwheel]
environment = { QULACS_OPT_FLAGS = "-mtune=haswell -mfpmath=both" }
build-verbosity = "1"
test-command = "python {project}/python/test/test_qulacs.py"
test-requires = "numpy scipy openfermion"
[tool.cibuildwheel.linux]
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]
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}"