climate-ref 0.6.2__py3-none-any.whl → 0.6.4__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.
climate_ref/config.py CHANGED
@@ -215,17 +215,17 @@ class DiagnosticProviderConfig:
215
215
 
216
216
  ```toml
217
217
  [[diagnostic_providers]]
218
- provider = "climate_ref_esmvaltool.provider"
218
+ provider = "climate_ref_esmvaltool:provider"
219
219
 
220
220
  [diagnostic_providers.config]
221
221
 
222
222
  [[diagnostic_providers]]
223
- provider = "climate_ref_ilamb.provider"
223
+ provider = "climate_ref_ilamb:provider"
224
224
 
225
225
  [diagnostic_providers.config]
226
226
 
227
227
  [[diagnostic_providers]]
228
- provider = "climate_ref_pmp.provider"
228
+ provider = "climate_ref_pmp:provider"
229
229
 
230
230
  [diagnostic_providers.config]
231
231
  ```
@@ -311,10 +311,12 @@ def default_providers() -> list[DiagnosticProviderConfig]:
311
311
  if env_providers:
312
312
  return [DiagnosticProviderConfig(provider=provider) for provider in env_providers]
313
313
 
314
+ # Refer to https://setuptools.pypa.io/en/latest/userguide/entry_point.html#entry-points-for-plugins
315
+ # and https://packaging.python.org/en/latest/specifications/entry-points/
316
+ # to learn more about entry points.
314
317
  return [
315
- DiagnosticProviderConfig(provider="climate_ref_esmvaltool.provider", config={}),
316
- DiagnosticProviderConfig(provider="climate_ref_ilamb.provider", config={}),
317
- DiagnosticProviderConfig(provider="climate_ref_pmp.provider", config={}),
318
+ DiagnosticProviderConfig(provider=entry_point.value, config={})
319
+ for entry_point in importlib.metadata.entry_points(group="climate-ref.providers")
318
320
  ]
319
321
 
320
322
 
@@ -0,0 +1,34 @@
1
+ """Drop unique requirement on slug
2
+
3
+ Revision ID: 795c1e6cf496
4
+ Revises: 03dbb4998e49
5
+ Create Date: 2025-07-03 15:05:28.517124
6
+
7
+ """
8
+
9
+ from collections.abc import Sequence
10
+ from typing import Union
11
+
12
+ from alembic import op
13
+
14
+ # revision identifiers, used by Alembic.
15
+ revision: str = "795c1e6cf496"
16
+ down_revision: Union[str, None] = "03dbb4998e49"
17
+ branch_labels: Union[str, Sequence[str], None] = None
18
+ depends_on: Union[str, Sequence[str], None] = None
19
+
20
+
21
+ def upgrade() -> None:
22
+ # ### commands auto generated by Alembic - please adjust! ###
23
+ with op.batch_alter_table("diagnostic", schema=None) as batch_op:
24
+ batch_op.drop_constraint("uq_diagnostic_slug", type_="unique")
25
+
26
+ # ### end Alembic commands ###
27
+
28
+
29
+ def downgrade() -> None:
30
+ # ### commands auto generated by Alembic - please adjust! ###
31
+ with op.batch_alter_table("diagnostic", schema=None) as batch_op:
32
+ batch_op.create_unique_constraint("uq_diagnostic_slug", ["slug"])
33
+
34
+ # ### end Alembic commands ###
@@ -19,7 +19,7 @@ class Diagnostic(CreatedUpdatedMixin, Base):
19
19
  __table_args__ = (UniqueConstraint("provider_id", "slug", name="diagnostic_ident"),)
20
20
 
21
21
  id: Mapped[int] = mapped_column(primary_key=True)
