aboutsummaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-07-26 17:40:07 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2026-07-26 21:42:41 +0200
commit87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b (patch)
tree2cf32b17e8f54a0edba70132d875209d980937b3 /pyproject.toml
parent6cb72c39bd35046c1cbdfde47c462d646b49c078 (diff)
downloadouroboros-metrics-87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b.tar.gz
ouroboros-metrics-87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b.zip
oexport: Add project.scripts entry pointHEADmaster
Add a script entry point so the correct shebang is set at install and the exporter can be run as `oexport`. Update style and harmonize docstrings. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml14
1 files changed, 8 insertions, 6 deletions
diff --git a/pyproject.toml b/pyproject.toml
index ef1f92d..9ba8b28 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,14 +1,16 @@
+# SPDX-FileCopyrightText: 2021 - 2026 Dimitri Staessens
+# SPDX-License-Identifier: BSD-3-Clause
+
[project]
name = "ouroboros-metrics"
dynamic = ["version"]
-dependencies = [
- "influxdb-client[ciso]",
- "pytz",
-]
+dependencies = ["influxdb-client[ciso]", "pytz"]
+
+[project.scripts]
+oexport = "oexport:main"
[tool.setuptools]
-py-modules = ["ribreader"]
-script-files = ["oexport.py"]
+py-modules = ["ribreader", "oexport"]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]