diff --git a/CHANGELOG.md b/CHANGELOG.md index e7953502..8c57d1c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ This is the changelog for the Infrahub SDK. All notable changes to this project will be documented in this file. -Issue tracking is located in [Github](https://github.com/opsmill/infrahub/issues). +Issue tracking is located in [GitHub](https://github.com/opsmill/infrahub/issues). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). @@ -11,6 +11,28 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.7.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.2) - 2025-03-07 + +### Added + +- Added logger to `InfrahubGenerator` class to allow users use built-in logging (`self.logger`) to show logging within Infrahub CI pipeline. + +### Changed + +- Aligned the environment variables used by `infrahubctl` with the environment variables used by the SDK. +- Allowed the `infrahubctl transform` command to return a regular string that does not get converted to a JSON string. +- Changed InfrahubNode/InfrahubNodeSync `artifact_fetch` and `artifact_generate` methods to use the name of the artifact instead of the name of the artifact definition. + +### Fixed + +- `protocols` CTL command properly gets default branch setting from environment variable. ([#104](https://github.com/opsmill/infrahub-sdk-python/issues/104)) +- Fixed typing for Python 3.9 and removed support for Python 3.13. ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251)) +- Removed default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264)) + +### Housekeeping + +- Moved the function `read_file` from the ctl module to the SDK. + ## [1.7.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.1) - 2025-01-30 ### Removed diff --git a/changelog/+add-logger-to-generator-class.md b/changelog/+add-logger-to-generator-class.md deleted file mode 100644 index ab8be4d5..00000000 --- a/changelog/+add-logger-to-generator-class.md +++ /dev/null @@ -1 +0,0 @@ -Added logger to `InfrahubGenerator` class to allow users use built-in logging (`self.logger`) to show logging within Infrahub CI pipeline. diff --git a/changelog/+align-infrahubctl-env-vars.md b/changelog/+align-infrahubctl-env-vars.md deleted file mode 100644 index 8699f945..00000000 --- a/changelog/+align-infrahubctl-env-vars.md +++ /dev/null @@ -1 +0,0 @@ -Aligned the environment variables used by the `infrahubctl` with the environment variables used by the SDK diff --git a/changelog/+artifact_methods.changed.md b/changelog/+artifact_methods.changed.md deleted file mode 100644 index 72ec55e9..00000000 --- a/changelog/+artifact_methods.changed.md +++ /dev/null @@ -1 +0,0 @@ -Changes InfrahubNode/InfrahubNodeSync `artifact_fetch` and `artifact_generate` methods to use the name of the artifact instead of the name of the artifact definition diff --git a/changelog/+ctl-transform-return-string.md b/changelog/+ctl-transform-return-string.md deleted file mode 100644 index 4c9ea917..00000000 --- a/changelog/+ctl-transform-return-string.md +++ /dev/null @@ -1 +0,0 @@ -Allows the `infrahubctl transform` to return a regular string that does not get converted to a JSON string. \ No newline at end of file diff --git a/changelog/+move-read-file.housekeeping.md b/changelog/+move-read-file.housekeeping.md deleted file mode 100644 index e9d818c5..00000000 --- a/changelog/+move-read-file.housekeeping.md +++ /dev/null @@ -1 +0,0 @@ -Move the function `read_file` from the ctl module to the SDK. \ No newline at end of file diff --git a/changelog/104.fixed.md b/changelog/104.fixed.md deleted file mode 100644 index e6e64a72..00000000 --- a/changelog/104.fixed.md +++ /dev/null @@ -1 +0,0 @@ -- `protocols` CTL command properly gets default branch setting from environment variable \ No newline at end of file diff --git a/changelog/251.fixed.md b/changelog/251.fixed.md deleted file mode 100644 index 84e39163..00000000 --- a/changelog/251.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fix typing for Python 3.9 and remove support for Python 3.13 \ No newline at end of file diff --git a/changelog/264.fixed.md b/changelog/264.fixed.md deleted file mode 100644 index da596b06..00000000 --- a/changelog/264.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Remove default value "main" for branch parameter from all Infrahub CTL commands. \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 3b60de6a..d433ec45 100644 --- a/poetry.lock +++ b/poetry.lock @@ -737,13 +737,13 @@ testing = ["Django", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] [[package]] name = "jinja2" -version = "3.1.5" +version = "3.1.6" description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" files = [ - {file = "jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb"}, - {file = "jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"}, + {file = "jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67"}, + {file = "jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index c451c3ed..e316dffe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-sdk" -version = "1.7.1" +version = "1.7.2" description = "Python Client to interact with Infrahub" authors = ["OpsMill "] readme = "README.md"