This repository was archived by the owner on Mar 20, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-10
lines changed
google/cloud/spanner_dbapi Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 55# https://developers.google.com/open-source/licenses/bsd
66
77from django .db .backends .base .base import BaseDatabaseWrapper
8- from google .cloud import spanner_v1 as spanner , spanner_dbapi as Database
8+ from google .cloud import spanner_dbapi as Database , spanner_v1 as spanner
99
1010from .client import DatabaseClient
1111from .creation import DatabaseCreation
@@ -116,7 +116,7 @@ def get_connection_params(self):
116116 "project" : self .settings_dict ["PROJECT" ],
117117 "instance_id" : self .settings_dict ["INSTANCE" ],
118118 "database_id" : self .settings_dict ["NAME" ],
119- "user_agent" : "django_spanner/0.0.1 " ,
119+ "user_agent" : "django_spanner/2.2.0a1 " ,
120120 ** self .settings_dict ["OPTIONS" ],
121121 }
122122
Original file line number Diff line number Diff line change 1919import sys
2020import os
2121
22+ from version import __version__
23+
2224# If extensions (or modules to document with autodoc) are in another directory,
2325# add this directory to sys.path here. If the directory is relative to the
2426# documentation root, use os.path.abspath to make it absolute, like shown here.
2830# See also: https://github.com/docascode/sphinx-docfx-yaml/issues/85
2931sys .path .insert (0 , os .path .abspath ("." ))
3032
31- __version__ = "alpha"
32-
3333# -- General configuration ------------------------------------------------
3434
3535# If your documentation needs a minimal Sphinx version, state it here.
Original file line number Diff line number Diff line change 88
99from google .api_core .gapic_v1 .client_info import ClientInfo
1010
11- VERSION = "0.0.1 "
11+ VERSION = "2.2.0a1 "
1212DEFAULT_USER_AGENT = "django_spanner/" + VERSION
1313
1414vers = sys .version_info
Original file line number Diff line number Diff line change 1010from setuptools import find_packages , setup
1111
1212# Package metadata.
13-
1413name = "django-google-spanner"
1514description = "Bridge to enable using Django with Spanner."
16- version = "2.2a0"
1715# Should be one of:
1816# 'Development Status :: 3 - Alpha'
1917# 'Development Status :: 4 - Beta'
2220dependencies = ["sqlparse >= 0.3.0" , "google-cloud-spanner >= 1.8.0" ]
2321extras = {}
2422
23+ BASE_DIR = os .path .dirname (__file__ )
24+ VERSION_FILENAME = os .path .join (BASE_DIR , "version.py" )
25+ PACKAGE_INFO = {}
26+ with open (VERSION_FILENAME ) as f :
27+ exec (f .read (), PACKAGE_INFO )
28+ version = PACKAGE_INFO ["__version__" ]
2529
2630# Setup boilerplate below this line.
2731
28- package_root = os .path .abspath (os . path . dirname ( __file__ ) )
32+ package_root = os .path .abspath (BASE_DIR )
2933
3034readme_filename = os .path .join (package_root , "README.rst" )
3135with io .open (readme_filename , encoding = "utf-8" ) as readme_file :
3236 readme = readme_file .read ()
3337
34-
3538setup (
3639 name = name ,
3740 version = version ,
3841 description = description ,
3942 long_description = readme ,
4043 author = "Google LLC" ,
41- author_email = "cloud-spanner-developers@googlegroups .com" ,
44+ author_email = "googleapis-packages@google .com" ,
4245 license = "BSD" ,
4346 packages = find_packages (exclude = ["tests" ]),
4447 install_requires = dependencies ,
Original file line number Diff line number Diff line change 1+ # Copyright 2020 Google LLC
2+ #
3+ # Use of this source code is governed by a BSD-style
4+ # license that can be found in the LICENSE file or at
5+ # https://developers.google.com/open-source/licenses/bsd
6+
7+ __version__ = "2.2.0a1"
You can’t perform that action at this time.
0 commit comments