diff --git a/CHANGELOG.md b/CHANGELOG.md index 6162718b..c242a18c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,29 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [0.14.0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.14.0) - 2024-10-04 + +### Removed + +- Removed depreceted methods InfrahubClient.init and InfrahubClientSync.init ([#33](https://github.com/opsmill/infrahub-sdk-python/issues/33)) + +### Changed + +- Query filters are not validated locally anymore, the validation will be done on the server side instead. ([#9](https://github.com/opsmill/infrahub-sdk-python/issues/9)) +- Method client.get() can now return `None` instead of raising an exception when `raise_when_missing` is set to False + + ```python + response = await clients.get( + kind="CoreRepository", name__value="infrahub-demo", raise_when_missing=False + ) + ``` ([#11](https://github.com/opsmill/infrahub-sdk-python/issues/11)) + +### Fixed + +- prefix and address attribute filters are now available in the Python SDK ([#10](https://github.com/opsmill/infrahub-sdk-python/issues/10)) +- Queries using isnull as a filter are now supported by the Python SDK ([#30](https://github.com/opsmill/infrahub-sdk-python/issues/30)) +- `execute_graphql` method for InfrahubClient(Sync) now properly considers the `default_branch` setting ([#46](https://github.com/opsmill/infrahub-sdk-python/issues/46)) + ## [0.13.1.dev0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.13.1.dev0) - 2024-09-24 ### Added diff --git a/changelog/10.fixed.md b/changelog/10.fixed.md deleted file mode 100644 index 6fc778c5..00000000 --- a/changelog/10.fixed.md +++ /dev/null @@ -1 +0,0 @@ -prefix and address attribute filters are now available in the Python SDK \ No newline at end of file diff --git a/changelog/11.changed.md b/changelog/11.changed.md deleted file mode 100644 index a72fa814..00000000 --- a/changelog/11.changed.md +++ /dev/null @@ -1,7 +0,0 @@ -Method client.get() can now return `None` instead of raising an exception when `raise_when_missing` is set to False - -```python -response = await clients.get( - kind="CoreRepository", name__value="infrahub-demo", raise_when_missing=False -) -``` \ No newline at end of file diff --git a/changelog/30.fixed.md b/changelog/30.fixed.md deleted file mode 100644 index 5cbce266..00000000 --- a/changelog/30.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Queries using isnull as a filter are now supported by the Python SDK \ No newline at end of file diff --git a/changelog/46.fixed.md b/changelog/46.fixed.md deleted file mode 100644 index b21af46d..00000000 --- a/changelog/46.fixed.md +++ /dev/null @@ -1 +0,0 @@ -`execute_graphql` method for InfrahubClient(Sync) now properly considers the `default_branch` setting diff --git a/changelog/9.changed.md b/changelog/9.changed.md deleted file mode 100644 index 92417330..00000000 --- a/changelog/9.changed.md +++ /dev/null @@ -1 +0,0 @@ -Query filters are not validated locally anymore, the validation will be done on the server side instead. \ No newline at end of file diff --git a/infrahub_sdk/client.py b/infrahub_sdk/client.py index 7f9e6fd2..2b2ab0b3 100644 --- a/infrahub_sdk/client.py +++ b/infrahub_sdk/client.py @@ -3,7 +3,6 @@ import asyncio import copy import logging -import warnings from functools import wraps from time import sleep from typing import ( @@ -305,19 +304,6 @@ def _initialize(self) -> None: self._request_method: AsyncRequester = self.config.requester or self._default_request_method self.group_context = InfrahubGroupContext(self) - @classmethod - async def init( - cls, - address: str = "", - config: Optional[Union[Config, dict[str, Any]]] = None, - ) -> InfrahubClient: - warnings.warn( - "InfrahubClient.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version", - DeprecationWarning, - stacklevel=1, - ) - return cls(address=address, config=config) - @overload async def create( self, @@ -1434,19 +1420,6 @@ def _initialize(self) -> None: self._request_method: SyncRequester = self.config.sync_requester or self._default_request_method self.group_context = InfrahubGroupContextSync(self) - @classmethod - def init( - cls, - address: str = "", - config: Optional[Union[Config, dict[str, Any]]] = None, - ) -> InfrahubClientSync: - warnings.warn( - "InfrahubClientSync.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version", - DeprecationWarning, - stacklevel=1, - ) - return cls(address=address, config=config) - @overload def create( self, diff --git a/pyproject.toml b/pyproject.toml index b114f5db..2dc2a983 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-sdk" -version = "0.14.0-dev0" +version = "0.14.0" description = "Python Client to interact with Infrahub" authors = ["OpsMill "] readme = "README.md"