Skip to content

Commit

Permalink
Merge pull request #52 from bsc-dom/4.1
Browse files Browse the repository at this point in the history
4.1
  • Loading branch information
marcmonfort authored Nov 21, 2024
2 parents 34117f4 + 0da2f0f commit 9fb5151
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 24 deletions.
14 changes: 0 additions & 14 deletions CHANGES.rst

This file was deleted.

3 changes: 1 addition & 2 deletions PUBLISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

**Prerequisite**: Have a dataClay's pypi and testpypi account with owner access.

1. Run `tox` to format and check tests.
1. Run `nox` to format and check tests.
2. Push a new commit `release version <VERSION>` where you:
- Update `dataclay.__version__` from `dataclay.__init__` to `<VERSION>`
- Add `Released YYYY-MM-DD` to `CHANGES.rst`

3. Create and push a new tag:

Expand Down
16 changes: 16 additions & 0 deletions docs/reference/dataclay.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Exceptions
==========

General dataClay exceptions
---------------------------

.. automodule:: dataclay.exceptions
:members:
:show-inheritance:

Proxy exceptions
----------------

.. automodule:: dataclay.proxy.exceptions
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ API Reference
dataclay.client
dataclay.backend
dataclay.metadata
dataclay.exceptions
aliendco
annotations
20 changes: 20 additions & 0 deletions docs/releasenotes/4-x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,23 @@ Other changes
- Offering a new :doc:`Zenoh bridging mechanism </contrib/zenoh>` (similar to the :doc:`MQTT </contrib/mqtt>` one).
- Removed the session and password authentication. This feature will be handled by the proxy going forward.
- Added healthcheck mechanisms (at the gRPC level) to monitor the status of the dataClay services.

4.1 (November 2024)
-------------------

This minor release brings some bug fixes to the features introduced in 4.0, and also some new features.

Highlights
~~~~~~~~~~

- Official support for Python 3.13.
- Improved granularity and semantic of raised exceptions. The list and description of all the current
exceptions can be found in the :doc:`/reference/dataclay.exceptions` reference page.
- Fixed behavior of the proxy. Now the code works properly in an async configuration.
- More detailed examples and utility functions to support JWT tokens in the proxy side.
- Better defaults for the logging system.
- Improved and expanded documentation for Telemetry.
- Build system is now using `nox <https://nox.thea.codes>`_.
- Support for PyCOMPSs
`constraints <https://compss-doc.readthedocs.io/en/stable/Sections/09_PyCOMPSs_Notebooks/syntax/5_UsingConstraints.html>`_.
Should work out of the box with dataClay 4.1 and the upcoming COMPSs version.
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__ = "4.0.1.dev"
__version__ = "4.1.0"
__all__ = ["Client", "DataClayObject", "AlienDataClayObject", "activemethod", "StorageObject"]
8 changes: 1 addition & 7 deletions src/dataclay/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
""" All dataClay exceptions are colected in this file. """
"""In general, dataClay will prefer to raise the exceptions defined below."""


class DataClayException(Exception):
"""Base class for exceptions in this module."""

pass


##################
# NEW EXCEPTIONS #
##################


##############
# KV Generic #
##############
Expand Down
3 changes: 3 additions & 0 deletions src/dataclay/proxy/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
"""The middleware can throw the exceptions defined below."""

class MiddlewareException(Exception):
"""Exception raised for errors in the middleware."""
status_code = None

0 comments on commit 9fb5151

Please sign in to comment.