-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
131 lines (120 loc) · 3.8 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
# Minimum requirements for the build system to execute.
# Keep this on a single line for the grep magic of build scripts to work
requires = ["setuptools>=61", "wheel", "numpy", "gitpython", "saxonche","packaging", "tomli;python_version<'3.11'", "setuptools_scm>8"]
build-backend = "setuptools.build_meta"
[project]
name = "imas-python"
authors = [
{name = "Karel Lucas van de Plassche", email = "[email protected]"},
{name = "Daan van Vugt", email = "[email protected]"},
{name = "Maarten Sebregts", email = "[email protected]"},
{name = "ITER Organization"},
{email = "[email protected]"},
]
description = "Pythonic wrappers for the IMAS Access Layer"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.7"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Environment :: X11 Applications",
"Framework :: Flake8",
"Framework :: IPython",
"Framework :: Matplotlib",
"Framework :: Pytest",
"Framework :: Sphinx",
# Custom trove classifiers are not allowed, and newer versions of python setuptools will fail to build
# when classifiers other than those listed on: https://pypi.org/classifiers/ are included
# "Framework :: IMAS",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Unix Shell",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
# FIXME: numpy 2.0 compatibility
"numpy>=1.15.4,<2",
"rich",
"scipy",
"click",
"importlib_resources;python_version<'3.9'",
"packaging",
"xxhash >= 2",
"saxonche",
"gitpython"
]
[project.optional-dependencies]
# these self-dependencies are available since pip 21.2
all = [
"imas[test,docs,imas-core,netcdf,h5py]"
]
docs = [
"sphinx>=6.0.0,<7.0.0",
"sphinx-autosummary-accessors>=0.1.2",
"sphinx-immaterial>=0.11.0,<0.12",
"sphinx-click",
]
# TODO enable when imas-core is available on pypi
# imas-core = [ "imas-core@git+https://github.com/iterorganization/imas-core.git@main" ]
netcdf = [
"netCDF4>=1.4.1",
]
h5py = [
"h5py",
]
test = [
"pytest>=5.4.1",
"pytest-cov>=0.6",
"pytest-xdist",
"pytest-randomly",
"matplotlib",
"asv == 0.6.1",
# virtualenv is a dependency of asv
"virtualenv",
# Pint and xarray are used in training snippets
"pint",
"xarray",
]
[project.scripts]
build_DD = "imas.dd_helpers:prepare_data_dictionaries"
imas = "imas.command.cli:cli"
[project.urls]
homepage = "https://github.com/iterorganization/imas-python"
[tool.setuptools.packages.find]
where = ["."]
include = ["imas*"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--strict-markers"
markers = [
"cli: Tests for the command line interface.",
"slow: Slow tests.",
]
testpaths = "imas"
[tool.setuptools_scm]
write_to = "imas/_version.py"
local_scheme = "no-local-version"
[tool.isort]
profile = "black"