forked from MOM6-community/sectionate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (49 loc) · 1.87 KB
/
Copy pathpyproject.toml
File metadata and controls
55 lines (49 loc) · 1.87 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
[project]
name = "sectionate"
dynamic = ["version"]
authors = [
{name="Raphael Dussin", email="raphael.dussin@gmail.com"},
{name="Henri F. Drake", email="hfdrake@uci.edu"}
]
description = "A package to sample grid-consistent sections from ocean model outputs"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = [
"dask",
"numba",
"numpy",
"scipy",
"xarray",
"xgcm == 0.9.*",
]
[project.urls]
"Homepage" = "https://github.com/MOM6-community/sectionate"
"Bugs/Issues/Features" = "https://github.com/MOM6-community/sectionate/issues"
"Sibling package" = "https://github.com/hdrake/regionate"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# The version comes from the git tag, not from a file in the tree. Releasing is
# then a single act -- tag `vX.Y.Z` and publish the GitHub Release -- with no
# second commit to remember, and no way for the tag and the built artifact to
# disagree about which version they are.
[tool.hatch.version]
source = "vcs"
# Drop the `+g<sha>` local segment. On a clean tag the version is exactly X.Y.Z
# either way, but an untagged build would otherwise carry a PEP 440 *local*
# version, which package indexes refuse outright. Untagged builds are
# `X.Y.Z.devN` instead, which an index will accept.
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
# Building writes the resolved version to `sectionate/_version.py`, which is
# gitignored but *is* included in the sdist -- so `pip install` from the sdist,
# and conda-forge's build from the PyPI sdist, both work without git present.
[tool.hatch.build.hooks.vcs]
version-file = "sectionate/_version.py"
[tool.hatch.build]
exclude = ["examples/**", "data/**"]