sqlalchemy-spanner 1.17.2__tar.gz → 1.17.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/PKG-INFO +8 -7
  2. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/README.rst +6 -6
  3. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/_opentelemetry_tracing.py +2 -1
  4. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/version.py +1 -1
  5. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/setup.cfg +3 -0
  6. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/setup.py +1 -1
  7. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/PKG-INFO +8 -7
  8. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/SOURCES.txt +3 -3
  9. {sqlalchemy_spanner-1.17.2/test → sqlalchemy_spanner-1.17.3/tests}/test_suite_14.py +1 -1
  10. {sqlalchemy_spanner-1.17.2/test → sqlalchemy_spanner-1.17.3/tests}/test_suite_20.py +14 -4
  11. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/LICENSE +0 -0
  12. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/__init__.py +0 -0
  13. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/dml.py +0 -0
  14. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/provision.py +0 -0
  15. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/requirements.py +0 -0
  16. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py +0 -0
  17. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/dependency_links.txt +0 -0
  18. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/entry_points.txt +0 -0
  19. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/not-zip-safe +0 -0
  20. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/requires.txt +0 -0
  21. {sqlalchemy_spanner-1.17.2 → sqlalchemy_spanner-1.17.3}/sqlalchemy_spanner.egg-info/top_level.txt +0 -0
  22. {sqlalchemy_spanner-1.17.2/test → sqlalchemy_spanner-1.17.3/tests}/test_suite_13.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-spanner
3
- Version: 1.17.2
3
+ Version: 1.17.3
4
4
  Summary: SQLAlchemy dialect integrated into Cloud Spanner database
5
5
  Home-page: https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy
6
6
  Author: Google LLC
@@ -8,6 +8,7 @@ Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Programming Language :: Python :: 3.8
11
12
  Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
@@ -49,7 +50,7 @@ configurations. There may be configurations and/or data model variations
49
50
  that have not yet been covered by the tests and that show unexpected
50
51
  behavior. Please report any problems that you might encounter by
51
52
  `creating a new
52
- issue <https://github.com/googleapis/python-spanner-sqlalchemy/issues/new>`__.
53
+ issue <https://github.com/googleapis/google-cloud-python/issues/new>`__.
53
54
 
54
55
  - `Cloud Spanner product
55
56
  documentation <https://cloud.google.com/spanner/docs>`__
@@ -83,7 +84,7 @@ Git-repository:
83
84
 
84
85
  ::
85
86
 
86
- git clone https://github.com/googleapis/python-spanner-sqlalchemy.git
87
+ git clone https://github.com/googleapis/google-cloud-python.git
87
88
 
88
89
  Next install the package from the package ``setup.py`` file:
89
90
 
@@ -96,7 +97,7 @@ During setup the dialect will be registered with entry points.
96
97
  Samples
97
98
  -------------
98
99
 
99
- The `samples directory <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/README.md>`__
100
+ The `samples directory <https://github.com/googleapis/google-cloud-python/blob/-/samples/README.md>`__
100
101
  contains multiple examples for how to configure and use common Spanner features.
101
102
 
102
103
 
@@ -415,7 +416,7 @@ into ReadOnly mode:
415
416
  connection.execute(select(["*"], from_obj=table)).fetchall()
416
417
 
417
418
  See the `Read-only transaction sample
418
- <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/read_only_transaction_sample.py>`__
419
+ <https://github.com/googleapis/google-cloud-python/blob/-/samples/read_only_transaction_sample.py>`__
419
420
  for a concrete example.
420
421
 
421
422
  ReadOnly/ReadWrite mode of a connection can't be changed while a
@@ -586,7 +587,7 @@ Contributing
586
587
 
587
588
  Contributions to this library are welcome and encouraged. Please report
588
589
  issues, file feature requests, and send pull requests. See
589
- `CONTRIBUTING <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/contributing.md>`__
590
+ `CONTRIBUTING <https://github.com/googleapis/google-cloud-python/blob/main/contributing.md>`__
590
591
  for more information on how to get started.
591
592
 
