aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2026-09-19 17:35:14 +0200
committerDennis Fink2026-09-19 17:35:14 +0200
commit4c2962f2c73e775f2d0a26064f4ca9bfeb1c92b7 (patch)
tree754d33773cc521ed66afee8ac5c503784af99d4c
parent3a52d4cf01e4443aba1b9f78152f673330274295 (diff)
downloadprometheus-borgmatic-exporter-4c2962f2c73e775f2d0a26064f4ca9bfeb1c92b7.tar.gz
prometheus-borgmatic-exporter-4c2962f2c73e775f2d0a26064f4ca9bfeb1c92b7.zip
chore(release): prepare v2.0.0v2.0.0
Update the project version and revision date for the 2.0.0 release. Complete SPDX licensing metadata across project files and align the supported Python classifiers with the new Python 3.12 minimum.
-rw-r--r--.gitignore4
-rw-r--r--README.md6
-rw-r--r--prometheus_borgmatic_exporter/__init__.py5
-rw-r--r--prometheus_borgmatic_exporter/__main__.py4
-rw-r--r--prometheus_borgmatic_exporter/metrics.py4
-rw-r--r--prometheus_borgmatic_exporter/types.py1
-rw-r--r--pyproject.toml5
-rw-r--r--uv.lock.license3
8 files changed, 26 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 5548a54..b0e6f48 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
*.prom
# Created by https://www.toptal.com/developers/gitignore/api/git,python,windows,linux,macos,vim
diff --git a/README.md b/README.md
index 9060b6f..63a7de1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
# prometheus-borgmatic-exporter
A Prometheus metrics exporter for [borgmatic](https://torsion.org/borgmatic/),
diff --git a/prometheus_borgmatic_exporter/__init__.py b/prometheus_borgmatic_exporter/__init__.py
index 8bfd629..c72012a 100644
--- a/prometheus_borgmatic_exporter/__init__.py
+++ b/prometheus_borgmatic_exporter/__init__.py
@@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: BSD-3-Clause
-
import json
import os
import subprocess
@@ -18,10 +17,10 @@ from prometheus_client import write_to_textfile
from . import metrics, types
from .cli import FlexibleColorOption, debug, error, msg, verbose, warn
-VERSION = "1.0.0"
+VERSION = "2.0.0"
DESCRIPTION = "Collect borgmatic repository metrics and export them for Prometheus."
DATE_OF_CREATION = "2021-06-12"
-DATE_OF_REVISION = "2026-05-01"
+DATE_OF_REVISION = "2026-09-19"
AUTHOR = "Dennis Fink <me+coding@dennisfink.me>"
LICENSE = "BSD-3-Clause"
diff --git a/prometheus_borgmatic_exporter/__main__.py b/prometheus_borgmatic_exporter/__main__.py
index b5dc8e8..08d2010 100644
--- a/prometheus_borgmatic_exporter/__main__.py
+++ b/prometheus_borgmatic_exporter/__main__.py
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
from . import prometheus_borgmatic_exporter
prometheus_borgmatic_exporter()
diff --git a/prometheus_borgmatic_exporter/metrics.py b/prometheus_borgmatic_exporter/metrics.py
index 683c179..8dcc0e2 100644
--- a/prometheus_borgmatic_exporter/metrics.py
+++ b/prometheus_borgmatic_exporter/metrics.py
@@ -1,9 +1,9 @@
-"""Prometheus metric definitions for the borgmatic exporter."""
-
# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
#
# SPDX-License-Identifier: BSD-3-Clause
+"""Prometheus metric definitions for the borgmatic exporter."""
+
from prometheus_client import CollectorRegistry, Gauge, Info
REGISTRY = CollectorRegistry(auto_describe=True)
diff --git a/prometheus_borgmatic_exporter/types.py b/prometheus_borgmatic_exporter/types.py
index 8b82fbe..86be8d7 100644
--- a/prometheus_borgmatic_exporter/types.py
+++ b/prometheus_borgmatic_exporter/types.py
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
#
# SPDX-License-Identifier: BSD-3-Clause
+
"""TypedDict definitions for borgmatic JSON output structures."""
from typing import Any, TypedDict
diff --git a/pyproject.toml b/pyproject.toml
index 74d5892..98052a9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
[project]
name = "prometheus-borgmatic-exporter"
dynamic = ["version"]
@@ -16,7 +20,6 @@ dependencies = [
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
- "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Environment :: Console",
diff --git a/uv.lock.license b/uv.lock.license
new file mode 100644
index 0000000..5a44073
--- /dev/null
+++ b/uv.lock.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+
+SPDX-License-Identifier: BSD-3-Clause