mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
python-cffi: read version from notmuch version file
This keeps it in sync with the main notmuch version which is less confusing to users.
This commit is contained in:
parent
af51e67127
commit
81057164cd
1 changed files with 9 additions and 1 deletions
|
@ -1,9 +1,17 @@
|
|||
import pathlib
|
||||
|
||||
import setuptools
|
||||
|
||||
|
||||
THIS_FILE = pathlib.Path(__file__).absolute()
|
||||
PROJECT_ROOT = THIS_FILE.parent.parent.parent
|
||||
with open(PROJECT_ROOT.joinpath('version')) as fp:
|
||||
VERSION = fp.read().strip()
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name='notmuch2',
|
||||
version='0.1',
|
||||
version=VERSION,
|
||||
description='Pythonic bindings for the notmuch mail database using CFFI',
|
||||
author='Floris Bruynooghe',
|
||||
author_email='flub@devork.be',
|
||||
|
|
Loading…
Reference in a new issue