-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
94 lines (79 loc) · 3.1 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
[project]
name = "brain-indexer"
description = "A spatial index implementation for spheres, morphologies and synapses"
readme = "README.md"
authors = [{ name="Blue Brain Project", email = "bbp-ou-hpc@epfl.ch" } ]
license = {"file" = "LICENSE.txt"}
# maintainer is the field chosen for docs `contributors`
maintainers = [{name="Fernando Pereira"}, {name="Antonio Bellotta"}, {name="Luc Dominic Grosheintz-Laval"}]
dynamic = ["version"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: C++",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: Apache Software License",
]
requires-python = ">=3.9"
dependencies = ["numpy>=1.13.1",
"numpy-quaternion",
# The reason we can"t use 0.1.15 is that it wont
# behave nicely for empty selections, see
# https://github.com/BlueBrain/libsonata/pull/232
"libsonata!=0.1.15",
"morphio",
# original docopt is deprecated
"docopt-ng",
"tqdm",
]
optional-dependencies.mpi = ["mpi4py"]
[project.scripts]
brain-indexer-nodes = "brain_indexer.commands:brain_indexer_nodes"
brain-indexer-synapses = "brain_indexer.commands:brain_indexer_synapses"
brain-indexer-circuit = "brain_indexer.commands:brain_indexer_circuit"
brain-indexer-compare="brain_indexer.commands:brain_indexer_compare"
[project.urls]
Repository = "https://github.com/BlueBrain/brain-indexer.git"
Tracker = "https://github.com/BlueBrain/brain-indexer/issues"
Homepage = "https://github.com/BlueBrain/brain-indexer"
[build-system]
requires = [
# this is because Spack does not yet have version 0.8, which
# replaced `scikit-build.cmake.minimum-version` with
# `scikit-build.cmake.version`
"scikit-build-core<0.8",
"setuptools-scm>=8.0",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = ["src/brain_indexer"]
logging.level = "DEBUG"
[tool.scikit-build.cmake]
verbose = true
minimum-version = "3.5.0"
[tool.scikit-build.cmake.define]
SI_UNIT_TESTS="OFF"
[tool.setuptools_scm]
[tool.cibuildwheel]
skip = ["cp3{6,7,8}-*", "pp*", "*-win32", "*-manylinux_i686", "*-musllinux_i686", "*-musllinux_x86_64", "*-musllinux_aarch64"]
test-requires = ["pytest", "pytest-mpi"]
test-command = ["python -m pytest {project}/tests"]
[tool.cibuildwheel.config-settings]
# for redistributable wheels, MPI support should not be enabled (until MPI settles on a standard ABI: https://github.com/mpi-forum/mpi-issues/issues/751)
"cmake.define.SI_MPI"="OFF"
[tool.cibuildwheel.linux]
before-all = """
yum install -y wget
wget -qO- https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.tar.bz2 | tar xjf -
cd boost_1_85_0
./bootstrap.sh
./b2 --prefix=/opt/boost --with-serialization --with-filesystem --with-test install
"""
[tool.cibuildwheel.linux.environment]
CMAKE_PREFIX_PATH = "/opt/boost"
SKBUILD_CMAKE_DEFINE = "CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON"
[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
[tool.pytest.ini_options]
testpaths = "tests/"