diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index bd5985d..f0c5784 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -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: diff --git a/README.md b/README.md index fff786b..0cdee64 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/veryfi/client_base.py b/veryfi/client_base.py index fb75dfd..c83d34c 100644 --- a/veryfi/client_base.py +++ b/veryfi/client_base.py @@ -1,4 +1,3 @@ -import requests import base64 import hashlib import hmac @@ -6,11 +5,12 @@ 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/" @@ -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,