Skip to content
Open
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
2 changes: 0 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ Violations may result in removal from the project and/or reporting.
avoids wasted effort.

2. **Code style & formatting:** We aim for consistent code style throughout the project.

- Please run any automated formatting tools included in this repository (e.g.,
`pre-commit`, `prettier`, `ruff`, `go fmt`). Check the `.editorconfig` or build
scripts for details.
- Try to follow existing coding conventions within the codebase.

3. **Submit a pull request:** When you're ready to contribute:

- Create a pull request against the `main` branch.
- In your PR description, _clearly explain_:
- **What changed?** A concise summary of your changes.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout 🔁
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -21,23 +21,23 @@ repos:
args: ["--fix=crlf"]
files: \.bat$
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
rev: 1.8.6
hooks:
- id: bandit
exclude: /tests
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## [0.8.0] - 2024-08-07
## [0.9.0] - 2025-07-28

### Added

Expand All @@ -20,6 +20,8 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Changed

- BREAKING CHANGES: dropped support for Python 3.8
- Added python 3.12 and 3.13 support
- Security updates to libraries (aiohttp, idna, cryptography).
- Updated pre-commit hooks.
- Improvements to README.
Expand Down
1,542 changes: 981 additions & 561 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyjwt_key_fetcher/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from functools import cached_property
from hashlib import sha256
from typing import Any, Dict, List, Optional
Expand Down Expand Up @@ -86,7 +86,7 @@ def create_token(
if not payload:
payload = {}

now = datetime.utcnow()
now = datetime.now(timezone.utc)
default_values = {
"sub": str(uuid4()),
"aud": self.aud,
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyjwt-key-fetcher"
version = "0.8.0"
version = "0.9.0"
description = "Async library to fetch JWKs for JWT tokens"
authors = ["IOXIO Ltd"]
license = "BSD-3-Clause"
Expand All @@ -9,9 +9,9 @@ repository = "https://github.com/ioxiocom/pyjwt-key-fetcher"
packages = [{ include = "pyjwt_key_fetcher", from = "." }]

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9.2"
PyJWT = { version = "^2.8.0", extras = ["crypto"] }
aiohttp = {version = "^3.10.1", extras = ["speedups"]}
aiohttp = { version = "^3.10.1", extras = ["speedups"] }
cachetools = "^5.3.2"
aiocache = "^0.12.2"

Expand Down