From 87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 26 Jul 2026 17:40:07 +0200 Subject: oexport: Add project.scripts entry point 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 --- pyproject.toml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pyproject.toml') 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"] -- cgit v1.2.3