forked from xsuite/xsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (78 loc) · 2.36 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
[build-system]
requires = [
'setuptools>=64',
'setuptools-scm[toml]>=8',
"xtrack==0.66.1",
"xfields==0.20.3",
"xcoll==0.5.1",
"xobjects==0.4.4",
"xdeps==0.6.3",
"xpart==0.18.6",
"numpy<2.0",
]
build-backend = 'setuptools.build_meta'
[project]
name = "xsuite"
authors = [
{name = "Riccardo De Maria"},
{name = "Giovanni Iadarola"},
{name = "Szymon Łopaciuk"},
{name = "et al."},
]
description = "Integrated suite for particle accelerator simulations."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
dependencies = [
"xtrack==0.66.1",
"xfields==0.20.3",
"xcoll==0.5.1",
"xobjects==0.4.4",
"xdeps==0.6.3",
"xpart==0.18.6",
]
dynamic = ["version"]
[project.urls]
Download = "https://pypi.python.org/pypi/xsuite"
"Bug Tracker" = "https://github.com/xsuite/xsuite/issues"
Documentation = 'https://xsuite.readthedocs.io/'
"Source Code" = "https://github.com/xsuite/xsuite"
[project.scripts]
xsuite-prebuild = "xsuite.cli:main"
[tool.setuptools_scm]
# empty for default configuration
# The very non-obvious way files can be included in either sdist or bdist with
# setuptools. We need to list the file in:
# - MANIFEST.in if we want it in both sdist and bdist,
# - package_data and exclude it from the manifest if we want it in bdist only,
# - exclude_package_data if we want it in sdist only,
# - nowhere if we don't want to package them.
# Thanks to this setup an sdist can be build without the binary files, and a
# bdist can be build including them following the standard PEP 517 procedure
# using the `build` command.
[tool.setuptools]
packages = ["xsuite"]
include-package-data = true
[tool.setuptools.package-data]
xsuite = [
'lib/*.so',
'lib/*.dylib',
'lib/*.dll',
'lib/*.json',
]
[tool.cibuildwheel]
skip = [
# PyPy does not work for us
"pp*",
# i686 is not needed or supported
"*i686",
# We don't need musl libc support
"*musllinux*",
# Apparently there's a problem with with Python 3.8 on ARM64 macOS; the
# x86_64 version is run anyway pulling the x86 cffi library, building
# x86 dylibs that cannot then be imported properly by the ARM64 Python.
# Witnessed on here: https://github.com/pypa/cibuildwheel/issues/1278.
# It does not make 100% sense to me, but for now this is the workaround.
"cp38-macosx_arm64",
]
build-verbosity = 1