Skip to content

Commit 8f019e3

Browse files
authored
Merge pull request #367 from getyoti/release/2.14.1
Release 2.14.1
2 parents 3df1691 + c32e14b commit 8f019e3

15 files changed

+152
-147
lines changed

.github/workflows/sonar.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

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

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

3131
- uses: sonarsource/sonarcloud-github-action@master
3232
env:

.github/workflows/tests.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10-dev"]
16+
python-version: [3.7, 3.8, 3.9, "3.10"]
1717

1818
steps:
1919
- uses: actions/checkout@v2
2020

21-
- uses: actions/setup-python@v2.1.4
21+
- uses: actions/setup-python@v2.3.1
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -40,14 +40,16 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v2
4242

43-
- uses: actions/[email protected]
43+
- uses: actions/[email protected]
44+
with:
45+
python-version: 3.9
4446

45-
- run: pip install -U setuptools==45
47+
- run: pip install --upgrade setuptools
4648

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

49-
- run: pushd examples/yoti_example_django && pip install -r requirements.txt && popd
50-
51+
- run: pushd examples/yoti_example_django && pip install --upgrade pip && pip install -r requirements.txt && popd
52+
5153
- run: pushd examples/yoti_example_flask && pip install -r requirements.txt && popd
52-
54+
5355
- run: pushd examples/doc_scan && pip install -r requirements.txt && popd

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ examples/yoti_example_django/*.pem
105105
examples/yoti_example_flask/*.pem
106106

107107
.scannerwork
108+
.venv/

.pre-commit-config.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
exclude: protobuf/
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: stable
4+
rev: 22.3.0
55
hooks:
66
- id: black
7-
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v1.2.3
7+
8+
- repo: https://github.com/PyCQA/flake8
9+
rev: 4.0.1
910
hooks:
1011
- id: flake8
1112
args:
12-
- --ignore=E501,W5
13+
- --ignore=E501,W5

.travis.yml

-77
This file was deleted.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Adding Features
88

99
Any features added must be fully tested and documented, with examples supplied in the pull request.
10-
The feature must support the lowest Python version that the SDK supports (see [the travis file](.travis.yml) for all supported versions). The feature
10+
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
1111
must not introduce any unnecessary dependencies (although introducing a new third party library
1212
is open for discussion if absolutely required).
1313

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Yoti also allows you to enable user details verification from your mobile app by
6666

6767
## Requirements
6868

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

7171
## Installing the SDK
7272

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
cffi>=1.14.0
1+
click>=7
2+
cffi>=1.15.0
23
flask>=1.0.4
3-
jinja2>=2.8.1
4+
jinja2>=3.0.3
45
pyopenssl>=19.0.0
56
python-dotenv>=0.7.1
67
requests>=2.20.0
78
urllib3>=1.24.2
8-
yoti>=2.13.0
9+
yoti>=2.14.0
910
werkzeug>=1.0.1
11+
six==1.16.0
+71-25
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,79 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.9
33
# To update, run:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in
66
#
7-
asn1==2.2.0 # via yoti
8-
certifi==2018.4.16 # via requests
9-
cffi==1.14.0 # via -r requirements.in, cryptography
10-
chardet==3.0.4 # via requests
11-
click==6.7 # via flask
12-
cryptography==3.2 # via pyopenssl, yoti
13-
deprecated==1.2.10 # via yoti
14-
flask==1.1.1 # via -r requirements.in
15-
future==0.16.0 # via yoti
16-
idna==2.7 # via requests
17-
iso8601==0.1.13 # via yoti
18-
itsdangerous==0.24 # via flask
19-
jinja2==2.10.1 # via -r requirements.in, flask
20-
markupsafe==1.0 # via jinja2
21-
protobuf==3.6.0 # via yoti
22-
pycparser==2.18 # via cffi
23-
pyopenssl==19.0.0 # via -r requirements.in, yoti
24-
python-dotenv==0.8.2 # via -r requirements.in
25-
requests==2.21.0 # via -r requirements.in, yoti
26-
six==1.11.0 # via cryptography, protobuf, pyopenssl
27-
urllib3==1.24.2 # via -r requirements.in, requests
28-
werkzeug==1.0.1 # via -r requirements.in, flask
29-
wrapt==1.12.1 # via deprecated
30-
yoti==2.13.0 # via -r requirements.in
7+
asn1==2.2.0
8+
# via yoti
9+
certifi==2018.4.16
10+
# via requests
11+
cffi==1.15.0
12+
# via
13+
# -r requirements.in
14+
# cryptography
15+
chardet==3.0.4
16+
# via requests
17+
click==8.1.2
18+
# via
19+
# -r requirements.in
20+
# flask
21+
cryptography==3.2
22+
# via
23+
# pyopenssl
24+
# yoti
25+
deprecated==1.2.10
26+
# via yoti
27+
flask==1.1.1
28+
# via -r requirements.in
29+
future==0.16.0
30+
# via yoti
31+
idna==2.7
32+
# via requests
33+
iso8601==0.1.13
34+
# via yoti
35+
itsdangerous==0.24
36+
# via flask
37+
jinja2==3.0.3
38+
# via
39+
# -r requirements.in
40+
# flask
41+
markupsafe==2.0.1
42+
# via jinja2
43+
protobuf==3.6.0
44+
# via yoti
45+
pycparser==2.18
46+
# via cffi
47+
pyopenssl==19.0.0
48+
# via
49+
# -r requirements.in
50+
# yoti
51+
python-dotenv==0.8.2
52+
# via -r requirements.in
53+
pytz==2020.4
54+
# via yoti
55+
requests==2.21.0
56+
# via
57+
# -r requirements.in
58+
# yoti
59+
six==1.16.0
60+
# via
61+
# -r requirements.in
62+
# cryptography
63+
# protobuf
64+
# pyopenssl
65+
urllib3==1.24.2
66+
# via
67+
# -r requirements.in
68+
# requests
69+
werkzeug==1.0.1
70+
# via
71+
# -r requirements.in
72+
# flask
73+
wrapt==1.12.1
74+
# via deprecated
75+
yoti==2.14.0
76+
# via -r requirements.in
3177

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

requirements.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pbr==1.10.0
77
protobuf==3.13.0
88
pyopenssl==19.1.0
99
PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4
10-
pytz==2020.4
10+
pytz==2022.1
1111
requests>=2.20.0
1212
urllib3>=1.24.3
1313
deprecated==1.2.10

requirements.txt

+52-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,60 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.9
33
# To update, run:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in
66
#
7-
asn1==2.2.0 # via -r requirements.in
8-
certifi==2018.11.29 # via requests
9-
cffi==1.14.3 # via -r requirements.in, cryptography
10-
chardet==3.0.4 # via requests
11-
cryptography==2.8 # via -r requirements.in, pyopenssl
12-
deprecated==1.2.10 # via -r requirements.in
13-
future==0.18.2 # via -r requirements.in
14-
idna==2.7 # via requests
15-
iso8601==0.1.13 # via -r requirements.in
16-
itsdangerous==1.1.0 # via -r requirements.in
17-
pbr==1.10.0 # via -r requirements.in
18-
protobuf==3.13.0 # via -r requirements.in
19-
pycparser==2.18 # via cffi
20-
pyopenssl==19.1.0 # via -r requirements.in
21-
pytz==2020.4 # via -r requirements.in
22-
pyyaml==5.2 # via -r requirements.in
23-
requests==2.21.0 # via -r requirements.in
24-
six==1.10.0 # via cryptography, protobuf, pyopenssl
25-
urllib3==1.24.3 # via -r requirements.in, requests
26-
wheel==0.33.6 # via -r requirements.in
27-
wrapt==1.11.2 # via deprecated
7+
asn1==2.2.0
8+
# via -r requirements.in
9+
certifi==2018.11.29
10+
# via requests
11+
cffi==1.14.3
12+
# via
13+
# -r requirements.in
14+
# cryptography
15+
chardet==3.0.4
16+
# via requests
17+
cryptography==2.8
18+
# via
19+
# -r requirements.in
20+
# pyopenssl
21+
deprecated==1.2.10
22+
# via -r requirements.in
23+
future==0.18.2
24+
# via -r requirements.in
25+
idna==2.7
26+
# via requests
27+
iso8601==0.1.13
28+
# via -r requirements.in
29+
itsdangerous==1.1.0
30+
# via -r requirements.in
31+
pbr==1.10.0
32+
# via -r requirements.in
33+
protobuf==3.13.0
34+
# via -r requirements.in
35+
pycparser==2.18
36+
# via cffi
37+
pyopenssl==19.1.0
38+
# via -r requirements.in
39+
pytz==2022.1
40+
# via -r requirements.in
41+
pyyaml==5.2
42+
# via -r requirements.in
43+
requests==2.21.0
44+
# via -r requirements.in
45+
six==1.10.0
46+
# via
47+
# cryptography
48+
# protobuf
49+
# pyopenssl
50+
urllib3==1.24.3
51+
# via
52+
# -r requirements.in
53+
# requests
54+
wheel==0.33.6
55+
# via -r requirements.in
56+
wrapt==1.11.2
57+
# via deprecated
2858

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

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
install_requires=[
2121
"deprecated==1.2.10",
2222
"cryptography>=2.2.1",
23-
"protobuf>=3.1.0",
23+
"protobuf==3.13.0",
2424
"requests>=2.11.1",
2525
"future>=0.11.0",
2626
"asn1==2.2.0",
2727
"pyopenssl>=18.0.0",
2828
"iso8601==0.1.13",
29-
"pytz==2020.4",
29+
"pytz==2022.1",
3030
],
3131
extras_require={
3232
"examples": [

0 commit comments

Comments
 (0)