Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-firebase-messaging
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
python-firebase-messaging
Commits
733598d2
Commit
733598d2
authored
3 months ago
by
Alexandre Detiste
Browse files
Options
Downloads
Patches
Plain Diff
remove usage of toml from patch
parent
2b35b1bc
No related branches found
No related tags found
No related merge requests found
Pipeline
#865750
passed
3 months ago
Stage: provisioning
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/control
+0
-1
0 additions, 1 deletion
debian/control
debian/patches/03-docs-read-version-from-pyproject.diff
+3
-3
3 additions, 3 deletions
debian/patches/03-docs-read-version-from-pyproject.diff
with
10 additions
and
4 deletions
debian/changelog
+
7
−
0
View file @
733598d2
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.
...
...
This diff is collapsed.
Click to expand it.
debian/control
+
0
−
1
View file @
733598d2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
debian/patches/03-docs-read-version-from-pyproject.diff
+
3
−
3
View file @
733598d2
...
...
@@ -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 toml
lib
# -- 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", "r
b
") as f:
+ pyproject_data = toml
lib
.load(f)
+
+version = release = pyproject_data["project"]["version"]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment