diff --git a/examples/doc_scan/.env.example b/examples/doc_scan/.env.example index 950e65a9..4ddabdca 100644 --- a/examples/doc_scan/.env.example +++ b/examples/doc_scan/.env.example @@ -1,3 +1,3 @@ # Required Keys YOTI_CLIENT_SDK_ID=yourClientSdkId -YOTI_KEY_FILE_PATH=yourKeyFilePath +YOTI_KEY_FILE_PATH=yourKeyFilePath \ No newline at end of file diff --git a/examples/doc_scan/requirements.txt b/examples/doc_scan/requirements.txt index 38b136a4..847bda88 100644 --- a/examples/doc_scan/requirements.txt +++ b/examples/doc_scan/requirements.txt @@ -1,34 +1,66 @@ # -# This file is autogenerated by pip-compile -# To update, run: +# 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 yoti -certifi==2020.4.5.1 # via requests -cffi==1.14.0 # via cryptography -chardet==3.0.4 # via requests -click==7.1.2 # via flask -cryptography==3.2 # via pyopenssl, yoti -deprecated==1.2.10 # via yoti -filetype==1.0.7 # via -r requirements.in -flask==1.1.2 # via -r requirements.in -future==0.18.2 # via yoti -idna==2.9 # via requests -iso8601==0.1.13 # via yoti -itsdangerous==1.1.0 # via flask -jinja2==2.11.2 # via flask -markupsafe==1.1.1 # via jinja2 -protobuf==3.11.3 # via yoti -pycparser==2.20 # via cffi -pyopenssl==19.1.0 # via -r requirements.in, yoti -python-dotenv==0.13.0 # via -r requirements.in -requests==2.23.0 # via yoti -six==1.14.0 # via cryptography, protobuf, pyopenssl -urllib3==1.25.9 # via requests -werkzeug==1.0.1 # via flask -wrapt==1.12.1 # via deprecated -yoti==2.13.0 # via -r requirements.in +asn1==2.2.0 + # via yoti +certifi==2020.4.5.1 + # via requests +cffi==1.14.0 + # via cryptography +chardet==3.0.4 + # via requests +click==7.1.2 + # via flask +cryptography==3.2 + # via + # pyopenssl + # yoti +deprecated==1.2.10 + # via yoti +filetype==1.0.7 + # via -r requirements.in +flask==1.1.2 + # via -r requirements.in +future==0.18.2 + # via yoti +idna==2.9 + # via requests +iso8601==0.1.13 + # via yoti +itsdangerous==1.1.0 + # via flask +jinja2==2.11.2 + # via flask +markupsafe==1.1.1 + # via jinja2 +protobuf==3.11.3 + # via yoti +pycparser==2.20 + # via cffi +pyopenssl==19.1.0 + # via + # -r requirements.in + # yoti +python-dotenv==0.13.0 + # via -r requirements.in +requests==2.23.0 + # via yoti +six==1.14.0 + # via + # cryptography + # protobuf + # pyopenssl +urllib3==1.25.9 + # via requests +werkzeug==1.0.1 + # via flask +wrapt==1.12.1 + # via deprecated +yoti==2.13.0 + # via -r requirements.in # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/requirements.in b/requirements.in index f25ecb5c..f4eccb5d 100644 --- a/requirements.in +++ b/requirements.in @@ -1,15 +1,14 @@ asn1==2.2.0 # asn1 2.3.0 introduces enum34 as a dependency, which causes problems on some envs -cryptography==2.8.0 +cryptography>=42.0.0 cffi==1.14.3 -future==0.18.2 itsdangerous==1.1.0 pbr==1.10.0 protobuf==4.21.12 -pyopenssl==19.1.0 -PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4 -pytz==2022.1 -requests>=2.20.0 +pyopenssl>=24.0.0 +PyYAML==5.2 +pytz>=2025.2 +requests>=2.31.0 urllib3>=1.24.3 -deprecated==1.2.10 +deprecated>=1.2.14 wheel==0.33.6 -iso8601==0.1.13 +iso8601>=1.1.0 diff --git a/requirements.txt b/requirements.txt index ac3a5451..8451f87c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.9 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.12 +# by the following command: # # pip-compile --output-file=requirements.txt requirements.in # @@ -12,19 +12,17 @@ cffi==1.14.3 # via # -r requirements.in # cryptography -chardet==3.0.4 +charset-normalizer==3.4.2 # via requests -cryptography==2.8 +cryptography==45.0.5 # via # -r requirements.in # pyopenssl -deprecated==1.2.10 - # via -r requirements.in -future==0.18.2 +deprecated==1.2.18 # via -r requirements.in idna==2.7 # via requests -iso8601==0.1.13 +iso8601==2.1.0 # via -r requirements.in itsdangerous==1.1.0 # via -r requirements.in @@ -34,19 +32,16 @@ protobuf==4.21.12 # via -r requirements.in pycparser==2.18 # via cffi -pyopenssl==19.1.0 +pyopenssl==25.1.0 # via -r requirements.in -pytz==2022.1 +pytz==2025.2 # via -r requirements.in pyyaml==5.2 # via -r requirements.in -requests==2.21.0 +requests==2.32.4 # via -r requirements.in -six==1.10.0 - # via - # cryptography - # protobuf - # pyopenssl +typing-extensions==4.14.1 + # via pyopenssl urllib3==1.24.3 # via # -r requirements.in @@ -55,6 +50,3 @@ wheel==0.33.6 # via -r requirements.in wrapt==1.11.2 # via deprecated - -# The following packages are considered to be unsafe in a requirements file: -# setuptools diff --git a/setup.py b/setup.py index 1564e16e..a549d76c 100644 --- a/setup.py +++ b/setup.py @@ -17,16 +17,16 @@ url="https://github.com/getyoti/yoti-python-sdk", author="Yoti", author_email="websdk@yoti.com", + python_requires=">=3.9", install_requires=[ - "deprecated==1.2.10", - "cryptography>=2.2.1", - "protobuf==3.20.1", - "requests>=2.11.1", - "future>=0.11.0", - "asn1==2.2.0", - "pyopenssl>=18.0.0", - "iso8601==0.1.13", - "pytz==2022.1", + "asn1==2.2.0", # still pinned due to enum34 issue + "cryptography>=42.0.0", + "protobuf==4.21.12", + "requests>=2.31.0", + "pyopenssl>=24.0.0", + "pytz>=2025.2", + "iso8601>=1.1.0", + "deprecated>=1.2.14", ], extras_require={ "examples": [ @@ -34,18 +34,20 @@ "Flask>=1.0.4", "python-dotenv>=0.7.1", "django-sslserver>=0.22.0", - "Werkzeug==1.0.1", + "Werkzeug==2.1.2", ], "dev": [ - "pre-commit==1.17.0", + "pre-commit==2.16.0", "pytest>=4.6.11", "pytest-cov>=2.7.1", "pylint==1.9.4", "pylint-exit>=1.1.0", "python-coveralls==2.9.3", - "coverage==4.5.4", + "coverage>=7.4.0", "mock==2.0.0", - "virtualenv==20.1.0", + "virtualenv==20.15.1", + "flake8==4.0.1", + "pip-tools==6.6.2", ], }, classifiers=[ @@ -54,13 +56,11 @@ "Operating System :: OS Independent", "Intended Audience :: Developers", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", ], keywords="yoti sdk 2FA multifactor authentication verification identity login register verify 2Factor", diff --git a/sonar-project.properties b/sonar-project.properties index 1adb1c05..ab430c3e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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.2 +sonar.projectVersion = 2.14.4 sonar.exclusions = yoti_python_sdk/tests/**,examples/**,yoti_python_sdk/protobuf/**/* sonar.python.pylint.reportPath = coverage.out diff --git a/yoti_python_sdk/version.py b/yoti_python_sdk/version.py index 072a54c4..b2779b96 100644 --- a/yoti_python_sdk/version.py +++ b/yoti_python_sdk/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "2.14.2" +__version__ = "2.14.4"