Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- run: pip install -r requirements.txt

- run: pip install -e .[dev]
- run: pip install -e ".[dev]"

- run: pytest --cov=yoti_python_sdk yoti_python_sdk/tests --cov-report=xml:coverage-reports/coverage-new.xml

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ jobs:

- run: pip install --upgrade setuptools

- run: pip install -e .

Comment thread
mehmet-yoti marked this conversation as resolved.
Comment thread
mehmet-yoti marked this conversation as resolved.
- run: pushd examples/aml && pip install -r requirements.txt && popd

- run: pushd examples/yoti_example_django && pip install --upgrade pip && pip install -r requirements.txt && popd

# Reinstall local SDK after AML/Django, which pin yoti==2.14.0 from PyPI and override it
- run: pip install -e .

- run: pushd examples/yoti_example_flask && pip install -r requirements.txt && popd

- run: pushd examples/doc_scan && pip install -r requirements.txt && popd
14 changes: 7 additions & 7 deletions examples/doc_scan/requirements.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Core requirements
flask>=2.2.0
python-dotenv>=0.21.0
yoti==2.14.0
# yoti will be installed separately in CI from local source
filetype>=1.0.7
pyopenssl==23.2.0
click >=8.0
pyopenssl>=24.0.0
click>=8.0
future>=1.0.0

# Required for yoti compatibility
deprecated==1.2.10
iso8601==0.1.13
pytz==2020.4

deprecated>=1.2.14
iso8601>=1.1.0
pytz>=2025.2
44 changes: 20 additions & 24 deletions examples/doc_scan/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
# This file was generated by pip-compile and has been updated to reflect
# the SDK's install_requires constraints (>=). To fully regenerate, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0
# via yoti
# via yoti (installed separately)

blinker==1.9.0
# via flask
Expand All @@ -19,26 +19,25 @@ click==8.1.8
# via
# -r requirements.in
# flask
cryptography==41.0.7

cryptography>=42.0.0
# via
# pyopenssl
# yoti
deprecated==1.2.10

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
Comment thread
mehmet-yoti marked this conversation as resolved.
# via
Comment thread
mehmet-yoti marked this conversation as resolved.
# -r requirements.in
# yoti
idna==2.9
# via requests
iso8601==0.1.13

iso8601>=1.1.0
# via
# -r requirements.in
# yoti
Expand All @@ -51,34 +50,31 @@ markupsafe==3.0.2
# jinja2
# werkzeug

protobuf==3.11.3
# via yoti
pycparser==2.20
protobuf==4.21.12
# via yoti (installed separately)
pycparser==2.22
# via cffi

pyopenssl==23.2.0
pyopenssl>=24.0.0
# via
# -r requirements.in
# yoti
python-dotenv==1.1.0
# via -r requirements.in
pytz==2020.4
pytz>=2025.2
# via
# -r requirements.in
# yoti
requests==2.23.0
# via yoti
six==1.14.0
requests>=2.31.0
# via yoti (installed separately)
six>=1.16.0
# via protobuf
urllib3==1.25.9
# via requests
werkzeug==3.1.3
# via flask
wrapt==1.17.2

# via deprecated
yoti==2.14.0
# via -r requirements.in
# yoti will be installed separately in CI from local source

