dagster-postgres 0.25.8__py3-none-any.whl → 0.25.9__py3-none-any.whl

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.

Potentially problematic release.


This version of dagster-postgres might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
+ from collections.abc import Iterator, Mapping, Sequence
1
2
  from contextlib import contextmanager
2
- from typing import Any, ContextManager, Iterator, Mapping, Optional, Sequence, cast
3
+ from typing import Any, ContextManager, Optional, cast # noqa: UP035
3
4
 
4
5
  import dagster._check as check
5
6
  import sqlalchemy as db
@@ -223,7 +224,7 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
223
224
  # We only update the asset table with the last event
224
225
  self.store_asset_event(events[-1], event_ids[-1])
225
226
 
226
- if any((event_id is None for event_id in event_ids)):
227
+ if any(event_id is None for event_id in event_ids):
227
228
  raise DagsterInvariantViolationError("Cannot store asset event tags for null event id.")
228
229
 
229
230
  self.store_asset_event_tags(events, event_ids)
@@ -325,13 +326,11 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
325
326
 
326
327
  def has_secondary_index(self, name: str) -> bool:
327
328
  if name not in self._secondary_index_cache:
328
- self._secondary_index_cache[name] = super(
329
- PostgresEventLogStorage, self
330
- ).has_secondary_index(name)
329
+ self._secondary_index_cache[name] = super().has_secondary_index(name)
331
330
  return self._secondary_index_cache[name]
332
331
 
333
332
  def enable_secondary_index(self, name: str) -> None:
334
- super(PostgresEventLogStorage, self).enable_secondary_index(name)
333
+ super().enable_secondary_index(name)
335
334
  if name in self._secondary_index_cache:
336
335
  del self._secondary_index_cache[name]
337
336
 
@@ -1,5 +1,6 @@
1
1
  import zlib
2
- from typing import ContextManager, Mapping, Optional
2
+ from collections.abc import Mapping
3
+ from typing import ContextManager, Optional # noqa: UP035
3
4
 
4
5
  import dagster._check as check
5
6
  import sqlalchemy as db
@@ -164,13 +165,11 @@ class PostgresRunStorage(SqlRunStorage, ConfigurableClass):
164
165
 
165
166
  def has_built_index(self, migration_name: str) -> bool:
166
167
  if migration_name not in self._index_migration_cache:
167
- self._index_migration_cache[migration_name] = super(
168
- PostgresRunStorage, self
169
- ).has_built_index(migration_name)
168
+ self._index_migration_cache[migration_name] = super().has_built_index(migration_name)
170
169
  return self._index_migration_cache[migration_name]
171
170
 
172
171
  def mark_index_built(self, migration_name: str) -> None:
173
- super(PostgresRunStorage, self).mark_index_built(migration_name)
172
+ super().mark_index_built(migration_name)
174
173
  if migration_name in self._index_migration_cache:
175
174
  del self._index_migration_cache[migration_name]
176
175
 
@@ -1,4 +1,5 @@
1
- from typing import ContextManager, Optional, Sequence
1
+ from collections.abc import Sequence
2
+ from typing import ContextManager, Optional # noqa: UP035
2
3
 
3
4
  import dagster._check as check
4
5
  import sqlalchemy as db
dagster_postgres/utils.py CHANGED
@@ -1,7 +1,8 @@
1
1
  import logging
2
2
  import time
3
+ from collections.abc import Iterator, Mapping
3
4
  from contextlib import contextmanager
4
- from typing import Any, Callable, Iterator, Mapping, Optional, TypeVar
5
+ from typing import Any, Callable, Optional, TypeVar
5
6
  from urllib.parse import quote, urlencode
6
7
 
7
8
  import alembic.config
@@ -1 +1 @@
1
- __version__ = "0.25.8"
1
+ __version__ = "0.25.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-postgres
3
- Version: 0.25.8
3
+ Version: 0.25.9
4
4
  Summary: A Dagster integration for postgres
5
5
  Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-postgres
6
6
  Author: Dagster Labs
@@ -14,6 +14,6 @@ Classifier: License :: OSI Approved :: Apache Software License
14
14
  Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.9,<3.13
16
16
  License-File: LICENSE
17
- Requires-Dist: dagster ==1.9.8
17
+ Requires-Dist: dagster ==1.9.9
18
18
  Requires-Dist: psycopg2-binary
19
19
 
