File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77jobs :
88 build :
9- runs-on : ubuntu-20.04
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
1012 strategy :
1113 matrix :
1214 python-version : [3.9]
1315 steps :
14- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1517 - name : Set up Python ${{ matrix.python-version }}
16- uses : actions/setup-python@v2
18+ uses : actions/setup-python@v5
1719 with :
1820 python-version : ${{ matrix.python-version }}
21+
1922 - name : Install dependencies
2023 run : |
2124 python -m pip install --upgrade pip
22- pip install tox tox-gh-actions
25+ pip install build tox tox-gh-actions
26+
2327 - name : Build package
2428 env :
2529 SKIP_GENERATE_AUTHORS : 1
2630 run : |
2731 pip install -U setuptools wheel pbr
28- python setup.py sdist bdist_wheel
32+ python -m build
33+
2934 - name : Publish package
3035 uses : pypa/gh-action-pypi-publish@release/v1
3136 with :
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Requires Python 3.9 or later.
5252
5353### Obtaining credentials
5454
55- If you don't have a Veryfi account, register at [ hub .veryfi.com/signup/api/] ( https://hub .veryfi.com/signup/api/ ) .
55+ If you don't have a Veryfi account, register at [ app .veryfi.com/signup/api/] ( https://app .veryfi.com/signup/api/ ) .
5656
5757### Initialize the client
5858
Original file line number Diff line number Diff line change 1- import requests
21import base64
32import hashlib
43import hmac
54import json
65import time
76from typing import Dict , Optional
87
8+ import requests
9+
910from veryfi .errors import VeryfiClientError
1011
1112
1213class Client :
13-
1414 API_VERSION = "v8"
1515 API_TIMEOUT = 30
1616 BASE_URL = "https://api.veryfi.com/api/"
@@ -42,7 +42,7 @@ def _get_headers(self) -> Dict:
4242 :return: Dictionary with headers
4343 """
4444 final_headers = {
45- "User-Agent" : "Python Veryfi-Python/5.0.0 " ,
45+ "User-Agent" : "Python Veryfi-Python/5.0.1 " ,
4646 "Accept" : "application/json" ,
4747 "Content-Type" : "application/json" ,
4848 "Client-Id" : self .client_id ,
You can’t perform that action at this time.
0 commit comments