diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7865ff2..fbb4bc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9'] architecture: [x86, x64] exclude: - os: ubuntu-latest @@ -38,7 +38,7 @@ jobs: poetry install - name: Run pre-commit - if: "!startsWith(matrix.python, 'pypy') && !startsWith(matrix.python, '3.7')" + if: "!startsWith(matrix.python, 'pypy')" run: | python -m pip install pre-commit pre-commit run --all-files --verbose @@ -113,7 +113,7 @@ jobs: with: name: python-yubihsm-sdist path: dist - + docs: runs-on: ubuntu-latest name: Build sphinx documentation @@ -131,7 +131,7 @@ jobs: python -m pip install --upgrade pip python -m pip install poetry poetry install -E http -E usb - + - name: Build sphinx documentation run: poetry run make -C docs/ html diff --git a/NEWS b/NEWS index 05abd21..b309b85 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ * Version 3.0.0 (unreleased) ** NOTE: Backwards incompatible release. - ** Dropped Python 2 support, new minimum requirement: Python 3.7. + ** Dropped Python 2 support, new minimum requirement: Python 3.8. ** Added type hints. ** Bumped minimum supported Cryptography version to 2.6. ** Dropped yubihsm.eddsa package, in favor of EdDSA support in Cryptography. diff --git a/README.adoc b/README.adoc index b4fa368..ca03d53 100644 --- a/README.adoc +++ b/README.adoc @@ -2,9 +2,7 @@ Python library and tests for the YubiHSM 2. -The current version (2.1) supports Python 2.7 and later. - -NOTE: The next major version (3.x) will require Python 3.7 or later. +The current version (3.0) supports Python 3.8 and later. Communicates with the YubiHSM 2 connector daemon, which must already be running. It can also communicate directly with the YubiHSM 2 via USB (requires libusb). diff --git a/pyproject.toml b/pyproject.toml index f8b3317..5d05145 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ include = [ ] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" cryptography = ">=2.6" requests = {version = "^2.0", optional = true} pyusb = {version = "^1.0", optional = true}