forked from atcollab/at
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithubproject.toml
More file actions
84 lines (72 loc) · 2.5 KB
/
githubproject.toml
File metadata and controls
84 lines (72 loc) · 2.5 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
# This configuration is used to build wheels with GitHub Actions
# It differs from the standard pyproject.toml by fixing the numpy versions
# to make sure that the binaries are compiled with the oldest compatible
# version
[build-system]
requires = [
"numpy ~= 1.16.6;python_version<'3.8'",
"numpy ~= 1.17.3;python_version=='3.8'",
"numpy ~= 1.19.3;python_version=='3.9'",
"numpy ~= 1.21.3;python_version>='3.10'",
"numpy ~= 1.23.4;python_version>='3.11'",
"setuptools >= 62",
"setuptools_scm >= 7",
"mpi4py; extra=='mpi'", # Does not work yet, so we need in-tree backend
"wheel",
]
# build-backend = "setuptools.build_meta"
build-backend = "backend"
backend-path = ["_custom_build"]
[project]
name = "accelerator-toolbox"
authors = [{name="The AT collaboration", email="atcollab-general@lists.sourceforge.net"}]
description = "Accelerator Toolbox"
readme = "pyat/README.rst"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
requires-python = ">=3.7"
dependencies = [
"importlib-resources;python_version<'3.9'",
"numpy>=1.16.6",
"scipy>=1.4.0"
]
[project.urls]
GitHub = "https://github.com/atcollab/at"
Home="https://atcollab.github.io/at/"
[project.optional-dependencies]
mpi = ["mpi4py"]
plot = ["matplotlib"]
dev = ["pytest >= 2.9", "pytest-lazy-fixture", "pytest-cov", "flake8"]
doc = ["Sphinx ~= 5.3", "myst-parser", "pydata-sphinx-theme ~= 0.11.0", "sphinx-copybutton"]
# tool.setuptools is still in BETA, so we keep temporarily setup.cfg
#[tool.setuptools]
#zip-safe = false
#include-package-data = false
#[tool.setuptools.packages.find]
#where = ["pyat"]
#namespaces = false
#[tool.setuptools.package-data]
#machine_data = ["*.m", "*.mat"]
[tool.cibuildwheel]
# Pypy does not have Scipy so we cannot support it.
build = ["cp3{7,8,9}*", "cp310*"]
build-verbosity = "1"
# "build" frontend fails on windows
# build-frontend = "build"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
[tool.cibuildwheel.linux]
# Pass the detected PyAT version to the linux docker containers
environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
[tool.setuptools_scm]
write_to = "pyat/at/_version.py"
git_describe_command = "git describe --dirty --tags --long --match pyat-[0-9]*"
fallback_version = "0.0.0"