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
|
# pytest
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vv -s"
testpaths = [
"pymetkit/tests"
]
# pyproject.toml
[build-system]
requires = ["setuptools", "wheel", "cffi"]
build-backend = "setuptools.build_meta"
[project]
name = "pymetkit"
description = "Python interface for metkit"
dynamic = ["version"]
authors = [
{ name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "software.support@ecmwf.int" },
]
license = { text = "Apache License Version 2.0" }
requires-python = ">=3.10"
dependencies = [
"cffi",
"metkitlib",
"findlibs"
]
[tool.setuptools.dynamic]
version = { file = ["VERSION"] }
[tool.setuptools]
packages = ["pymetkit"]
package-dir = { "pymetkit" = "./python/pymetkit/src/pymetkit" }
include-package-data = true
zip-safe = false
[tool.setuptools.package-data]
"pymetkit" = [
"VERSION",
"metkit_c.h"
]
[project.optional-dependencies]
tests = ["pytest"]
|