Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,31 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install build tox tox-gh-actions

- name: Build package
env:
SKIP_GENERATE_AUTHORS: 1
run: |
pip install -U setuptools wheel pbr
python setup.py sdist bdist_wheel
python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Requires Python 3.9 or later.

### Obtaining credentials

If you don't have a Veryfi account, register at [hub.veryfi.com/signup/api/](https://hub.veryfi.com/signup/api/).
If you don't have a Veryfi account, register at [app.veryfi.com/signup/api/](https://app.veryfi.com/signup/api/).

### Initialize the client

Expand Down
6 changes: 3 additions & 3 deletions veryfi/client_base.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import requests
import base64
import hashlib
import hmac
import json
import time
from typing import Dict, Optional

import requests

from veryfi.errors import VeryfiClientError


class Client:

API_VERSION = "v8"
API_TIMEOUT = 30
BASE_URL = "https://api.veryfi.com/api/"
Expand Down Expand Up @@ -42,7 +42,7 @@ def _get_headers(self) -> Dict:
:return: Dictionary with headers
"""
final_headers = {
"User-Agent": "Python Veryfi-Python/5.0.0",
"User-Agent": "Python Veryfi-Python/5.0.1",
"Accept": "application/json",
"Content-Type": "application/json",
"Client-Id": self.client_id,
Expand Down
Loading