Skip to content

Commit

Permalink
Merge pull request #40 from getindata/release-0.3.4
Browse files Browse the repository at this point in the history
Release 0.3.4
  • Loading branch information
marrrcin committed Dec 30, 2022
2 parents c44deba + 2a24dbf commit 2b525e4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.3
current_version = 0.3.4

[bumpversion:file:pyproject.toml]

Expand Down
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Kedro plugin with Azure ML Pipelines support
docs_url: https://kedro-azureml.readthedocs.io/
full_name: Kedro Azure ML Pipelines plugin
github_url: https://github.com/getindata/kedro-azureml
initial_version: 0.3.3
initial_version: 0.3.4
keywords:
- kedro
- mlops
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Test with tox
run: |
pip install tox-pip-version tox-gh-actions
pip install tox-pip-version tox-gh-actions "tox<4.0.0"
tox -v
- name: Store coverage reports
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [0.3.4] - 2022-12-30

- Add lazy initialization and cache to Kedro's context in the `KedroContextManager` class to prevent re-loading

## [0.3.3] - 2022-12-08

- Upgrade `azure-ai-ml` to `>=1.2.0` to adress code upload file ignore issues (see <https://github.com/Azure/azure-sdk-for-python/pull/27338#issuecomment-1337454472> and <https://github.com/getindata/kedro-azureml/issues/33>).
Expand Down Expand Up @@ -36,7 +40,9 @@

- Initial plugin release

[Unreleased]: https://github.com/getindata/kedro-azureml/compare/0.3.3...HEAD
[Unreleased]: https://github.com/getindata/kedro-azureml/compare/0.3.4...HEAD

[0.3.4]: https://github.com/getindata/kedro-azureml/compare/0.3.3...0.3.4

[0.3.3]: https://github.com/getindata/kedro-azureml/compare/0.3.2...0.3.3

Expand Down
2 changes: 1 addition & 1 deletion kedro_azureml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.3.3"
__version__ = "0.3.4"

import warnings

Expand Down
13 changes: 7 additions & 6 deletions kedro_azureml/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass
from functools import lru_cache
from functools import cached_property
from typing import Any, Optional

from kedro.framework.context import KedroContext
from kedro.framework.session import KedroSession

from kedro_azureml.config import KedroAzureMLConfig
Expand All @@ -21,19 +20,21 @@ def __init__(
self.extra_params = extra_params
self.env = env
self.package_name = package_name
self.context: Optional[KedroContext] = None
self.session: Optional[KedroSession] = None

@property
@lru_cache()
@cached_property
def context(self):
assert self.session is not None, "Session not initialized yet"
return self.session.load_context()

@cached_property
def plugin_config(self) -> KedroAzureMLConfig:
return KedroAzureMLConfig.parse_obj(self.context.config_loader.get("azureml*"))

def __enter__(self):
self.session = KedroSession.create(
self.package_name, env=self.env, extra_params=self.extra_params
)
self.context = self.session.load_context()
return self

def __exit__(self, exc_type, exc_val, exc_tb):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kedro-azureml"
version = "0.3.3"
version = "0.3.4"
description = "Kedro plugin with Azure ML Pipelines support"
readme = "README.md"
authors = ['marcin.zablocki <marcin.zablocki@getindata.com>']
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sonar.tests=tests/
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.9

sonar.projectVersion=0.3.3
sonar.projectVersion=0.3.4
sonar.projectDescription=Kedro plugin with Azure ML Pipelines support
sonar.links.homepage=https://kedro-azureml.readthedocs.io/
sonar.links.ci=https://github.com/getindata/kedro-azureml/actions
Expand Down

0 comments on commit 2b525e4

Please sign in to comment.