# The following packages are considered to be unsafe in a requirements file:
# setuptools
10 changes: 6 additions & 4 deletions examples/yoti_example_flask/requirements.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
click>=7
cffi>=1.15.0
cryptography>=42.0.0
flask>=1.0.4
future>=1.0.0
jinja2>=3.0.3
pyopenssl>=19.0.0
pyopenssl>=24.0.0
python-dotenv>=0.7.1
requests>=2.20.0
requests>=2.31.0
urllib3>=1.24.2
yoti>=2.14.0
# yoti will be installed separately in CI from local source
werkzeug>=1.0.1
six==1.16.0
six==1.16.0
41 changes: 21 additions & 20 deletions examples/yoti_example_flask/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
# This file was generated by pip-compile and has been updated to reflect
# the SDK's install_requires constraints (>=). To fully regenerate, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0
# via yoti
# via yoti (installed separately)
certifi==2018.4.16
# via requests
cffi==1.15.0
Expand All @@ -18,41 +18,43 @@ click==8.1.2
# via
# -r requirements.in
# flask
cryptography==3.2
cryptography>=42.0.0
# via
# pyopenssl
Comment thread
mehmet-yoti marked this conversation as resolved.
# yoti
deprecated==1.2.10
# via yoti
deprecated==1.2.18
# via yoti (installed separately)
flask==1.1.1
Comment thread
mehmet-yoti marked this conversation as resolved.
# via -r requirements.in
future==0.16.0
# via yoti
future==1.0.0
# via
# -r requirements.in
# yoti
idna==2.7
# via requests
iso8601==0.1.13
# via yoti
itsdangerous==0.24
iso8601>=1.1.0
# via yoti (installed separately)
itsdangerous==1.1.0
# via flask
jinja2==3.0.3
# via
# -r requirements.in
# flask
markupsafe==2.0.1
# via jinja2
protobuf==3.6.0
# via yoti
protobuf==4.21.12
# via yoti (installed separately)
pycparser==2.18
# via cffi
pyopenssl==19.0.0
pyopenssl>=24.0.0
# via
# -r requirements.in
# yoti
python-dotenv==0.8.2
python-dotenv>=0.7.1
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.21.0
pytz>=2025.2
# via yoti (installed separately)
requests>=2.31.0
# via
# -r requirements.in
# yoti
Expand All @@ -72,8 +74,7 @@ werkzeug==1.0.1
# flask
wrapt==1.12.1
# via deprecated
yoti==2.14.0
# via -r requirements.in
# yoti will be installed separately in CI from local source

# The following packages are considered to be unsafe in a requirements file:
# setuptools
5 changes: 3 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
asn1==2.2.0
cryptography>=41.0.7
cryptography>=42.0.0
cffi>=1.16.0
future>=0.18.3
itsdangerous>=2.1.2
pbr>=5.11.1
protobuf==3.20.3
protobuf>=4.21.12
pyopenssl>=24.0.0
PyYAML>=6.0
pytz>=2025.2
Expand All @@ -14,3 +14,4 @@ deprecated>=1.2.14
wheel>=0.41.0
iso8601>=1.1.0
wrapt>=1.15.0

17 changes: 2 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#

# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:

#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0
# via -r requirements.in
certifi==2018.11.29
# via requests

cffi==1.17.1
# via
# -r requirements.in
Expand All @@ -21,32 +18,25 @@ cryptography==44.0.2
# via
# -r requirements.in
# pyopenssl

deprecated==1.2.18
# via -r requirements.in
future==1.0.0
# via -r requirements.in
idna==2.7
# via requests

iso8601==2.1.0
# via -r requirements.in
itsdangerous==2.2.0

# via -r requirements.in
pbr==6.1.1
# via -r requirements.in

protobuf==3.20.3

protobuf==4.21.12
# via -r requirements.in
pycparser==2.18
# via cffi
pyopenssl==25.0.0
# via -r requirements.in

pytz==2025.2

# via -r requirements.in
pyyaml==6.0.2
# via -r requirements.in
Expand All @@ -67,6 +57,3 @@ wrapt==1.17.2

# The following packages are considered to be unsafe in a requirements file:
# setuptools



5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
url="https://github.com/getyoti/yoti-python-sdk",
author="Yoti",
author_email="websdk@yoti.com",
python_requires=">=3.9",
install_requires=[


"asn1==2.2.0", # still pinned due to enum34 issue
"cryptography>=42.0.0",
"protobuf==3.20.3",
"protobuf>=4.21.12",
"requests>=2.31.0",
"pyopenssl>=24.0.0",
"pytz>=2025.2",
Expand Down Expand Up @@ -57,7 +59,6 @@
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python",

"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sonar.host.url = https://sonarcloud.io
sonar.organization = getyoti
sonar.projectKey = getyoti:python
sonar.projectName = Python SDK
sonar.projectVersion = 2.14.3
sonar.projectVersion = 2.14.5
sonar.exclusions = yoti_python_sdk/tests/**,examples/**,yoti_python_sdk/protobuf/**/*

sonar.python.pylint.reportPath = coverage.out
Expand Down
2 changes: 1 addition & 1 deletion yoti_python_sdk/anchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import OpenSSL
import asn1
import yoti_python_sdk.protobuf.common_public_api.SignedTimestamp_pb2 as compubapi
import yoti_python_sdk.protobuf.compubapi_v1.SignedTimestamp_pb2 as compubapi
from OpenSSL import crypto

from yoti_python_sdk import config
Expand Down
Loading
Loading