22
- slug: Mapped[str] = mapped_column(unique=True)
22
+ slug: Mapped[str] = mapped_column()
23
23
  """
24
24
  Unique identifier for the diagnostic
25
25
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: climate-ref
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: Application which runs the CMIP Rapid Evaluation Framework
5
5
  Author-email: Jared Lewis <jared.lewis@climate-resource.com>, Mika Pflueger <mika.pflueger@climate-resource.com>, Bouwe Andela <b.andela@esciencecenter.nl>, Jiwoo Lee <lee1043@llnl.gov>, Min Xu <xum1@ornl.gov>, Nathan Collier <collierno@ornl.gov>, Dora Hegedus <dora.hegedus@stfc.ac.uk>
6
6
  License-Expression: Apache-2.0
@@ -1,7 +1,7 @@
1
1
  climate_ref/__init__.py,sha256=M45QGfl0KCPK48A8MjI08weNvZHMYH__GblraQMxsoM,808
2
2
  climate_ref/_config_helpers.py,sha256=-atI5FX7SukhLE_jz_rL-EHQ7s0YYqKu3dSFYWxSyMU,6632
3
3
  climate_ref/alembic.ini,sha256=WRvbwSIFuZ7hWNMnR2-yHPJAwYUnwhvRYBzkJhtpGdg,3535
4
- climate_ref/config.py,sha256=T1WzwFhzJ2-RKnOzyOmyUsdXrj_KDW2eycdPXZKnbf0,16954
4
+ climate_ref/config.py,sha256=4jlqYnR5es9fmKI3sfT9snnutH342o9XAMf6ipNS2lI,17083
5
5
  climate_ref/constants.py,sha256=9RaNLgUSuQva7ki4eRW3TjOKeVP6T81QNiu0veB1zVk,111
6
6
  climate_ref/database.py,sha256=b_6XHdr78Mo7KeLqQJ5DjLsySHPdQE83P8dRpdMfzfM,8661
7
7
  climate_ref/provider_registry.py,sha256=dyfj4vU6unKHNXtT03HafQtAi3LilL37uvu3paCnmNY,4159
@@ -34,16 +34,17 @@ climate_ref/migrations/env.py,sha256=8GvBLhGTuQy6MKYMj7QszJEQ2LNewf1Z9kB9dBHQs9I
34
34
  climate_ref/migrations/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
35
35
  climate_ref/migrations/versions/2025-05-02T1418_341a4aa2551e_regenerate.py,sha256=S8Q4THCI4TPnlaQHgQJUCiNW5LAyQClaiTB-0dwhtXU,14050
36
36
  climate_ref/migrations/versions/2025-05-09T2032_03dbb4998e49_series_metric_value.py,sha256=s9nZ_l64pSF7sWN53rRPCQlqW_xHqR8tlWhU-ovmsME,2043
37
+ climate_ref/migrations/versions/2025-07-03T1505_795c1e6cf496_drop_unique_requirement_on_slug.py,sha256=TfBHJkm3oPlz0P5Z1tiY6LBp2B1oDvdyL_OOYoV-OiI,984
37
38
  climate_ref/models/__init__.py,sha256=rUDKRANeAEAHVOrzJVIZoZ99dDG5O4AGzHmOpC876Nc,801
38
39
  climate_ref/models/base.py,sha256=YMyovT2Z_tRv59zz6qC9YCCDodhO3x6OLnFdBtPJkho,1271
39
40
  climate_ref/models/dataset.py,sha256=Rpwrx0HqOJBHs4Sb4n6B0In__Uo0PqXSZKvZR-juGCg,7491
40
- climate_ref/models/diagnostic.py,sha256=YB6xzbEXdpz2j-Ddf19RV8mAiWBrkmtRmiAEUV3tl4Q,1762
41
+ climate_ref/models/diagnostic.py,sha256=0mKVvASEWNxx41R2Y-5VxplarZ4JAP6q0oaO14FKZuk,1751
41
42
  climate_ref/models/execution.py,sha256=lRCpaKLSR7rZbuoL94GW76tm9wLMsSDoIOA7bIa6xgY,9848
42
43
  climate_ref/models/metric_value.py,sha256=44OLcZz-qLx-p_9w7YWDKpD5S7Y9HyTKKsvSb77RBro,10190
43
44
  climate_ref/models/provider.py,sha256=RAE2qAAxwObu-72CdK4kt5ACMmKYEn07WJm7DU9hF28,990
44
- climate_ref-0.6.2.dist-info/METADATA,sha256=1yFQ4n5psYiBtO6jmhhEMdWkpOhM74sD_rE92XXm3Do,4505
45
- climate_ref-0.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
46
- climate_ref-0.6.2.dist-info/entry_points.txt,sha256=IaggEJlDIhoYWXdXJafacWbWtCcoEqUKceP1qD7_7vU,44
47
- climate_ref-0.6.2.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
48
- climate_ref-0.6.2.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
49
- climate_ref-0.6.2.dist-info/RECORD,,
45
+ climate_ref-0.6.4.dist-info/METADATA,sha256=2SVSEweQ-ZaXnnpymVG9iBc8ImUBwQwnVF9Y2-0tJz8,4505
46
+ climate_ref-0.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
47
+ climate_ref-0.6.4.dist-info/entry_points.txt,sha256=IaggEJlDIhoYWXdXJafacWbWtCcoEqUKceP1qD7_7vU,44
48
+ climate_ref-0.6.4.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
49
+ climate_ref-0.6.4.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
50
+ climate_ref-0.6.4.dist-info/RECORD,,