-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/metrics-overhaul
- Loading branch information
Showing
17 changed files
with
385 additions
and
218 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .pygribjump import * | ||
from ._version import __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from pathlib import Path | ||
from .pygribjump import * | ||
|
||
with open(Path(__file__).parent / "VERSION") as f: | ||
__version__ = f.read().strip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from importlib.metadata import version | ||
import pygribjump | ||
|
||
def test_version(): | ||
assert pygribjump.__version__ == version("pygribjump") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,45 @@ addopts = "-vv -s" | |
testpaths = [ | ||
"pygribjump/tests" | ||
] | ||
|
||
# pyproject.toml | ||
|
||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pygribjump" | ||
description = "Python interface to GribJump" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name = "ECMWF", email = "[email protected]" } | ||
] | ||
urls = { "Home" = "https://github.com/ecmwf/gribjump" } | ||
dependencies = [ | ||
"cffi~=1.17", | ||
"numpy~=2.1", | ||
"pytest~=8.3", | ||
"setuptools~=75.1", | ||
"findlibs~=0.0.5", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pyyaml", | ||
"pyfdb", | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { file = ["VERSION"] } | ||
|
||
[tool.setuptools] | ||
packages = ["pygribjump"] | ||
package-dir = { "pygribjump" = "./pygribjump/src/pygribjump" } | ||
include-package-data = true | ||
zip-safe = false | ||
|
||
[tool.setuptools.package-data] | ||
"pygribjump" = ["VERSION", "pygribjump/src/pygribjump/gribjump_c.h"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.