Skip to content

Commit e26fbbf

Browse files
authored
Merge pull request #12 from b-long/develop
Update OpenTDF sdk v0.3.13"
2 parents 9251e7b + 255d8cb commit e26fbbf

File tree

9 files changed

+33
-143
lines changed

9 files changed

+33
-143
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Test Python wheel
9898
run: |
9999
# Test wheel installation
100-
pip install dist/otdf_python-0.0.12-py3-none-any.whl
100+
pip install dist/otdf_python-0.0.13-py3-none-any.whl
101101
102102
# Test wheel functionality
103103
# python3 validate_otdf_python.py

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Test Python wheel
128128
run: |
129129
# Test wheel installation
130-
pip install dist/otdf_python-0.0.12-py3-none-any.whl
130+
pip install dist/otdf_python-0.0.13-py3-none-any.whl
131131
132132
# DISABLED: Need to figure out Ubuntu nested VM
133133
# Test wheel functionality

.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.6.7
43+
rev: v0.6.8
4444
hooks:
4545
# Run the linter.
4646
- id: ruff

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def get_encrypt_config(data_attributes: list | None = None):
7878
else:
7979
# Create config without attributes
8080
config: EncryptionConfig = EncryptionConfig(
81-
ClientId=testing_credentials.TDF_NPE_CLIENT,
82-
ClientSecret=testing_credentials.TDF_NPE_CLIENT_SECRET,
83-
PlatformEndpoint=testing_credentials.PLATFORM_ENDPOINT,
84-
TokenEndpoint=testing_credentials.OIDC_AUTH_URL,
85-
KasUrl=testing_credentials.KAS_URL,
81+
ClientId="opentdf-sdk",
82+
ClientSecret="secret",
83+
PlatformEndpoint=platformEndpoint,
84+
TokenEndpoint="http://localhost:8888/auth/realms/opentdf/protocol/openid-connect/token",
85+
KasUrl=f"http://{platformEndpoint}/kas",
8686
)
8787

8888
# NOTE: Structs from golang can be printed, like below

go.mod

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,39 @@
11
module gotdf_python
22

3-
go 1.22
3+
go 1.22.0
44

5-
require (
6-
github.com/go-python/gopy v0.4.10
7-
github.com/opentdf/platform/sdk v0.3.12
8-
)
5+
toolchain go1.23.2
6+
7+
require github.com/opentdf/platform/sdk v0.3.13
98

109
require (
1110
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.34.2-20240920164238-5a7b106cbb87.2 // indirect
1211
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
1312
github.com/goccy/go-json v0.10.3 // indirect
14-
github.com/gonuts/commander v0.4.1 // indirect
15-
github.com/gonuts/flag v0.1.0 // indirect
1613
github.com/google/uuid v1.6.0 // indirect
1714
github.com/gowebpki/jcs v1.0.1 // indirect
1815
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect
1916
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
20-
github.com/hashicorp/errwrap v1.1.0 // indirect
21-
github.com/hashicorp/go-multierror v1.1.1 // indirect
2217
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
2318
github.com/lestrrat-go/httpcc v1.0.1 // indirect
2419
github.com/lestrrat-go/httprc v1.0.6 // indirect
2520
github.com/lestrrat-go/iter v1.0.2 // indirect
2621
github.com/lestrrat-go/jwx/v2 v2.1.1 // indirect
2722
github.com/lestrrat-go/option v1.0.1 // indirect
28-
github.com/opentdf/platform/lib/ocrypto v0.1.5 // indirect
29-
github.com/opentdf/platform/protocol/go v0.2.16 // indirect
30-
github.com/pkg/errors v0.9.1 // indirect
31-
github.com/posener/complete v1.2.3 // indirect
23+
github.com/opentdf/platform/lib/ocrypto v0.1.6 // indirect
24+
github.com/opentdf/platform/protocol/go v0.2.17 // indirect
3225
github.com/segmentio/asm v1.2.0 // indirect
3326
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
3427
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
3528
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
3629
golang.org/x/crypto v0.27.0 // indirect
37-
golang.org/x/mod v0.21.0 // indirect
3830
golang.org/x/net v0.29.0 // indirect
3931
golang.org/x/oauth2 v0.23.0 // indirect
40-
golang.org/x/sync v0.8.0 // indirect
4132
golang.org/x/sys v0.25.0 // indirect
4233
golang.org/x/text v0.18.0 // indirect
4334
golang.org/x/tools v0.25.0 // indirect
44-
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
45-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
46-
google.golang.org/grpc v1.67.0 // indirect
35+
google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f // indirect
36+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect
37+
google.golang.org/grpc v1.67.1 // indirect
4738
google.golang.org/protobuf v1.34.2 // indirect
4839
)

go.sum

Lines changed: 13 additions & 114 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "otdf-python"
33
# Should match 'setup.py' version number (used for gopy/pybindgen)
4-
version = "0.0.12"
4+
version = "0.0.13"
55
description = ""
66
authors = ["b-long <[email protected]>"]
77
readme = "README.md"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
url="https://github.com/b-long/opentdf-python-sdk",
2525
package_data={"otdf_python": ["*.so"]},
2626
# Should match 'pyproject.toml' version number
27-
version="0.0.12",
27+
version="0.0.13",
2828
author_email="[email protected]",
2929
include_package_data=True,
3030
)

setup_ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def build_extension(self, ext: Extension):
8181

8282
setuptools.setup(
8383
name="otdf_python",
84-
version="0.0.12",
84+
version="0.0.13",
8585
author="b-long",
8686
description="Unofficial OpenTDF SDK for Python.",
8787
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)