Skip to content

Commit 9c0329e

Browse files
authored
feat: Update to latest SDK (#73)
* feat: update to SDK 0.7.0 and Go 1.24.7 * chore: improve config and update * chore: improve pre-commit configuration * chore: improve pre-commit configuration * chore: add '.release-please-config.json' * chore: bump version 0.2.17 -> 0.2.18
1 parent 1de6bc0 commit 9c0329e

15 files changed

+74
-31
lines changed

.github/workflows/build-golang-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
4848
# - uses: ./.github/workflows/platform-integration-test.yaml
4949
# with:
50-
# wheel: dist/otdf_python-0.2.18-py3-none-any.whl
50+
# wheel: dist/otdf_python-0.2.19-py3-none-any.whl

.github/workflows/build-golang-ubuntu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
4444
- uses: actions/cache/restore@v4
4545
with:
46-
path: dist/otdf_python-0.2.18-py3-none-any.whl
46+
path: dist/otdf_python-0.2.19-py3-none-any.whl
4747
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
4848

4949
- uses: actions/cache/save@v4
5050
with:
51-
path: dist/otdf_python-0.2.18-py3-none-any.whl
51+
path: dist/otdf_python-0.2.19-py3-none-any.whl
5252
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
5353
restore-keys: |
5454
${{ runner.os }}${{ matrix.python3_version }}-data-
@@ -61,5 +61,5 @@ jobs:
6161
needs: build
6262
uses: ./.github/workflows/platform-integration-test.yaml
6363
with:
64-
wheel: dist/otdf_python-0.2.18-py3-none-any.whl
64+
wheel: dist/otdf_python-0.2.19-py3-none-any.whl
6565
python_version: ${{ matrix.python3_version }}

.github/workflows/platform-integration-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/cache/restore@v4
3131
with:
32-
path: dist/otdf_python-0.2.18-py3-none-any.whl
32+
path: dist/otdf_python-0.2.19-py3-none-any.whl
3333
key: ${{ runner.os }}${{ inputs.python_version }}-data-${{ github.sha }}
3434

3535
- name: Prove that the input file is available

.pre-commit-config.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
default_install_hook_types:
3+
- pre-commit
4+
- commit-msg
5+
- post-rewrite
26
exclude: |
37
(?x)^(
48
otdf_python/.*
@@ -7,7 +11,7 @@ exclude: |
711
# See https://pre-commit.com/hooks.html for more hooks#
812
repos:
913
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v5.0.0
14+
rev: v6.0.0
1115
hooks:
1216
- id: check-yaml
1317
- id: end-of-file-fixer
@@ -40,9 +44,15 @@ repos:
4044

4145
- repo: https://github.com/astral-sh/ruff-pre-commit
4246
# Ruff version.
43-
rev: v0.12.5
47+
rev: v0.12.12
4448
hooks:
4549
# Run the linter.
4650
- id: ruff
4751
# Run the formatter.
4852
- id: ruff-format
53+
- repo: https://github.com/compilerla/conventional-pre-commit
54+
rev: v4.2.0
55+
hooks:
56+
- id: conventional-pre-commit
57+
stages: [commit-msg,post-rewrite]
58+
args: [--verbose,--scopes=feat,fix,docs,style,test,chore,ci]

.release-please-config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "python"
5+
}
6+
}
7+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Install from the [Python Package Index (PyPI)](https://pypi.org):
2727
pip install otdf_python
2828

2929
# Install a pinned version
30-
pip install otdf-python==0.2.18
30+
pip install otdf-python==0.2.19
3131

3232
# Install a pinned version, from test.pypi.org
33-
pip install -i https://test.pypi.org/simple/ otdf-python==0.2.18
33+
pip install -i https://test.pypi.org/simple/ otdf-python==0.2.19
3434
```
3535

3636
## Usage

build-scripts/ci-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ echo "✨✨✨ Build wheel"
7272
poetry run python3 setup.py bdist_wheel
7373

7474
echo "✨✨✨ Install wheel"
75-
pip install dist/otdf_python-0.2.18-py3-none-any.whl
75+
pip install dist/otdf_python-0.2.19-py3-none-any.whl

build-scripts/make_and_validate_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ python3 -m pip install --upgrade setuptools wheel
4747
python3 setup.py bdist_wheel
4848

4949
# Prove that the wheel can be installed
50-
pip install dist/otdf_python-0.2.18-py3-none-any.whl
50+
pip install dist/otdf_python-0.2.19-py3-none-any.whl
5151

5252
if [[ "$SKIP_TESTS" == "-s" || "$SKIP_TESTS" == "--skip-tests" ]]; then
5353
echo "Build is complete, skipping tests."

build-scripts/uv_make_and_validate_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ loud_print "Installing wheel"
7070
uv venv .venv-wheel --python 3.12 "$PY_TYPE"
7171
source "${BUILD_ROOT}/.venv-wheel/bin/activate"
7272
pip install pybindgen
73-
pip install dist/otdf_python-0.2.18-py3-none-any.whl
73+
pip install dist/otdf_python-0.2.19-py3-none-any.whl
7474

7575
if [[ "$SKIP_TESTS" == "-s" || "$SKIP_TESTS" == "--skip-tests" ]]; then
7676
echo "Build is complete, skipping tests."

go.mod

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
module gotdf_python
22

3-
go 1.24.5
3+
go 1.24.7
44

5-
require github.com/opentdf/platform/sdk v0.6.1
5+
require github.com/opentdf/platform/sdk v0.7.0
66

77
require (
8-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250717185734-6c6e0d3c608e.1 // indirect
8+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.8-20250717185734-6c6e0d3c608e.1 // indirect
99
connectrpc.com/connect v1.18.1 // indirect
1010
github.com/Masterminds/semver/v3 v3.4.0 // indirect
1111
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
1212
github.com/goccy/go-json v0.10.5 // indirect
1313
github.com/google/uuid v1.6.0 // indirect
1414
github.com/gowebpki/jcs v1.0.1 // indirect
1515
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2 // indirect
16-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
16+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
1717
github.com/lestrrat-go/blackmagic v1.0.4 // indirect
1818
github.com/lestrrat-go/httpcc v1.0.1 // indirect
1919
github.com/lestrrat-go/httprc v1.0.6 // indirect
2020
github.com/lestrrat-go/iter v1.0.2 // indirect
2121
github.com/lestrrat-go/jwx/v2 v2.1.6 // indirect
2222
github.com/lestrrat-go/option v1.0.1 // indirect
23-
github.com/opentdf/platform/lib/ocrypto v0.3.0 // indirect
24-
github.com/opentdf/platform/protocol/go v0.6.2 // indirect
23+
github.com/opentdf/platform/lib/ocrypto v0.5.0 // indirect
24+
github.com/opentdf/platform/protocol/go v0.8.0 // indirect
2525
github.com/segmentio/asm v1.2.0 // indirect
2626
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
2727
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
2828
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
29-
golang.org/x/crypto v0.40.0 // indirect
30-
golang.org/x/net v0.42.0 // indirect
29+
golang.org/x/crypto v0.41.0 // indirect
30+
golang.org/x/net v0.43.0 // indirect
3131
golang.org/x/oauth2 v0.30.0 // indirect
32-
golang.org/x/sys v0.34.0 // indirect
33-
golang.org/x/text v0.27.0 // indirect
34-
google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0 // indirect
35-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0 // indirect
36-
google.golang.org/grpc v1.74.2 // indirect
37-
google.golang.org/protobuf v1.36.6 // indirect
32+
golang.org/x/sys v0.35.0 // indirect
33+
golang.org/x/text v0.28.0 // indirect
34+
google.golang.org/genproto/googleapis/api v0.0.0-20250826171959-ef028d996bc1 // indirect
35+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250826171959-ef028d996bc1 // indirect
36+
google.golang.org/grpc v1.75.0 // indirect
37+
google.golang.org/protobuf v1.36.8 // indirect
3838
)

0 commit comments

Comments
 (0)