Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (88 loc) · 3.7 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (88 loc) · 3.7 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
[build-system]
requires = ["meson>=1.0.0", "meson-python>=0.13.0", "ninja", "pyleri>=1.3.3", "numpy>=1.13.0"]
build-backend = "mesonpy"
[project]
name = "extxyz"
description = "Extended XYZ file format tools"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "James Kermode", email = "james.kermode@gmail.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C",
"Programming Language :: Fortran",
]
requires-python = ">=3.10"
dynamic = [ "version" ]
dependencies = [
"numpy>=1.13.0",
"pyleri>=1.3.3",
]
[project.optional-dependencies]
test = [
"pytest",
]
[project.scripts]
extxyz = "extxyz.cli:main"
[project.urls]
documentation = "http://libatoms.github.io/extxyz/"
repository = "https://github.com/libAtoms/extxyz"
[tool.meson-python]
# wheel.exclude is matched against paths under Meson's install locations
# ({bindir}, {libdir_shared}, ...). Patterns:
# - "**/*.lib": phantom MSVC import library that Meson lists in the
# install plan but python.extension_module() never actually creates;
# without this meson-python errors with FileNotFoundError on Windows.
# - "**/extxyz.dll", "**/libextxyz.*": the standalone libextxyz shared
# library is for non-Python C consumers — it's installed by
# `meson install` for that audience but does not belong in the wheel.
# On Windows, leaving it in trips meson-python's
# "tool.meson-python.allow-windows-internal-shared-libs" check.
wheel.exclude = [
"**/*.lib",
"**/extxyz.dll",
"**/libextxyz.*",
]
[tool.cibuildwheel]
test-requires = "pytest"
# Assert the wheel actually shipped the C-API fast read path before running the
# suite, so a silent ctypes fallback fails the build instead of shipping slow.
test-command = "python {package}/tools/assert_c_read_path.py && pytest -v {package}/tests"
[tool.cibuildwheel.linux]
before-all = "which yum && yum install -y pcre2-devel zlib-devel"
[tool.cibuildwheel.macos]
# Build a static PCRE2 from source at MACOSX_DEPLOYMENT_TARGET rather than using the
# Homebrew bottle (which is compiled for the runner's newest macOS and would make the
# wheel fail to load on older macOS). meson links it into _extxyz.so via PKG_CONFIG_PATH.
before-all = "bash {project}/tools/wheels/build_pcre2_macos.sh"
[tool.cibuildwheel.macos.environment]
# 11.0 (Big Sur) is the oldest macOS that runs on arm64; build for it so wheels install
# on all supported macOS. Keep in sync with tools/wheels/build_pcre2_macos.sh.
MACOSX_DEPLOYMENT_TARGET = "11.0"
PKG_CONFIG_PATH = "/tmp/pcre2/lib/pkgconfig"
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
[tool.cibuildwheel.windows.environment]
CMAKE_PREFIX_PATH = "C:/vcpkg/installed/x64-windows"
PKG_CONFIG_PATH = "C:/vcpkg/installed/x64-windows/lib/pkgconfig"
PCRE2_ROOT = "C:/vcpkg/installed/x64-windows"
LIB = "C:/vcpkg/installed/x64-windows/lib"
INCLUDE = "C:/vcpkg/installed/x64-windows/include"
PATH = "C:/vcpkg/installed/x64-windows/bin;C:/Program Files/Git/bin;C:/Windows/System32;C:/Windows;$PATH"