-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
90 lines (75 loc) · 2.17 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
[build-system]
requires = [
"pip",
"setuptools>=42",
"scikit-build",
"cmake>=3.20",
"ninja",
"pybind11>=2.8.0",
"libcasm-global>=2.0.5",
"libcasm-xtal>=2.0a12",
"libcasm-composition>=2.0a4",
"libcasm-clexulator>=2.0a7",
"libcasm-configuration>=2.0a7",
"libcasm-monte>=2.0a3",
]
build-backend = "setuptools.build_meta"
[project]
name = "libcasm-clexmonte"
version = "2.0a4"
authors = [
{ name="CASM developers", email="[email protected]" },
]
description = "CASM cluster expansion Monte Carlo"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "LGPL2.1+"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Topic :: Scientific/Engineering",
]
dependencies = [
"libcasm-global>=2.0.5",
"libcasm-xtal>=2.0a12",
"libcasm-composition>=2.0a4",
"libcasm-clexulator>=2.0a7",
"libcasm-configuration>=2.0a7",
"libcasm-monte>=2.0a3",
"numpy",
]
[project.urls]
Homepage = "https://prisms-center.github.io/CASMcode_docs/"
Repository = "https://github.com/prisms-center/CASMcode_clexmonte"
[tool.ruff.lint]
select = ["NPY201", "E", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
known-first-party = ["libcasm", "casm"]
[tool.cibuildwheel]
# Build for python3.9, 3.10, 3.11
build = "cp39-* cp310-* cp311-* cp312-*"
# Build for cpython only
skip = "pp*"
# Checkout submodules
before-all = "git submodule update --init --recursive"
# Need libcasm dependencies at wheel repair stage
before-build = "pip install -r build_requirements.txt"
# Testing
test-requires = "pytest pytest-datadir pytest-helpers-namespace"
test-command = [
"export CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)",
"echo $CASM_PREFIX",
"pytest -rsap {project}/python/tests",
]
[tool.cibuildwheel.macos]
# C++17
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" }
repair-wheel-command = ""
[tool.cibuildwheel.linux]
# dependencies do not build for musl
skip = ["pp* *musllinux*"]
repair-wheel-command = ""