Skip to content

Commit

Permalink
Release 0.2.22 (#1040)
Browse files Browse the repository at this point in the history
# Description

Please describe the change you have made.

## Checklist

- [ ] Tests added/updated.
- [ ] Run Demo Job Locally.
- [ ] Documentation updated.
- [ ] Changelogs updated in
[CHANGELOG.cdf-tk.md](https://github.com/cognitedata/toolkit/blob/main/CHANGELOG.cdf-tk.md).
- [ ] Template changelogs updated in
[CHANGELOG.templates.md](https://github.com/cognitedata/toolkit/blob/main/CHANGELOG.templates.md).
- [ ] Version bumped.

[_version.py](https://github.com/cognitedata/toolkit/blob/main/cognite/cognite_toolkit/_version.py)
and

[pyproject.toml](https://github.com/cognitedata/toolkit/blob/main/pyproject.toml)
per [semantic versioning](https://semver.org/).
  • Loading branch information
doctrino authored Oct 3, 2024
2 parents 1be6cf1 + 317a975 commit 16fadb0
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,6 @@ build.*
cognite_toolkit/.env.*
module_upgrade/project_inits
function_local_venvs/
# For newer versions of the toolkit
tests/data/run_data/build_info.dev.yaml
cdf.toml
7 changes: 7 additions & 0 deletions CHANGELOG.cdf-tk.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.2.22] - 2024-10-03

### Fixed

- On `Windows` if you use a no `utf-8` encoded files, the `cdf-tk` deploy no longer raises
`ERROR [ERROR]: SourceFileModifiedWarning: The source file...`

## [0.2.21] - 2024-09-13

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.2.22] - 2024-10-03

No changes to templates.

## [0.2.21] - 2024-09-13

No changes to templates.
Expand Down
7 changes: 6 additions & 1 deletion cognite_toolkit/_cdf_tk/_migration.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
- version: 0.2.21
- version: 0.2.22
cognite_modules: {}
resources: {}
tool: {}
cognite_modules_hash: ""
- version: 0.2.21
cognite_modules: {}
resources: {}
tool: {}
cognite_modules_hash: "7c4a533b6c06cf9399b4e1aa8a784c0da54a5b5c6bedf96ed52848aa85fcb6da"
- version: 0.2.20
cognite_modules: {}
resources: {}
Expand Down
2 changes: 1 addition & 1 deletion cognite_toolkit/_cdf_tk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ def calculate_secure_hash(item: dict[str, Any]) -> str:
def calculate_str_or_file_hash(content: str | Path) -> str:
sha256_hash = hashlib.sha256()
if isinstance(content, Path):
content = content.read_text(encoding="utf-8")
content = safe_read(content)
# Get rid of Windows line endings to make the hash consistent across platforms.
sha256_hash.update(content.encode("utf-8").replace(b"\r\n", b"\n"))
return sha256_hash.hexdigest()
Expand Down
2 changes: 1 addition & 1 deletion cognite_toolkit/_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ packages:
- example_pump_data_model

# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
2 changes: 1 addition & 1 deletion cognite_toolkit/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.21"
__version__ = "0.2.22"
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 = "cognite_toolkit"
version = "0.2.21"
version = "0.2.22"
description = "Official Cognite Data Fusion tool for project templates and configuration deployment"
authors = ["Cognite AS <support@cognite.com>"]
license = "Apache-2"
Expand Down
2 changes: 1 addition & 1 deletion tests/data/build_core_model/_build_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ project: project-loader-dev
type: dev
selected:
- modules
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ project: pytest-project
type: dev
selected:
- modules
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
2 changes: 1 addition & 1 deletion tests/data/project_for_test/_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ packages:
- child_module

# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
2 changes: 1 addition & 1 deletion tests/data/project_no_cognite_modules/_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
packages: {}

# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
2 changes: 1 addition & 1 deletion tests/data/project_with_bad_modules/_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
packages: {}

# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22
2 changes: 1 addition & 1 deletion tests/data/run_data/_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ packages:
- example_pump_data_model

# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.21
cdf_toolkit_version: 0.2.22

0 comments on commit 16fadb0

Please sign in to comment.