Merge master into development#457
Open
mehmet-yoti wants to merge 13 commits into
Open
Conversation
Sdk 2267 python update dependencies
Sdk 2267 python update dependencies
Release/2.14.2
Python library updates
* SDK-2648 updated version of protobuf * Update version to 2.14.4 * SDK-2648: Update protobuf to 4.21.12+ * Remove accidentally committed virtual environment files from Flask example * Update doc_scan example requirements for protobuf 4.21.12 and SDK v2.14.4 * Update Flask example requirements for protobuf 4.21.12 and SDK v2.14.4 * updated versions in examples * Fix GitHub Actions workflow to install local SDK before example requirements
* Python library updates * added python static liveness check (#425) * update version files
Resolves conflicts by taking master's choices for: - Version bump to 2.14.5 (version.py, sonar-project.properties) - protobuf>=4.21.12 and Python 3.12 (requirements.in/txt, setup.py) - Reverts protobuf package rename: attribute_public_api -> attrpubapi_v1, common_public_api -> compubapi_v1, share_public_api -> sharepubapi_v1 (master's SDK-2648 regenerated these for protobuf 4.21.12) - examples/doc_scan/requirements.in cleaned up (master had duplicate/corrupt entries from a previous botched merge)
|
There was a problem hiding this comment.
Pull request overview
This PR syncs development with master by bumping the SDK version and migrating protobuf usage to new *_v1 package paths while updating dependency constraints (notably protobuf 4.x and Python 3.9+).
Changes:
- Bump SDK version to
2.14.5and align Sonar project version. - Replace legacy protobuf modules (
*_public_api) with newattrpubapi_v1,compubapi_v1, andsharepubapi_v1generated modules and update imports in SDK + tests. - Update dependency constraints and CI setup (protobuf 4.x, examples install the SDK from local source).
Reviewed changes
Copilot reviewed 86 out of 88 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| yoti_python_sdk/version.py | Version bump to 2.14.5. |
| sonar-project.properties | Align Sonar projectVersion with SDK version. |
| setup.py | Require Python >=3.9; update protobuf dependency to >=4.21.12. |
| requirements.in | Update protobuf constraint to >=4.21.12. |
| requirements.txt | Regenerated/pinned requirements with protobuf 4.21.12 and Py3.12 header. |
| .github/workflows/tests.yaml | Install SDK from local source before installing example requirements. |
| .github/workflows/sonar.yaml | Fix extras quoting for pip install -e ".[dev]". |
| yoti_python_sdk/protobuf/protobuf.py | Update protobuf imports to *_v1 packages. |
| yoti_python_sdk/anchor.py | Switch SignedTimestamp import to compubapi_v1. |
| yoti_python_sdk/share/extra_data.py | Switch protobuf imports to sharepubapi_v1. |
| yoti_python_sdk/tests/test_attribute_issuance_details.py | Update protobuf imports to sharepubapi_v1. |
| yoti_python_sdk/tests/test_anchor.py | Update protobuf imports to attrpubapi_v1. |
| yoti_python_sdk/tests/share/test_extra_data.py | Update protobuf imports to sharepubapi_v1. |
| yoti_python_sdk/protobuf/sharepubapi_v1/init.py | New package init for share protobufs. |
| yoti_python_sdk/protobuf/sharepubapi_v1/AgeVerificationSecret_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/CancelSharing_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/DataEntry_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/ExtraData_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/IdentityProfileShare_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/IssuingAttributes_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/Location_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/Policy_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/ReceiptPush_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/ScanYotiCompleteShare_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/SessionData_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/SharingNotificationPush_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/Sharing_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/sharepubapi_v1/ThirdPartyAttribute_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/init.py | New package init for common protobufs. |
| yoti_python_sdk/protobuf/compubapi_v1/Address_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/AdminReasonCode_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/AttributeLink_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/AttributeMigration_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/ChipInfo_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/DataPrivacy_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/DocumentFields_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/DocumentTypes_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/EncryptedData_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/Hmac_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/IdentityProfilePreview_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/IdentityProfileReport_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/IdentityProfile_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/MRZ_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/Metadata_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/OptionalTypes_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/RsaAuthDigest_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/Signature_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/SignedTimestamp_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/UserProfile_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/compubapi_v1/YotiYUV_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/init.py | New package init for attribute protobufs. |
| yoti_python_sdk/protobuf/attrpubapi_v1/AttributeChange_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayRequest_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayResponse_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/Attribute_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/DeleteSuperseded_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/Delete_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/List_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/Refresh_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/Signing_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/attrpubapi_v1/Unlock_pb2.py | New generated protobuf module. |
| yoti_python_sdk/protobuf/share_public_api/init.py | Remove legacy share protobuf package bootstrap. |
| yoti_python_sdk/protobuf/share_public_api/ThirdPartyAttribute_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/share_public_api/ThirdPartyAttribute_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/share_public_api/IssuingAttributes_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/share_public_api/IssuingAttributes_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/share_public_api/ExtraData_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/share_public_api/ExtraData_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/share_public_api/DataEntry_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/share_public_api/DataEntry_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/attribute_public_api/init.py | Remove legacy attribute protobuf package bootstrap. |
| yoti_python_sdk/protobuf/attribute_public_api/Signing_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/attribute_public_api/Signing_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/attribute_public_api/List_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/attribute_public_api/List_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/attribute_public_api/ContentType_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/attribute_public_api/ContentType_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/attribute_public_api/Attribute_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/attribute_public_api/Attribute_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/common_public_api/SignedTimestamp_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/common_public_api/SignedTimestamp_pb2.py | Remove legacy generated protobuf module. |
| yoti_python_sdk/protobuf/common_public_api/EncryptedData_pb2_grpc.py | Remove legacy generated gRPC stub. |
| yoti_python_sdk/protobuf/common_public_api/EncryptedData_pb2.py | Remove legacy generated protobuf module. |
| examples/yoti_example_flask/requirements.in | Remove yoti dependency; update constraints for local-source install. |
| examples/yoti_example_flask/requirements.txt | Update example deps (now intended to work with locally installed SDK). |
| examples/doc_scan/requirements.in | Remove yoti dependency; update constraints for local-source install. |
| examples/doc_scan/requirements.txt | Update example deps (now intended to work with locally installed SDK). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| _sym_db = _symbol_database.Default() | ||
|
|
||
|
|
||
| from devicepubapi_v1 import StaticCredentialAuth_pb2 as devicepubapi__v1_dot_StaticCredentialAuth__pb2 |
| _sym_db = _symbol_database.Default() | ||
|
|
||
|
|
||
| from devicepubapi_v1 import StaticCredentialAuth_pb2 as devicepubapi__v1_dot_StaticCredentialAuth__pb2 |
| _sym_db = _symbol_database.Default() | ||
|
|
||
|
|
||
| from devicepubapi_v1 import StaticCredentialAuth_pb2 as devicepubapi__v1_dot_StaticCredentialAuth__pb2 |
Comment on lines
+21
to
23
| cryptography>=42.0.0 | ||
| # via | ||
| # pyopenssl |
Comment on lines
+27
to
+36
| deprecated>=1.2.14 | ||
| # via | ||
| # -r requirements.in | ||
| # yoti | ||
| filetype==1.0.7 | ||
| # via -r requirements.in | ||
| flask==3.1.0 | ||
| flask>=2.2.0 | ||
| # via -r requirements.in | ||
| future==1.0.0 | ||
| # via yoti | ||
| future>=1.0.0 | ||
| # via |
Comment on lines
+41
to
+42
| - run: pip install -e . | ||
|
|
Comment on lines
+16
to
+19
| from yoti_python_sdk.protobuf.compubapi_v1 import Metadata_pb2 as compubapi__v1_dot_Metadata__pb2 | ||
| from yoti_python_sdk.protobuf.compubapi_v1 import IdentityProfile_pb2 as compubapi__v1_dot_IdentityProfile__pb2 | ||
| from devicepubapi_v1 import StaticCredentialAuth_pb2 as devicepubapi__v1_dot_StaticCredentialAuth__pb2 | ||
|
|
Comment on lines
+16
to
+19
| from yoti_python_sdk.protobuf.compubapi_v1 import Metadata_pb2 as compubapi__v1_dot_Metadata__pb2 | ||
| from yoti_python_sdk.protobuf.compubapi_v1 import DocumentTypes_pb2 as compubapi__v1_dot_DocumentTypes__pb2 | ||
| from devicepubapi_v1 import StaticCredentialAuth_pb2 as devicepubapi__v1_dot_StaticCredentialAuth__pb2 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.