aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2025-02-15 15:49:53 -0400
committerDavid Bremner <david@tethera.net>2025-02-22 07:10:13 -0400
commit8bc1fccbf9c0dfea8c1d04a0727153436665d44a (patch)
tree7e664e6e2ea67e51491a5dca68f6b81b1d01b0e7
parent84e53f70229c42f82ca86b5b1b88a4afeaff7eae (diff)
bindings/python: strip ~ from python version
Inspired by a suggestion of Xiyue Deng, this change ensures that the python bindings have a version that recent setuptools is happy with. This will have the unfortunate side effect of the python view of the version number differing from the rest of notmuch for the pre-releases. The alternative would be to transform the version numbers for the Debian packages for the pre-releases, as there is now no version scheme that works for both, since setuptools started rejecting versions with "~" in them. If we decide to go the latter way in the future, this change is easy to revert.
-rw-r--r--bindings/python-cffi/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python-cffi/setup.py b/bindings/python-cffi/setup.py
index 55fb2d24..3719c86c 100644
--- a/bindings/python-cffi/setup.py
+++ b/bindings/python-cffi/setup.py
@@ -2,7 +2,7 @@ import setuptools
from _notmuch_config import *
with open(NOTMUCH_VERSION_FILE) as fp:
- VERSION = fp.read().strip()
+ VERSION = fp.read().strip().replace('~', '')
setuptools.setup(
name='notmuch2',