Skip to content

Commit

Permalink
Release 0.2.1 (#660)
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 Jun 17, 2024
2 parents 038f435 + d98a8f7 commit e2da7f1
Show file tree
Hide file tree
Showing 99 changed files with 4,123 additions and 2,198 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
# Skipping 3.10 and 3.11 as we assume it is covered by 3.9 and 3.12
- "3.12"
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -84,7 +84,7 @@ jobs:
IDP_CLIENT_SECRET: ${{ secrets.IDP_CLIENT_SECRET }}
IDP_TOKEN_URL: ${{ secrets.IDP_TOKEN_URL }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -34,7 +34,7 @@ jobs:
IDP_CLIENT_SECRET: ${{ secrets.IDP_CLIENT_SECRET }}
IDP_TOKEN_URL: ${{ secrets.IDP_TOKEN_URL }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,4 @@ cognite_toolkit/config.local.yaml
.venv.*
build.*
cognite_toolkit/.env.*
tests_migrations/project_inits
3 changes: 0 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ repos:
args:
- --fix
- --exit-non-zero-on-fix
- --line-length=120
- --ignore=E731,E501,W605,T201,UP007
# See https://beta.ruff.rs/docs/rules for an overview of ruff rules
- --select=E,W,F,I,T,RUF,TID,UP
- --fixable=E,W,F,I,T,RUF,TID,UP
- --target-version=py39
- id: ruff-format
args:
- --line-length=120
rev: v0.4.8

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
57 changes: 54 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,63 @@
//"--dry-run",
//"--env=local",
//"--include=transformations"
//"--init-dir=foo"
//"--arrow"
//"--help"
//"--init-dir=foo",
//"--help",
//"--package=quickstart"
//"--package=empty",
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: feature flags",
"type": "debugpy",
"request": "launch",
"program": "./cdf-tk-dev.py",
"args": [
"features",
"list",
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: feature flag set",
"type": "debugpy",
"request": "launch",
"program": "./cdf-tk-dev.py",
"args": [
"features",
"set",
"--flag=interactive_init",
"--enabled=true",

],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: feature flags reset",
"type": "debugpy",
"request": "launch",
"program": "./cdf-tk-dev.py",
"args": [
"features",
"reset",
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: modules init",
"type": "debugpy",
"request": "launch",
"program": "./cdf-tk-dev.py",
"args": [
"modules",
"init" ],
"console": "integratedTerminal",
"justMyCode": false
},
]
}
23 changes: 23 additions & 0 deletions CHANGELOG.cdf-tk.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.2.1] - 2024-06-17

### Improved

- When running `cdf-tk auth verify`, if the client does not have access to the `CDF_PROJECT` the user will now get
a more informative error message.
- When running `cdf-tk auth verify` and missing the `FunctionAcl(READ)` capability, the user will now get a more
informative error message when checking the function service status

## Fixed

- When running `cdf-tk build`, you would get a `DuplicatedItemWarning` on RAW Databases that are used with multiple
tables. This is now fixed.

### Added

- Preview feature `MODULES_CMD` to allow interactive init and automatic upgrade of modules. Activate by running
`cdf-tk features set MODULES_CMD --enable`, and deactivate by running `cdf-tk features set MODULES_CMD --disable`.
Run `cdf-tk modules init/upgrade` to interactively initialize or upgrade modules.

## [0.2.0] - 2024-06-10

### Fixed
Expand All @@ -23,6 +43,9 @@ Changes are grouped as follows:
`ValueError: No capabilities given`. This is now fixed.
- When deploying `containers` resources with an index, the `cdf-tk deploy` would consider the resource as changed
even though it was not. This is now fixed.
- When parsing yaml without `libyaml`, `cognite-toolkit` would raise an
`AttributeError: module 'yaml' has no attribute 'CSafeLoader'`. This is now fixed by falling back to the
python `yaml` parser if `libyaml` (c-based) is not available.

## [0.2.0b4] - 2024-06-06

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.1] - 2024-06-17

No changes to templates.

## [0.2.0] - 2024-06-10

No changes to templates.
Expand Down
Loading

0 comments on commit e2da7f1

Please sign in to comment.