Merge master into development#457
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.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 77 out of 89 changed files in this pull request and generated 4 comments.
Files not reviewed (10)
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeChange_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayRequest_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayResponse_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Attribute_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/DeleteSuperseded_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Delete_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/List_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Refresh_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Signing_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Unlock_pb2.py: Language not supported
…hy>=42.0.0 doc_scan/requirements.txt pinned cryptography==41.0.7 which conflicts with the SDK's install_requires (cryptography>=42.0.0), breaking the CI examples job. Updated both example requirements files and clarified the headers to reflect that they contain SDK-inherited range constraints.
- requirements.in: cryptography>=41.0.7 -> >=42.0.0 to match setup.py, remove leading blank line - tests.yaml: reinstall local SDK after AML/Django examples, which pin yoti==2.14.0 from PyPI and would otherwise override the editable install - flask/doc_scan requirements.txt: clarify # via yoti (installed separately) annotations since yoti is no longer in requirements.in
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 77 out of 89 changed files in this pull request and generated no new comments.
Files not reviewed (10)
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeChange_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayRequest_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/AttributeDisplayResponse_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Attribute_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/DeleteSuperseded_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Delete_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/List_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Refresh_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Signing_pb2.py: Language not supported
- yoti_python_sdk/protobuf/attrpubapi_v1/Unlock_pb2.py: Language not supported



No description provided.