Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 28c748e

Browse files
authored
chore: declare version as separate variable (#450)
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
1 parent f969000 commit 28c748e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from setuptools import find_packages, setup
88

9+
version = '2.2a0'
10+
911
install_requires = [
1012
'sqlparse >= 0.3.0',
1113
'google-cloud >= 0.34.0',
@@ -17,7 +19,7 @@
1719
# Duplicate version here rather than using
1820
# __import__('django_spanner').__version__ because that file imports
1921
# django and google.cloud which may not be installed.
20-
version='2.2a0',
22+
version=version,
2123
author='Google LLC',
2224
author_email='cloud-spanner-developers@googlegroups.com',
2325
description=('Bridge to enable using Django with Spanner.'),

0 commit comments

Comments
 (0)