From 7691dccba016a9d77a00915964736643dcc9ac6a Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 12 May 2020 16:52:50 -0700 Subject: [PATCH] chore: declare version as separate variable This is the way release-please currently expects the version to be declared. https://github.com/googleapis/release-please/blob/4e0bf11b7f4217b5c6b8cd1aa9ea4db1bce06b89/src/updaters/python/setup-py.ts#L36 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5ecc19389c..2e7e7ca58a 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,8 @@ from setuptools import find_packages, setup +version = '2.2a0' + install_requires = [ 'sqlparse >= 0.3.0', 'google-cloud >= 0.34.0', @@ -17,7 +19,7 @@ # Duplicate version here rather than using # __import__('django_spanner').__version__ because that file imports # django and google.cloud which may not be installed. - version='2.2a0', + version=version, author='Google LLC', author_email='cloud-spanner-developers@googlegroups.com', description=('Bridge to enable using Django with Spanner.'),