Skip to content

Commit 5a2e025

Browse files
authored
Merge pull request #58 from opsmill/bdl-20241004-release
v0.14.0 Release Prep
2 parents 4ce6b04 + d1f06e8 commit 5a2e025

File tree

8 files changed

+24
-39
lines changed

8 files changed

+24
-39
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [0.14.0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.14.0) - 2024-10-04
15+
16+
### Removed
17+
18+
- Removed depreceted methods InfrahubClient.init and InfrahubClientSync.init ([#33](https://github.com/opsmill/infrahub-sdk-python/issues/33))
19+
20+
### Changed
21+
22+
- 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))
23+
- Method client.get() can now return `None` instead of raising an exception when `raise_when_missing` is set to False
24+
25+
```python
26+
response = await clients.get(
27+
kind="CoreRepository", name__value="infrahub-demo", raise_when_missing=False
28+
)
29+
``` ([#11](https://github.com/opsmill/infrahub-sdk-python/issues/11))
30+
31+
### Fixed
32+
33+
- prefix and address attribute filters are now available in the Python SDK ([#10](https://github.com/opsmill/infrahub-sdk-python/issues/10))
34+
- Queries using isnull as a filter are now supported by the Python SDK ([#30](https://github.com/opsmill/infrahub-sdk-python/issues/30))
35+
- `execute_graphql` method for InfrahubClient(Sync) now properly considers the `default_branch` setting ([#46](https://github.com/opsmill/infrahub-sdk-python/issues/46))
36+
1437
## [0.13.1.dev0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.13.1.dev0) - 2024-09-24
1538
1639
### Added

changelog/10.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/11.changed.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

changelog/30.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/46.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/9.changed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrahub_sdk/client.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import asyncio
44
import copy
55
import logging
6-
import warnings
76
from functools import wraps
87
from time import sleep
98
from typing import (
@@ -305,19 +304,6 @@ def _initialize(self) -> None:
305304
self._request_method: AsyncRequester = self.config.requester or self._default_request_method
306305
self.group_context = InfrahubGroupContext(self)
307306

308-
@classmethod
309-
async def init(
310-
cls,
311-
address: str = "",
312-
config: Optional[Union[Config, dict[str, Any]]] = None,
313-
) -> InfrahubClient:
314-
warnings.warn(
315-
"InfrahubClient.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version",
316-
DeprecationWarning,
317-
stacklevel=1,
318-
)
319-
return cls(address=address, config=config)
320-
321307
@overload
322308
async def create(
323309
self,
@@ -1434,19 +1420,6 @@ def _initialize(self) -> None:
14341420
self._request_method: SyncRequester = self.config.sync_requester or self._default_request_method
14351421
self.group_context = InfrahubGroupContextSync(self)
14361422

1437-
@classmethod
1438-
def init(
1439-
cls,
1440-
address: str = "",
1441-
config: Optional[Union[Config, dict[str, Any]]] = None,
1442-
) -> InfrahubClientSync:
1443-
warnings.warn(
1444-
"InfrahubClientSync.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version",
1445-
DeprecationWarning,
1446-
stacklevel=1,
1447-
)
1448-
return cls(address=address, config=config)
1449-
14501423
@overload
14511424
def create(
14521425
self,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "infrahub-sdk"
3-
version = "0.14.0-dev0"
3+
version = "0.14.0"
44
description = "Python Client to interact with Infrahub"
55
authors = ["OpsMill <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)