-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (77 loc) · 2.59 KB
/
pyproject.toml
File metadata and controls
96 lines (77 loc) · 2.59 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
# (C) Copyright 2024 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
# TODO migrate this to python/pymultio once the ci action is modular enough. Don't forget to update paths in:
# - license-files (symlink two dirs above)
# - testpaths (remove python/)
# - package-dir (remove python/)
# - version_file (remove python/)
# as well as .github/workflows/cd-pypi.yaml `working-directory` to point to python/pymultio (instead of default ./)
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vv -s"
testpaths = [
"python/pymultio/tests"
]
[build-system]
requires = [ "setuptools>=80" ]
build-backend = "setuptools.build_meta"
[project]
name = "pymultio"
readme = "README.md"
description = "A Python interface to multio."
keywords = [ "multio", "multiopython", "tools" ]
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [
{ name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "software.support@ecmwf.int" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
]
dynamic = [ "version" ]
dependencies = [
"cffi",
"pydantic",
"pyyaml",
"numpy",
"findlibs",
]
optional-dependencies.all = [
"multiolib", # TODO we need to make this dynamic, effectively pin to the exact version
]
optional-dependencies.tests = [ "pytest", "pytest-cov", "pytest-flakes" ]
urls.Homepage = "https://github.com/ecmwf/multio/"
urls.Issues = "https://github.com/ecmwf/multio/issues"
urls.Repository = "https://github.com/ecmwf/multio/"
[tool.setuptools]
include-package-data = true
zip-safe = true
[tool.setuptools.dynamic]
version = { file = ["VERSION"] }
[tool.setuptools.packages.find]
include = ["multio*"]
where = ["./python/pymultio/src"]
[tool.setuptools.package-data]
multio = ["*.h"]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
[tool.uv]
prerelease = "allow"