592
593
  **Note that this project is not officially supported by Google as part
@@ -595,5 +596,5 @@ of the Cloud Spanner product.**
595
596
  Please note that this project is released with a Contributor Code of
596
597
  Conduct. By participating in this project you agree to abide by its
597
598
  terms. See the `Code of
598
- Conduct <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/code-of-conduct.md>`__
599
+ Conduct <https://github.com/googleapis/google-cloud-python/blob/main/code-of-conduct.md>`__
599
600
  for more information.
@@ -14,7 +14,7 @@ configurations. There may be configurations and/or data model variations
14
14
  that have not yet been covered by the tests and that show unexpected
15
15
  behavior. Please report any problems that you might encounter by
16
16
  `creating a new
17
- issue <https://github.com/googleapis/python-spanner-sqlalchemy/issues/new>`__.
17
+ issue <https://github.com/googleapis/google-cloud-python/issues/new>`__.
18
18
 
19
19
  - `Cloud Spanner product
20
20
  documentation <https://cloud.google.com/spanner/docs>`__
@@ -48,7 +48,7 @@ Git-repository:
48
48
 
49
49
  ::
50
50
 
51
- git clone https://github.com/googleapis/python-spanner-sqlalchemy.git
51
+ git clone https://github.com/googleapis/google-cloud-python.git
52
52
 
53
53
  Next install the package from the package ``setup.py`` file:
54
54
 
@@ -61,7 +61,7 @@ During setup the dialect will be registered with entry points.
61
61
  Samples
62
62
  -------------
63
63
 
64
- The `samples directory <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/README.md>`__
64
+ The `samples directory <https://github.com/googleapis/google-cloud-python/blob/-/samples/README.md>`__
65
65
  contains multiple examples for how to configure and use common Spanner features.
66
66
 
67
67
 
@@ -380,7 +380,7 @@ into ReadOnly mode:
380
380
  connection.execute(select(["*"], from_obj=table)).fetchall()
381
381
 
382
382
  See the `Read-only transaction sample
383
- <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/read_only_transaction_sample.py>`__
383
+ <https://github.com/googleapis/google-cloud-python/blob/-/samples/read_only_transaction_sample.py>`__
384
384
  for a concrete example.
385
385
 
386
386
  ReadOnly/ReadWrite mode of a connection can't be changed while a
@@ -551,7 +551,7 @@ Contributing
551
551
 
552
552
  Contributions to this library are welcome and encouraged. Please report
553
553
  issues, file feature requests, and send pull requests. See
554
- `CONTRIBUTING <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/contributing.md>`__
554
+ `CONTRIBUTING <https://github.com/googleapis/google-cloud-python/blob/main/contributing.md>`__
555
555
  for more information on how to get started.
556
556
 
557
557
  **Note that this project is not officially supported by Google as part
@@ -560,5 +560,5 @@ of the Cloud Spanner product.**
560
560
  Please note that this project is released with a Contributor Code of
561
561
  Conduct. By participating in this project you agree to abide by its
562
562
  terms. See the `Code of
563
- Conduct <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/code-of-conduct.md>`__
563
+ Conduct <https://github.com/googleapis/google-cloud-python/blob/main/code-of-conduct.md>`__
564
564
  for more information.
@@ -27,8 +27,10 @@ try:
27
27
  from opentelemetry.trace.status import Status, StatusCode
28
28
 
29
29
  HAS_OPENTELEMETRY_INSTALLED = True
30
+ tracer = trace.get_tracer(__name__)
30
31
  except ImportError:
31
32
  HAS_OPENTELEMETRY_INSTALLED = False
33
+ tracer = None
32
34
 
33
35
 
34
36
  @contextmanager
@@ -39,7 +41,6 @@ def trace_call(name, extra_attributes=None):
39
41
  yield None
40
42
  return
41
43
 
42
- tracer = trace.get_tracer(__name__)
43
44
  # Set base attributes that we know for every trace created
