Skip to content

Migrate from frozendict to immutabledict. #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
packages=['spanner_orm', 'spanner_orm.admin'],
include_package_data=True,
python_requires='~=3.7',
install_requires=['google-cloud-spanner >= 1.6, <2.0.0dev', 'frozendict'],
install_requires=[
'google-cloud-spanner >= 1.6, <2.0.0dev',
'immutabledict',
],
tests_require=['absl-py', 'google-api-core', 'portpicker'],
entry_points={
'console_scripts': ['spanner-orm = spanner_orm.admin.scripts:main']
Expand Down
4 changes: 2 additions & 2 deletions spanner_orm/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
from spanner_orm import index
from spanner_orm import relationship

import frozendict
from google.api_core import datetime_helpers
from google.cloud.spanner_v1.proto import type_pb2
import immutabledict

T = TypeVar('T')

Expand Down Expand Up @@ -254,7 +254,7 @@ class ArbitraryCondition(Condition):
def __init__(
self,
sql_template: str,
substitutions: Mapping[str, Substitution] = frozendict.frozendict(),
substitutions: Mapping[str, Substitution] = immutabledict.immutabledict(),
*,
segment: Segment,
):
Expand Down