Skip to content

Commit

Permalink
Merge pull request #367 from getyoti/release/2.14.1
Browse files Browse the repository at this point in the history
Release 2.14.1
  • Loading branch information
echarrod authored Jun 21, 2022
2 parents 3df1691 + c32e14b commit 8f019e3
Show file tree
Hide file tree
Showing 15 changed files with 152 additions and 147 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- run: sed -i 's+<source>.*</source>+<source>/home/travis/build/getyoti/yoti-python-sdk/yoti_python_sdk</source>+g' coverage-reports/coverage-new.xml
- run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage-reports/coverage-new.xml

- uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10-dev"]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2.1.4
- uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -40,14 +40,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.9

- run: pip install -U setuptools==45
- run: pip install --upgrade setuptools

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

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

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

- run: pushd examples/doc_scan && pip install -r requirements.txt && popd
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ examples/yoti_example_django/*.pem
examples/yoti_example_flask/*.pem

.scannerwork
.venv/
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
exclude: protobuf/
repos:
- repo: https://github.com/ambv/black
rev: stable
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args:
- --ignore=E501,W5
- --ignore=E501,W5
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Adding Features

Any features added must be fully tested and documented, with examples supplied in the pull request.
The feature must support the lowest Python version that the SDK supports (see [the travis file](.travis.yml) for all supported versions). The feature
The feature must support the lowest Python version that the SDK supports (see [the GitHub workflow tests file](./.github/workflows/tests.yaml) for all supported versions). The feature
must not introduce any unnecessary dependencies (although introducing a new third party library
is open for discussion if absolutely required).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Yoti also allows you to enable user details verification from your mobile app by

## Requirements

To see the versions of Python this SDK is compatible with, see the [.travis.yml](/.travis.yml) file.
To see the versions of Python this SDK is compatible with, see the [the GitHub workflow tests file](./.github/workflows/tests.yaml) file.

## Installing the SDK

Expand Down
8 changes: 5 additions & 3 deletions examples/yoti_example_flask/requirements.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
cffi>=1.14.0
click>=7
cffi>=1.15.0
flask>=1.0.4
jinja2>=2.8.1
jinja2>=3.0.3
pyopenssl>=19.0.0
python-dotenv>=0.7.1
requests>=2.20.0
urllib3>=1.24.2
yoti>=2.13.0
yoti>=2.14.0
werkzeug>=1.0.1
six==1.16.0
96 changes: 71 additions & 25 deletions examples/yoti_example_flask/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,79 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0 # via yoti
certifi==2018.4.16 # via requests
cffi==1.14.0 # via -r requirements.in, cryptography
chardet==3.0.4 # via requests
click==6.7 # via flask
cryptography==3.2 # via pyopenssl, yoti
deprecated==1.2.10 # via yoti
flask==1.1.1 # via -r requirements.in
future==0.16.0 # via yoti
idna==2.7 # via requests
iso8601==0.1.13 # via yoti
itsdangerous==0.24 # via flask
jinja2==2.10.1 # via -r requirements.in, flask
markupsafe==1.0 # via jinja2
protobuf==3.6.0 # via yoti
pycparser==2.18 # via cffi
pyopenssl==19.0.0 # via -r requirements.in, yoti
python-dotenv==0.8.2 # via -r requirements.in
requests==2.21.0 # via -r requirements.in, yoti
six==1.11.0 # via cryptography, protobuf, pyopenssl
urllib3==1.24.2 # via -r requirements.in, requests
werkzeug==1.0.1 # via -r requirements.in, flask
wrapt==1.12.1 # via deprecated
yoti==2.13.0 # via -r requirements.in
asn1==2.2.0
# via yoti
certifi==2018.4.16
# via requests
cffi==1.15.0
# via
# -r requirements.in
# cryptography
chardet==3.0.4
# via requests
click==8.1.2
# via
# -r requirements.in
# flask
cryptography==3.2
# via
# pyopenssl
# yoti
deprecated==1.2.10
# via yoti
flask==1.1.1
# via -r requirements.in
future==0.16.0
# via yoti
idna==2.7
# via requests
iso8601==0.1.13
# via yoti
itsdangerous==0.24
# via flask
jinja2==3.0.3
# via
# -r requirements.in
# flask
markupsafe==2.0.1
# via jinja2
protobuf==3.6.0
# via yoti
pycparser==2.18
# via cffi
pyopenssl==19.0.0
# via
# -r requirements.in
# yoti
python-dotenv==0.8.2
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.21.0
# via
# -r requirements.in
# yoti
six==1.16.0
# via
# -r requirements.in
# cryptography
# protobuf
# pyopenssl
urllib3==1.24.2
# via
# -r requirements.in
# requests
werkzeug==1.0.1
# via
# -r requirements.in
# flask
wrapt==1.12.1
# via deprecated
yoti==2.14.0
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pbr==1.10.0
protobuf==3.13.0
pyopenssl==19.1.0
PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4
pytz==2020.4
pytz==2022.1
requests>=2.20.0
urllib3>=1.24.3
deprecated==1.2.10
Expand Down
74 changes: 52 additions & 22 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,60 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0 # via -r requirements.in
certifi==2018.11.29 # via requests
cffi==1.14.3 # via -r requirements.in, cryptography
chardet==3.0.4 # via requests
cryptography==2.8 # via -r requirements.in, pyopenssl
deprecated==1.2.10 # via -r requirements.in
future==0.18.2 # via -r requirements.in
idna==2.7 # via requests
iso8601==0.1.13 # via -r requirements.in
itsdangerous==1.1.0 # via -r requirements.in
pbr==1.10.0 # via -r requirements.in
protobuf==3.13.0 # via -r requirements.in
pycparser==2.18 # via cffi
pyopenssl==19.1.0 # via -r requirements.in
pytz==2020.4 # via -r requirements.in
pyyaml==5.2 # via -r requirements.in
requests==2.21.0 # via -r requirements.in
six==1.10.0 # via cryptography, protobuf, pyopenssl
urllib3==1.24.3 # via -r requirements.in, requests
wheel==0.33.6 # via -r requirements.in
wrapt==1.11.2 # via deprecated
asn1==2.2.0
# via -r requirements.in
certifi==2018.11.29
# via requests
cffi==1.14.3
# via
# -r requirements.in
# cryptography
chardet==3.0.4
# via requests
cryptography==2.8
# via
# -r requirements.in
# pyopenssl
deprecated==1.2.10
# via -r requirements.in
future==0.18.2
# via -r requirements.in
idna==2.7
# via requests
iso8601==0.1.13
# via -r requirements.in
itsdangerous==1.1.0
# via -r requirements.in
pbr==1.10.0
# via -r requirements.in
protobuf==3.13.0
# via -r requirements.in
pycparser==2.18
# via cffi
pyopenssl==19.1.0
# via -r requirements.in
pytz==2022.1
# via -r requirements.in
pyyaml==5.2
# via -r requirements.in
requests==2.21.0
# via -r requirements.in
six==1.10.0
# via
# cryptography
# protobuf
# pyopenssl
urllib3==1.24.3
# via
# -r requirements.in
# requests
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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
install_requires=[
"deprecated==1.2.10",
"cryptography>=2.2.1",
"protobuf>=3.1.0",
"protobuf==3.13.0",
"requests>=2.11.1",
"future>=0.11.0",
"asn1==2.2.0",
"pyopenssl>=18.0.0",
"iso8601==0.1.13",
"pytz==2020.4",
"pytz==2022.1",
],
extras_require={
"examples": [
Expand Down
Loading

0 comments on commit 8f019e3

Please sign in to comment.