Skip to content

Commit 06ba299

Browse files
authored
Merge pull request #47 from b-long/develop
Python SDK v0.2.11 : Update OpenTDF SDK to v0.4.2 , pass authScopes as parameter
2 parents 916c85c + ae6e276 commit 06ba299

17 files changed

+110
-188
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.10-py3-none-any.whl
50+
# wheel: dist/otdf_python-0.2.11-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.10-py3-none-any.whl
46+
path: dist/otdf_python-0.2.11-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.10-py3-none-any.whl
51+
path: dist/otdf_python-0.2.11-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.10-py3-none-any.whl
64+
wheel: dist/otdf_python-0.2.11-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.10-py3-none-any.whl
32+
path: dist/otdf_python-0.2.11-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
4242
# Ruff version.
43-
rev: v0.8.0
43+
rev: v0.11.6
4444
hooks:
4545
# Run the linter.
4646
- id: ruff

README.md

Lines changed: 4 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.10
30+
pip install otdf-python==0.2.11
3131

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

3636
## Usage
@@ -96,6 +96,7 @@ tdf_manifest_json = EncryptString(
9696
inputText="Hello from Python",
9797
config=config,
9898
dataAttributes=da,
99+
authScopes=Slice_string(["email"]),
99100
)
100101
```
101102

@@ -141,6 +142,7 @@ with tempfile.TemporaryDirectory() as tmpDir:
141142
outputFilePath=str(SOME_ENCRYPTED_FILE),
142143
config=config,
143144
dataAttributes=da,
145+
authScopes=Slice_string(["email"]),
144146
)
145147

146148
print(f"The output file was written to destination path: {outputFilePath}")

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.10-py3-none-any.whl
75+
pip install dist/otdf_python-0.2.11-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.10-py3-none-any.whl
50+
pip install dist/otdf_python-0.2.11-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.10-py3-none-any.whl
73+
pip install dist/otdf_python-0.2.11-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: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
module gotdf_python
22

3-
go 1.23.0
3+
go 1.24.0
44

5-
toolchain go1.24.1
5+
toolchain go1.24.2
66

7-
require github.com/opentdf/platform/sdk v0.3.29
7+
require github.com/opentdf/platform/sdk v0.4.2
88

99
require (
10-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.5-20250307204501-0409229c3780.1 // indirect
10+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250307204501-0409229c3780.1 // indirect
11+
github.com/Masterminds/semver/v3 v3.3.1 // indirect
1112
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
1213
github.com/goccy/go-json v0.10.5 // indirect
1314
github.com/google/uuid v1.6.0 // indirect
1415
github.com/gowebpki/jcs v1.0.1 // indirect
1516
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1 // indirect
1617
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
17-
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
18+
github.com/lestrrat-go/blackmagic v1.0.3 // indirect
1819
github.com/lestrrat-go/httpcc v1.0.1 // indirect
1920
github.com/lestrrat-go/httprc v1.0.6 // indirect
2021
github.com/lestrrat-go/iter v1.0.2 // indirect
21-
github.com/lestrrat-go/jwx/v2 v2.1.4 // indirect
22+
github.com/lestrrat-go/jwx/v2 v2.1.5 // indirect
2223
github.com/lestrrat-go/option v1.0.1 // indirect
2324
github.com/opentdf/platform/lib/ocrypto v0.1.9 // indirect
24-
github.com/opentdf/platform/protocol/go v0.2.29 // indirect
25+
github.com/opentdf/platform/protocol/go v0.3.0 // indirect
2526
github.com/segmentio/asm v1.2.0 // indirect
2627
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
2728
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
2829
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
29-
golang.org/x/crypto v0.36.0 // indirect
30-
golang.org/x/net v0.37.0 // indirect
31-
golang.org/x/oauth2 v0.28.0 // indirect
32-
golang.org/x/sys v0.31.0 // indirect
33-
golang.org/x/text v0.23.0 // indirect
34-
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
35-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
36-
google.golang.org/grpc v1.71.0 // indirect
37-
google.golang.org/protobuf v1.36.5 // indirect
30+
golang.org/x/crypto v0.37.0 // indirect
31+
golang.org/x/net v0.39.0 // indirect
32+
golang.org/x/oauth2 v0.29.0 // indirect
33+
golang.org/x/sys v0.32.0 // indirect
34+
golang.org/x/text v0.24.0 // indirect
35+
google.golang.org/genproto/googleapis/api v0.0.0-20250414145226-207652e42e2e // indirect
36+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e // indirect
37+
google.golang.org/grpc v1.71.1 // indirect
38+
google.golang.org/protobuf v1.36.6 // indirect
3839
)

0 commit comments

Comments
 (0)