Skip to content

Commit 012e309

Browse files
authored
Merge pull request #52 from veryfi/feature/update-release-notes
Update release workflow, bump version to 5.0.1, and fix signup URL
2 parents 6ae9be5 + 68fdd50 commit 012e309

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/release-pypi.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@ on:
66

77
jobs:
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:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

veryfi/client_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import requests
21
import base64
32
import hashlib
43
import hmac
54
import json
65
import time
76
from typing import Dict, Optional
87

8+
import requests
9+
910
from veryfi.errors import VeryfiClientError
1011

1112

1213
class 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,

0 commit comments

Comments
 (0)