From 71ba636c17343d81611eb244e6e3e7a610055fe7 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 18 Mar 2020 18:12:35 -0400 Subject: Use b4.VERSION for setup.py version info No longer need to change version in both places. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/b4/__init__.py b/b4/__init__.py index 85b8298..d6ca6de 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -19,7 +19,7 @@ from email import charset charset.add_charset('utf-8', None) emlpolicy = email.policy.EmailPolicy(utf8=True, cte_type='8bit', max_line_length=None) -VERSION = '0.3.4-pre' +VERSION = '0.3.4-dev' ATTESTATION_FORMAT_VER = '0.1' logger = logging.getLogger('b4') diff --git a/setup.py b/setup.py index 1c9f6e1..5944988 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os +import b4 from setuptools import setup # Utility function to read the README file. @@ -13,11 +14,10 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -VERSION = '0.3.3' NAME = 'b4' setup( - version=VERSION, + version=b4.VERSION, url='https://git.kernel.org/pub/scm/utils/b4/b4.git', name=NAME, description='A tool to work with public-inbox and patch archives', -- cgit v1.2.3