-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (158 loc) · 5.04 KB
/
pyproject.toml
File metadata and controls
169 lines (158 loc) · 5.04 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
# On utilise scikit-build-core qui est fait pour piloter CMake depuis pyproject.toml
requires = ["scikit-build-core>=0.5.0", "pybind11"]
build-backend = "scikit_build_core.build"
[project]
name = "lightsim2grid"
dynamic = ["version"]
description = "LightSim2grid implements a c++ backend targeting the Grid2Op platform."
readme = "README.md"
requires-python = ">=3.7"
authors = [
{ name = "Benjamin Donnot", email = "benjamin.donnot@rte-france.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
]
dependencies = [
"numpy",
]
[project.urls]
Homepage = "https://github.com/Grid2op/lightsim2grid"
Repository = "https://github.com/Grid2op/lightsim2grid"
# Configuration spécifique à scikit-build-core
[tool.scikit-build]
# Répertoire où CMake va chercher le CMakeLists.txt (par défaut la racine)
cmake.source-dir = "."
# La destination d'installation doit correspondre au nom du package importable
wheel.packages = ["lightsim2grid"]
# Pour un build verbose lors du debug
build.verbose = true
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "./lightsim2grid/__init__.py"
regex = '''^__version__\s*=\s*"(?P<version>[^"]+)"$'''
result = "{version}"
# On peut passer des arguments à CMake si nécessaire
[tool.scikit-build.cmake.define]
CMAKE_BUILD_TYPE = "Release"
# Control what lands in the source distribution (sdist / .tar.gz).
# scikit-build-core uses `git ls-files --recurse-submodules` as the file list,
# so MANIFEST.in is *not* read — all filtering must be done here.
[tool.scikit-build.sdist]
exclude = [
# files in git not usefull for release
".gitignore",
".gitmodules",
".readthedocs.yml",
"basic_perf.py",
"compare_pandapower.py",
"env_compile_all.sh",
"Makefile",
"old_setup.py.bk",
"pyproject.toml.bk",
"requirements.txt",
"requirements_compile_cli.txt",
# CI configuration — irrelevant to end users building from source
".github",
".circleci",
# Developer-only directories
"benchmarks",
"docs",
"documentation",
"examples",
"build_cmake",
"old",
"wheelhouse",
# SuiteSparse submodule — only KLU and its direct dependencies are used
# (SuiteSparse_config, AMD, BTF, COLAMD, CXSparse, KLU are kept).
"SuiteSparse/CAMD",
"SuiteSparse/CCOLAMD",
"SuiteSparse/CHOLMOD",
"SuiteSparse/CSparse",
"SuiteSparse/Example",
"SuiteSparse/GraphBLAS",
"SuiteSparse/LAGraph",
"SuiteSparse/LDL",
"SuiteSparse/MATLAB_Tools",
"SuiteSparse/Mongoose",
"SuiteSparse/ParU",
"SuiteSparse/RBio",
"SuiteSparse/SPEX",
"SuiteSparse/SPQR",
"SuiteSparse/TestConfig",
"SuiteSparse/UMFPACK",
"SuiteSparse/ssget",
# Generated / installed output directories inside the submodule
"SuiteSparse/bin",
"SuiteSparse/build",
"SuiteSparse/include",
"SuiteSparse/lib",
"SuiteSparse/share",
# SuiteSparse kept components — trim generated output, demos, docs,
# MATLAB interfaces, and test data from each; keep Source/, Include/,
# Config/ (used by cmake configure_file), CMakeLists.txt, Makefile, README.
"SuiteSparse/SuiteSparse_config/build",
"SuiteSparse/AMD/build",
"SuiteSparse/AMD/Demo",
"SuiteSparse/AMD/Doc",
"SuiteSparse/AMD/Lib",
"SuiteSparse/AMD/MATLAB",
"SuiteSparse/BTF/build",
"SuiteSparse/BTF/Doc",
"SuiteSparse/BTF/Lib",
"SuiteSparse/BTF/MATLAB",
"SuiteSparse/COLAMD/build",
"SuiteSparse/COLAMD/Demo",
"SuiteSparse/COLAMD/Doc",
"SuiteSparse/COLAMD/Lib",
"SuiteSparse/COLAMD/MATLAB",
"SuiteSparse/CXSparse/build",
"SuiteSparse/CXSparse/Demo",
"SuiteSparse/CXSparse/Doc",
"SuiteSparse/CXSparse/Lib",
"SuiteSparse/CXSparse/MATLAB",
"SuiteSparse/CXSparse/Matrix",
"SuiteSparse/CXSparse/Tcov",
"SuiteSparse/KLU/build",
"SuiteSparse/KLU/Demo",
"SuiteSparse/KLU/Doc",
"SuiteSparse/KLU/Lib",
"SuiteSparse/KLU/MATLAB",
"SuiteSparse/KLU/Matrix",
"SuiteSparse/KLU/Tcov",
"SuiteSparse/KLU/User",
# Eigen submodule — only eigen/Eigen/ headers + licenses + README are needed.
# Exclude everything else: build tooling, tests, demos, docs, BLAS/LAPACK
# plugins (not used by lightsim2grid), and all VCS/CI dotfiles.
"eigen/bench",
"eigen/blas",
"eigen/ci",
"eigen/cmake",
"eigen/debug",
"eigen/demos",
"eigen/doc",
"eigen/failtest",
"eigen/lapack",
"eigen/scripts",
"eigen/test",
"eigen/unsupported",
"eigen/.gitlab",
"eigen/.clang-format",
"eigen/.git-blame-ignore-revs",
"eigen/.gitattributes",
"eigen/.gitignore",
"eigen/.gitlab-ci.yml",
"eigen/CHANGELOG.md",
"eigen/CMakeLists.txt",
"eigen/CTestConfig.cmake",
"eigen/CTestCustom.cmake.in",
"eigen/eigen3.pc.in",
"eigen/INSTALL",
"eigen/signature_of_eigen3_matrix_library",
]