Skip to content
Snippets Groups Projects
Commit 733598d2 authored by Alexandre Detiste's avatar Alexandre Detiste
Browse files

remove usage of toml from patch

parent 2b35b1bc
No related branches found
No related tags found
No related merge requests found
Pipeline #865750 passed
python-firebase-messaging (0.4.4-3) unstable; urgency=medium
* Team upload.
* Remove use of python3-toml from patch
-- Alexandre Detiste <tchet@debian.org> Thu, 15 May 2025 00:00:04 +0200
python-firebase-messaging (0.4.4-2) unstable; urgency=medium
* Team upload.
......
......@@ -22,7 +22,6 @@ Build-Depends: debhelper-compat (= 13),
python3-sphinx <!nodoc>,
python3-sphinx-autodoc-typehints <!nodoc>,
python3-sphinx-rtd-theme <!nodoc>,
python3-toml <!nodoc>
Standards-Version: 4.7.0
Homepage: https://github.com/sdb9696/firebase-messaging/
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-firebase-messaging
......
......@@ -11,7 +11,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
# https://www.sphinx-doc.org/en/master/usage/configuration.html
-from importlib.metadata import version as _version
+import toml
+import tomllib
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
......@@ -22,8 +22,8 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-release = _version("firebase_messaging")
-version = _version("firebase_messaging")
+
+with open("../../pyproject.toml", "r") as f:
+ pyproject_data = toml.load(f)
+with open("../../pyproject.toml", "rb") as f:
+ pyproject_data = tomllib.load(f)
+
+version = release = pyproject_data["project"]["version"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment