From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id HmOzFKWJ7F6qaQAA0tVLHw (envelope-from ) for ; Fri, 19 Jun 2020 09:47:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qBFUEKWJ7F6vSwAAB5/wlQ (envelope-from ) for ; Fri, 19 Jun 2020 09:47:17 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE1F2940D04 for ; Fri, 19 Jun 2020 09:47:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3CE1B6DE0F22; Fri, 19 Jun 2020 02:47:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b69vWCKa1qjs; Fri, 19 Jun 2020 02:47:13 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 1A0866DE0F28; Fri, 19 Jun 2020 02:47:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B4EEF6DE0F22 for ; Fri, 19 Jun 2020 02:47:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fsykp_vFTK_t for ; Fri, 19 Jun 2020 02:47:09 -0700 (PDT) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by arlo.cworth.org (Postfix) with ESMTPS id CCE096DE0F28 for ; Fri, 19 Jun 2020 02:47:09 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id w16so9525080ejj.5 for ; Fri, 19 Jun 2020 02:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SqPtQExyPHUL7RiA2HMnuo7j3k5tKO58sRloLulDnBw=; b=hu9KguFhtJsNTkS9COmOiRerdnbm42T557Hpcmnwv5mrfotNo36tiSimpa1ji/UDmi bXIcL1Fp6qLz+8h43kMff91EPIyPO0ZHDHfJvjW0vVbPZot4d03dr8L13+UCD4wPsJvK CU6lSclx61zplpqa+1fNPCJoWh5Jckth6yLt0fhwLP38QsAAn2OxwjK5b0g9sg8gQnYu 4mUcirD2Sd2JkgyogQPtnGxnzmVVthLSfNf6EwYP/aGKNrW9PhE7es07fM1bl5K1iuAq DhPyxlLtTGDh1BgaPE3YcI4yA4MnH5Xp4PkmBGwXR6gNbBAVfsdMEbkM539fbKcOjeq0 CkUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=SqPtQExyPHUL7RiA2HMnuo7j3k5tKO58sRloLulDnBw=; b=jOTsD01C4LgTzlJ/dPKh4yYlvKm+vJ370AHSeX9gLo9jm3Ng2+aPBf8+yxAaJtJf7i gcbID+zPpgXsFYpOFYU/+yBKjD/6/Lm/l7nbQ4oGK9bcvNiVEeLiYHmMKWub4ramjlnF DmsKfObWWc9zngl0XWvpA4p11bf0+Yzvui4mFelOiZ1xgZXl+oE72lHqr5Gkg8FdPVe8 Vn+U2BdJnNDAC4zMuSf6LT2XCG3Y+T9D8Om1dmwYSsfSyJlC5HqIsD1KgcARN0NVv3Cd GxcH6YYweGcr9ARWtBNVpYsdKhiNq0OWe53we8Jk0P6UYecaX7so+ZR00lDO/WgXYXhx GcDw== X-Gm-Message-State: AOAM5325KiNnyk3OOGLL62b8rQVgVgTrfyQDWBYXsHWrRLqdj0cdqxHM /QEFl4lC3/AjcdX52SkuCU4N7kmJ X-Google-Smtp-Source: ABdhPJx6InPnfdv5XLUe+DHDLj3uuByZIJMMh9JBtCKVjGW0mpi6RYClaZJU0EqG4QgydocTP6ItyA== X-Received: by 2002:a17:906:2893:: with SMTP id o19mr2588412ejd.231.1592560028269; Fri, 19 Jun 2020 02:47:08 -0700 (PDT) Received: from powell.devork.be (2a02-8388-8480-1180-4c18-fc69-8d8c-22b5.cable.dynamic.v6.surfer.at. [2a02:8388:8480:1180:4c18:fc69:8d8c:22b5]) by smtp.gmail.com with ESMTPSA id gv18sm4419291ejb.113.2020.06.19.02.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 02:47:07 -0700 (PDT) Received: (nullmailer pid 360724 invoked by uid 1000); Fri, 19 Jun 2020 09:47:06 -0000 From: Floris Bruynooghe To: notmuch@notmuchmail.org Subject: [PATCH] python-cffi: read version from notmuch version file Date: Fri, 19 Jun 2020 11:46:28 +0200 Message-Id: <20200619094627.360612-2-flub@devork.be> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619094627.360612-1-flub@devork.be> References: <20200619094627.360612-1-flub@devork.be> MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=hu9KguFh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.99 X-TUID: iDkK80Z8PbYO This keeps it in sync with the main notmuch version which is less confusing to users. --- bindings/python-cffi/setup.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bindings/python-cffi/setup.py b/bindings/python-cffi/setup.py index 37918e3d..1effcfc6 100644 --- a/bindings/python-cffi/setup.py +++ b/bindings/python-cffi/setup.py @@ -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', -- 2.27.0