Skip to content

Commit fbba900

Browse files
c24tmf2199
andauthored
fix: Replace repo name with pkg name (#508)
Use "django-google-spanner" instead of "python-spanner-django" where appropriate in README and docs. Co-authored-by: MF2199 <[email protected]>
1 parent bd306a7 commit fbba900

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ To use this library you'll need a Google Cloud Platform project with the Cloud
1313
Spanner API enabled. See the `Cloud Spanner Python client docs
1414
<https://github.com/googleapis/python-spanner/#quick-start>`__ for details.
1515

16-
Use the version of ``python-spanner-django`` that corresponds to your version
17-
of Django. For example, ``python-spanner-django`` 2.2.x works with Django
16+
Use the version of ``django-google-spanner`` that corresponds to your version
17+
of Django. For example, ``django-google-spanner`` 2.2.x works with Django
1818
2.2.y. (This is the only supported version at this time.)
1919

2020
The minor release number of Django doesn't correspond to the minor release
21-
number of ``python-spanner-django``. Use the latest minor release of each.
21+
number of ``django-google-spanner``. Use the latest minor release of each.
2222

2323
To install from PyPI:
2424

@@ -96,7 +96,7 @@ Limitations
9696
Transaction management isn't supported
9797
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9898

99-
``python-spanner-django`` always works in ``autocommit`` mode, which is
99+
``django-google-spanner`` always works in ``autocommit`` mode, which is
100100
Django's default behavior even for backends that support manual transaction
101101
management. Transactions cannot be controlled manually with calls like
102102
``django.db.transaction.atomic()``.
@@ -105,7 +105,7 @@ management. Transactions cannot be controlled manually with calls like
105105
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106106

107107
Spanner doesn't have support for auto-generating primary key values.
108-
Therefore, ``python-spanner-django`` monkey-patches ``AutoField`` to generate a
108+
Therefore, ``django-google-spanner`` monkey-patches ``AutoField`` to generate a
109109
random UUID4. It generates a default using ``Field``'s ``default`` option which
110110
means ``AutoField``\ s will have a value when a model instance is created. For
111111
example:
@@ -126,7 +126,7 @@ were created.
126126
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127127

128128
Spanner doesn't support ``ON DELETE CASCADE`` when creating foreign-key
129-
constraints so ``python-spanner-django`` `doesn't support foreign key
129+
constraints so ``django-google-spanner`` `doesn't support foreign key
130130
constraints
131131
<https://github.com/googleapis/python-spanner-django/issues/313>`__.
132132

@@ -177,7 +177,7 @@ Spanner has some limitations on schema changes which you must respect:
177177
- Renaming tables and columns isn't supported.
178178
- A column's type can't be changed.
179179
- A table's primary key can't be altered.
180-
- Migrations aren't atomic since ``python-spanner-django`` doesn't support
180+
- Migrations aren't atomic since ``django-google-spanner`` doesn't support
181181
transactions.
182182

183183
``DurationField`` arithmetic doesn't work with ``DateField`` values (`#253 <https://github.com/googleapis/python-spanner-django/issues/253>`__)

docs/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# license that can be found in the LICENSE file or at
77
# https://developers.google.com/open-source/licenses/bsd
88

9-
# python-spanner-django documentation build configuration file
9+
# django-google-spanner documentation build configuration file
1010
#
1111
# This file is executedd with the current directory set to its containing dir.
1212
#
@@ -270,7 +270,7 @@
270270
# latex_documents = [
271271
# (
272272
# master_doc,
273-
# "python-spanner-django.tex",
273+
# "django-google-spanner.tex",
274274
# u"Spanner Django Documentation",
275275
# author,
276276
# "manual",
@@ -305,8 +305,8 @@
305305
man_pages = [
306306
(
307307
master_doc,
308-
"python-spanner-django",
309-
u"python-spanner-django Documentation",
308+
"django-google-spanner",
309+
u"django-google-spanner Documentation",
310310
[author],
311311
1,
312312
)
@@ -324,11 +324,11 @@
324324
texinfo_documents = [
325325
(
326326
master_doc,
327-
"python-spanner-django",
328-
u"python-spanner-django Documentation",
327+
"django-google-spanner",
328+
u"django-google-spanner Documentation",
329329
author,
330-
"python-spanner-django",
331-
"python-spanner-django Library",
330+
"django-google-spanner",
331+
"django-google-spanner Library",
332332
"APIs",
333333
)
334334
]

0 commit comments

Comments
 (0)