44
45
  attributes = {
45
46
  "db.type": "spanner",
@@ -4,4 +4,4 @@
4
4
  # license that can be found in the LICENSE file or at
5
5
  # https://developers.google.com/open-source/licenses/bsd
6
6
 
7
- __version__ = "1.17.2"
7
+ __version__ = "1.17.3"
@@ -6,6 +6,9 @@ python_classes = *Test
6
6
  requirement_cls = google.cloud.sqlalchemy_spanner.requirements:Requirements
7
7
  profile_file = test/profiles.txt
8
8
 
9
+ [db]
10
+ default = sqlite:///:memory:
11
+
9
12
  [egg_info]
10
13
  tag_build =
11
14
  tag_date = 0
@@ -17,7 +17,6 @@ import os
17
17
 
18
18
  import setuptools
19
19
 
20
-
21
20
  # Package metadata.
22
21
 
23
22
  name = "sqlalchemy-spanner"
@@ -62,6 +61,7 @@ setuptools.setup(
62
61
  classifiers=[
63
62
  "Intended Audience :: Developers",
64
63
  "License :: OSI Approved :: Apache Software License",
64
+ "Programming Language :: Python :: 3.8",
65
65
  "Programming Language :: Python :: 3.9",
66
66
  "Programming Language :: Python :: 3.10",
67
67
  "Programming Language :: Python :: 3.11",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-spanner
3
- Version: 1.17.2
3
+ Version: 1.17.3
4
4
  Summary: SQLAlchemy dialect integrated into Cloud Spanner database
5
5
  Home-page: https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy
6
6
  Author: Google LLC
@@ -8,6 +8,7 @@ Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Programming Language :: Python :: 3.8
11
12
  Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
@@ -49,7 +50,7 @@ configurations. There may be configurations and/or data model variations
49
50
  that have not yet been covered by the tests and that show unexpected
50
51
  behavior. Please report any problems that you might encounter by
51
52
  `creating a new
52
- issue <https://github.com/googleapis/python-spanner-sqlalchemy/issues/new>`__.
53
+ issue <https://github.com/googleapis/google-cloud-python/issues/new>`__.
53
54
 
54
55
  - `Cloud Spanner product
55
56
  documentation <https://cloud.google.com/spanner/docs>`__
@@ -83,7 +84,7 @@ Git-repository:
83
84
 
84
85
  ::
85
86
 
86
- git clone https://github.com/googleapis/python-spanner-sqlalchemy.git
87
+ git clone https://github.com/googleapis/google-cloud-python.git
87
88
 
88
89
  Next install the package from the package ``setup.py`` file:
89
90
 
@@ -96,7 +97,7 @@ During setup the dialect will be registered with entry points.
96
97
  Samples
97
98
  -------------
98
99
 
99
- The `samples directory <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/README.md>`__
100
+ The `samples directory <https://github.com/googleapis/google-cloud-python/blob/-/samples/README.md>`__
100
101
  contains multiple examples for how to configure and use common Spanner features.
101
102
 
102
103
 
@@ -415,7 +416,7 @@ into ReadOnly mode:
415
416
  connection.execute(select(["*"], from_obj=table)).fetchall()
416
417
 
417
418
  See the `Read-only transaction sample
418
- <https://github.com/googleapis/python-spanner-sqlalchemy/blob/-/samples/read_only_transaction_sample.py>`__
419
+ <https://github.com/googleapis/google-cloud-python/blob/-/samples/read_only_transaction_sample.py>`__
419
420
  for a concrete example.
420
421
 
421
422
  ReadOnly/ReadWrite mode of a connection can't be changed while a
@@ -586,7 +587,7 @@ Contributing
586
587
 
587
588
  Contributions to this library are welcome and encouraged. Please report
588
589
  issues, file feature requests, and send pull requests. See
589
- `CONTRIBUTING <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/contributing.md>`__
590
+ `CONTRIBUTING <https://github.com/googleapis/google-cloud-python/blob/main/contributing.md>`__
590
591
  for more information on how to get started.
591
592
 
592
593
  **Note that this project is not officially supported by Google as part
@@ -595,5 +596,5 @@ of the Cloud Spanner product.**
595
596
  Please note that this project is released with a Contributor Code of
596
597
  Conduct. By participating in this project you agree to abide by its
597
598
  terms. See the `Code of
598
- Conduct <https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/code-of-conduct.md>`__
599
+ Conduct <https://github.com/googleapis/google-cloud-python/blob/main/code-of-conduct.md>`__
599
600
  for more information.
@@ -16,6 +16,6 @@ sqlalchemy_spanner.egg-info/entry_points.txt
16
16
  sqlalchemy_spanner.egg-info/not-zip-safe
17
17
  sqlalchemy_spanner.egg-info/requires.txt
18
18
  sqlalchemy_spanner.egg-info/top_level.txt
19
- test/test_suite_13.py
20
- test/test_suite_14.py
21
- test/test_suite_20.py
19
+ tests/test_suite_13.py
20
+ tests/test_suite_14.py
21
+ tests/test_suite_20.py
@@ -140,7 +140,7 @@ from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
140
140
  UnicodeTextTest as _UnicodeTextTest,
141
141
  _UnicodeFixture as __UnicodeFixture,
142
142
  )
143
- from test._helpers import get_db_url, get_project
143
+ from tests._helpers import get_db_url, get_project
144
144
 
145
145
  from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
146
146
 
@@ -40,6 +40,7 @@ from sqlalchemy.testing import engines
40
40
  from sqlalchemy.testing import eq_
41
41
  from sqlalchemy.testing import is_instance_of
42
42
  from sqlalchemy.testing import provide_metadata, emits_warning
43
+ from sqlalchemy.testing import is_true
43
44
  from sqlalchemy.testing import fixtures
44
45
  from sqlalchemy.testing.provision import temp_table_keyword_args
45
46
  from sqlalchemy.testing.schema import Column
@@ -60,9 +61,9 @@ from sqlalchemy.orm import relationship
60
61
  from sqlalchemy.orm import Session
61
62
  from sqlalchemy.types import Integer
62
63
  from sqlalchemy.types import Numeric
64
+
63
65
  from sqlalchemy.types import Text
64
66
  from sqlalchemy.testing import requires
65
- from sqlalchemy.testing import is_true
66
67
  from sqlalchemy import Index
67
68
  from sqlalchemy import types
68
69
  from sqlalchemy.testing.fixtures import (
@@ -151,7 +152,7 @@ from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
151
152
  UnicodeTextTest as _UnicodeTextTest,
152
153
  _UnicodeFixture as __UnicodeFixture,
153
154
  ) # noqa: F401, F403
154
- from test._helpers import (
155
+ from tests._helpers import (
155
156
  get_db_url,
156
157
  get_project,
157
158
  )
@@ -923,6 +924,15 @@ class ComponentReflectionTest(_ComponentReflectionTest):
923
924
  self._required_fk_keys,
924
925
  )
925
926
 
927
+ def test_get_foreign_keys_quoted_name(self, connection, metadata):
928
+ pass
929
+
930
+ def test_get_indexes_quoted_name(self, connection, metadata):
931
+ pass
932
+
933
+ def test_get_unique_constraints_quoted_name(self, connection, metadata):
934
+ pass
935
+
926
936
  def exp_columns(
927
937
  self,
928
938
  schema=None,
@@ -1056,13 +1066,13 @@ class ComponentReflectionTest(_ComponentReflectionTest):
1056
1066
  @pytest.mark.skip(
1057
1067
  "Requires an introspection method to be implemented in SQLAlchemy first"
1058
1068
  )
1059
- def test_get_multi_unique_constraints():
1069
+ def test_get_multi_unique_constraints(self):
1060
1070
  pass
1061
1071
 
1062
1072
  @pytest.mark.skip(
1063
1073
  "Requires an introspection method to be implemented in SQLAlchemy first"
1064
1074
  )
1065
- def test_get_multi_check_constraints():
1075
+ def test_get_multi_check_constraints(self):
1066
1076
  pass
1067
1077
 
1068
1078
  @testing.combinations((False,), argnames="use_schema")