Skip to content

Commit

Permalink
release version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Canicula98 committed Jun 21, 2024
1 parent d3226b2 commit 4832560
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 4.0.0
-------------

Released 2024-06-21

Version 3.1.0
-------------

Expand Down
2 changes: 1 addition & 1 deletion src/dataclay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

StorageObject = DataClayObject

__version__ = "3.1.1.dev"
__version__ = "4.0.0"
__all__ = ["Client", "DataClayObject", "AlienDataClayObject", "activemethod", "StorageObject"]
2 changes: 1 addition & 1 deletion src/dataclay/client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def __aexit__(self, *excinfo):
@tracer.start_as_current_span("get_backends")
def get_backends(self) -> dict[UUID, BackendClient]:
"""Get all backends available in the system.
This method connects to the metadata service and retrieves an up-to-date
list of backends.
"""
Expand Down
11 changes: 8 additions & 3 deletions src/dataclay/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@

class BackendSettings(BaseSettings):
"""These settings are exclusive to the Backend service.
The configuration fields can be established through environment variables with the prefix ``DATACLAY_BACKEND_``.
For example, to set the :attr:`host` field, you can set the environment variable ``DATACLAY_BACKEND_HOST``.
"""

model_config = SettingsConfigDict(
env_prefix="dataclay_backend_", env_file=".env", secrets_dir="/run/secrets", extra="ignore"
)
Expand All @@ -52,6 +53,7 @@ class MetadataSettings(BaseSettings):
The configuration fields can be established through environment variables with the prefix ``DATACLAY_METADATA_``.
For example, to set the :attr:`host` field, you can set the environment variable ``DATACLAY_METADATA_HOST``.
"""

model_config = SettingsConfigDict(
env_prefix="dataclay_metadata_", env_file=".env", secrets_dir="/run/secrets", extra="ignore"
)
Expand All @@ -68,9 +70,10 @@ class MetadataSettings(BaseSettings):

class ProxySettings(BaseSettings):
"""These settings are exclusive to the Proxy service.
The configuration fields can be established through environment variables with the prefix ``DATACLAY_PROXY_``.
For example, to set the :attr:`mds_host` field, you can set the environment variable ``DATACLAY_PROXY_MDS_HOST``."""

model_config = SettingsConfigDict(
env_prefix="dataclay_proxy_", env_file=".env", secrets_dir="/run/secrets", extra="ignore"
)
Expand All @@ -90,10 +93,11 @@ class ProxySettings(BaseSettings):

class ClientSettings(BaseSettings):
"""These settings are consumed by the dataClay :class:`~dataclay.client.api.Client`.
The configuration fields can be established through environment variables with the prefix ``DC_``.
For example, to set the :attr:`dataset` field, you can set the environment variable ``DC_DATASET``.
"""

model_config = SettingsConfigDict(
env_prefix="dc_", env_file=".env", secrets_dir="/run/secrets", extra="ignore"
)
Expand Down Expand Up @@ -132,6 +136,7 @@ class ClientSettings(BaseSettings):

class Settings(BaseSettings):
"""Global configuration settings for dataClay."""

model_config = SettingsConfigDict(
env_prefix="dataclay_", env_file=".env", secrets_dir="/run/secrets", extra="ignore"
)
Expand Down

0 comments on commit 4832560

Please sign in to comment.