[build-system]
requires = [
    "setuptools>=61.0",   # provides the "setuptools.build_meta" backend
    "wheel"               # needed for the wheel building step
]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">= 3.9"
name = "python3-damaris"
dynamic = ["version"]
description = "Python version 3 frontend for DAMARIS (DArmstadt MAgnetic Resonance Instrument Software)"
license = {text = "GPL-2.0"}
keywords = ["NMR", "data-processing"]
readme = {file = "README", content-type = "text/plain"}
dependencies = [
    "scipy >= 0.14.0",
    "numpy >= 1.8.2, < 2.0",
    "tables >= 3.1.1",
    "matplotlib >= 1.4.1, <= 3.6",
    "pyxdg",
    "PyGObject >= 3.14.0, <= 3.51.0"
]
authors = [
  {name = "Achim Gädke"},
  {name = "Christopher Schmitt"},
  {name = "Christian Tacke"},
  {name = "Joachim Beerwerth"},
  {name = "Markus Rosenstihl", email = "markus.rosenstihl@pkm.tu-darmstadt.de"}
]
maintainers = [
  {name = "Markus Rosenstihl", email = "markus.rosenstihl@pkm.tu-darmstadt.de"}
]

[project.scripts]
DAMARIS3 = "damaris.__main__:main"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
"damaris.gui" = ["DAMARIS3.png", "DAMARIS3.ico", "damaris.xml", "python.xml", "damaris3.glade"]

[tool.setuptools.dynamic]
version = {attr = "damaris.__version__"}

[tool.setuptools.data-files]
"share/python3-damaris/images" = ["src/damaris/gui/DAMARIS3.png", "src/damaris/gui/DAMARIS3.ico"]
#"share/python3-damaris/doc" = ["doc/index.html"]
#"share/python3-damaris/doc/reference-html" = ["doc/reference-html/*"]
#"share/python3-damaris/doc/tutorial-html" = ["doc/tutorial-html/*"]


