Repository: googleapis/python-spanner-django

Issue:
pypi: change package name since django-spanner is already taken
On pypi, there already exists a package [django-spanner](https://pypi.org/project/django-spanner/), we should perhaps rename this one to say `django-google-spanner` or a variant to avoid the clash.

/cc @skuruppu 


Discussion:

Resolving patch:
diff --git a/django_spanner/__init__.py b/django_spanner/__init__.py
--- a/django_spanner/__init__.py
+++ b/django_spanner/__init__.py
@@ -9,6 +9,7 @@
 # do that.
 from uuid import uuid4
 
+import pkg_resources
 from django.db.models.fields import AutoField, Field
 # Monkey-patch google.DatetimeWithNanoseconds's __eq__ compare against datetime.datetime.
 from google.api_core.datetime_helpers import DatetimeWithNanoseconds
@@ -18,7 +19,7 @@
 from .lookups import register_lookups
 from .utils import check_django_compatability
 
-__version__ = '2.2a0'
+__version__ = pkg_resources.get_distribution("django-google-spanner").version
 
 check_django_compatability()
 register_expressions()
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -4,30 +4,50 @@
 # license that can be found in the LICENSE file or at
 # https://developers.google.com/open-source/licenses/bsd
 
+import io
+import os
+
 from setuptools import find_packages, setup
 
-version = '2.2a0'
+# Package metadata.
 
-install_requires = [
+name = "django-google-spanner"
+description = "Bridge to enable using Django with Spanner."
+version = "2.2a0"
+# Should be one of:
+# 'Development Status :: 3 - Alpha'
+# 'Development Status :: 4 - Beta'
+# 'Development Status :: 5 - Production/Stable'
+release_status = "Development Status :: 3 - Alpha"
+dependencies = [
     'sqlparse >= 0.3.0',
-    'google-cloud >= 0.34.0',
     'google-cloud-spanner >= 1.8.0',
 ]
+extras = {}
+
+
+# Setup boilerplate below this line.
+
+package_root = os.path.abspath(os.path.dirname(__file__))
+
+readme_filename = os.path.join(package_root, "README.md")
+with io.open(readme_filename, encoding="utf-8") as readme_file:
+    readme = readme_file.read()
+
 
 setup(
-        name='django-spanner',
-        # Duplicate version here rather than using
-        # __import__('django_spanner').__version__ because that file imports
-        # django and google.cloud which may not be installed.
+        name=name,
         version=version,
+        description=description,
+        long_description=readme,
         author='Google LLC',
         author_email='cloud-spanner-developers@googlegroups.com',
-        description=('Bridge to enable using Django with Spanner.'),
         license='BSD',
         packages=find_packages(exclude=['tests']),
-        install_requires=install_requires,
+        install_requires=dependencies,
+        url="https://github.com/googleapis/python-spanner-django",
         classifiers=[
-            'Development Status :: 4 - Beta',
+            release_status,
             'Environment :: Web Environment',
             'Intended Audience :: Developers',
             'License :: OSI Approved :: BSD',
@@ -40,4 +60,6 @@
             'Framework :: Django',
             'Framework :: Django :: 2.2',
         ],
+        extras_require=extras,
+        python_requires=">=3.5",
 )


Test patch: