-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (49 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
55 lines (49 loc) · 1.63 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
[build-system]
requires = ["scikit-build-core >=0.11", "pybind11 >=3.0"]
build-backend = "scikit_build_core.build"
[project]
dynamic = ["version"]
name = "cytnx"
maintainers = [
{ name = "Kai-Hsin Wu", email = "kaihsinwu@gmail.com" },
{ name = "Chang-Teng Lin" },
{ name = "Hsu Ke" },
]
description = "A tensor network library"
readme = "Readme.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.9"
keywords = ["tensor", "network", "physics"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Mathematics",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
]
dependencies = ["numpy >=1.18", "graphviz", "beartype"]
[project.urls]
Documentation = "https://cytnx-dev.github.io/Cytnx_doc"
Repository = "https://github.com/Cytnx-dev/Cytnx.git"
Issues = "https://github.com/Cytnx-dev/Cytnx/issues"
[tool.scikit-build]
minimum-version = "0.11"
wheel.packages = ["cytnx"]
cmake.args = [
# Use the default preset defined in CMakePresets.json
"--preset=openblas-cpu",
# TODO: Remove setting of generator to support builuding on Windows.
# scikit-build uses Ninja as the default cmake generator. However, Ninja
# conflicts against the build process of HPTT.
"-G Unix Makefiles",
]
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "version.cmake"
regex = '''
set\(\w+?VERSION_MAJOR\s+(?P<major>\d+)\)
set\(\w+?VERSION_MINOR\s+(?P<minor>\d+)\)
set\(\w+?VERSION_PATCH\s+(?P<patch>\d+)\)
'''
result = "{major}.{minor}.{patch}"