@@ -0,0 +1,17 @@
1
+ dagster_postgres/__init__.py,sha256=h8rM1BA27G8jSAak_WnjfZ_dqyz79x9rfTeroUveu_w,560
2
+ dagster_postgres/py.typed,sha256=la67KBlbjXN-_-DfGNcdOcjYumVpKG_Tkw-8n5dnGB4,8
3
+ dagster_postgres/storage.py,sha256=whjOJeT4-W41bZ8xDBg77NGSVJPQzc33IsxpmGNdpVM,4257
4
+ dagster_postgres/utils.py,sha256=AjuUYZ3y4Q3oaa-6I2zd6SNwl66FE8cJ_e2rIKrI9IQ,5930
5
+ dagster_postgres/version.py,sha256=NsKiCCQq5j7wW1paL-Bw27h63w_P0r0bIHvsX9TsjGY,23
6
+ dagster_postgres/alembic/alembic.ini,sha256=GovyDEhu_6HvkWV6txqjdDBOe4BseSM0YDWGxXM5_cA,986
7
+ dagster_postgres/event_log/__init__.py,sha256=wRcUR-StRNrPCqpEzi0MRY8b-r_TEWV17OsEynFqlLs,100
8
+ dagster_postgres/event_log/event_log.py,sha256=Y73l4Vf_Tp3HXeEI7WdIpdjDmFTFbMT8HDL62NFg3qI,15430
9
+ dagster_postgres/run_storage/__init__.py,sha256=oW_546mJ5K-e-RF0Ou7r-4fHWxFthHgPPhWxklsVK1g,94
10
+ dagster_postgres/run_storage/run_storage.py,sha256=dX_x8xZGcz4byCC-Jette87rAGTQAuNpKgkXKIhxgmc,9629
11
+ dagster_postgres/schedule_storage/__init__.py,sha256=-jW-1S4Xf5Ew-cz-DjKjU5sVs9EEly_2ELMLOXTewv0,123
12
+ dagster_postgres/schedule_storage/schedule_storage.py,sha256=6DSsUFb4nnEvzw0AtY64oBJU5mHsNlB35skwi_gKIZE,8698
13
+ dagster_postgres-0.25.9.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
14
+ dagster_postgres-0.25.9.dist-info/METADATA,sha256=pEpIIZj9Xozq2upEGn1ascHmO7V0OpVWWy6ArjVptb4,712
15
+ dagster_postgres-0.25.9.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
16
+ dagster_postgres-0.25.9.dist-info/top_level.txt,sha256=lScMtAEKDX1yIv2tGa1nzntBa0HEStfWPfCwD8FWlHk,17
17
+ dagster_postgres-0.25.9.dist-info/RECORD,,
@@ -1,17 +0,0 @@
1
- dagster_postgres/__init__.py,sha256=h8rM1BA27G8jSAak_WnjfZ_dqyz79x9rfTeroUveu_w,560
2
- dagster_postgres/py.typed,sha256=la67KBlbjXN-_-DfGNcdOcjYumVpKG_Tkw-8n5dnGB4,8
3
- dagster_postgres/storage.py,sha256=whjOJeT4-W41bZ8xDBg77NGSVJPQzc33IsxpmGNdpVM,4257
4
- dagster_postgres/utils.py,sha256=DUycPHaK-eq8Gpnulpk7OWGk7TIhWTfS1UkqIyxaKGo,5903
5
- dagster_postgres/version.py,sha256=bkf--LdvzFbtaf_d7GSQn5A2t-yDZ-SX33wKaaeqHsY,23
6
- dagster_postgres/alembic/alembic.ini,sha256=GovyDEhu_6HvkWV6txqjdDBOe4BseSM0YDWGxXM5_cA,986
7
- dagster_postgres/event_log/__init__.py,sha256=wRcUR-StRNrPCqpEzi0MRY8b-r_TEWV17OsEynFqlLs,100
8
- dagster_postgres/event_log/event_log.py,sha256=SBxt8DURkH4SZd7W2I4RN32f9CkNRV-yEfFjqFt6EMY,15478
9
- dagster_postgres/run_storage/__init__.py,sha256=oW_546mJ5K-e-RF0Ou7r-4fHWxFthHgPPhWxklsVK1g,94
10
- dagster_postgres/run_storage/run_storage.py,sha256=LQOuYnhjtyLnTDdVKa1zB-5XGuPV5Xk3FyL8g1tJvWc,9665
11
- dagster_postgres/schedule_storage/__init__.py,sha256=-jW-1S4Xf5Ew-cz-DjKjU5sVs9EEly_2ELMLOXTewv0,123
12
- dagster_postgres/schedule_storage/schedule_storage.py,sha256=Sh7PP_ITZaeOLg94nXLQfJtUCHh2n0LSKpCciP74a0o,8656
13
- dagster_postgres-0.25.8.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
14
- dagster_postgres-0.25.8.dist-info/METADATA,sha256=L8zm22CMyOUV92omDo9A8pwFejAvNZSBlqhGBMZlp7o,712
15
- dagster_postgres-0.25.8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
16
- dagster_postgres-0.25.8.dist-info/top_level.txt,sha256=lScMtAEKDX1yIv2tGa1nzntBa0HEStfWPfCwD8FWlHk,17
17
- dagster_postgres-0.25.8.dist-info/RECORD,,