Skip to content

task: dropped support for python 3.8 #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_on_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8.17
python-version: 3.9.13
- uses: Gr1N/setup-poetry@v8
- name: login
run: poetry config http-basic.pypi __token__ ${{ secrets.OMNIVECTOR_PYPI_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

## v3.0.0 - 2025-05-10

- Dropped support for Python 3.8

## v2.1.2 - 2024-10-30

- Loosened FastAPI dependency constraints (with this package ever hit 1.0?)
Expand All @@ -31,13 +35,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Restored optional TokenPayload fields.


## v2.0.0 - 2024-05-28

- Upgraded pydantic base version to 2.7.
- Upgraded fastapi base version to 0.111.


## v1.4.0 - 2024-04-01

- Added plugin support
Expand Down
6 changes: 3 additions & 3 deletions armasec/openid_config_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _load_openid_resource(self, url: str):
"""
self.debug_logger(f"Attempting to fetch from openid resource '{url}'")
with AuthenticationError.handle_errors(
message=f"Call to url {url} failed",
f"Call to url {url} failed",
do_except=partial(log_error, self.debug_logger),
):
response = httpx.get(url)
Expand All @@ -80,7 +80,7 @@ def config(self) -> OpenidConfig:
self.build_openid_config_url(self.domain, self.use_https)
)
with AuthenticationError.handle_errors(
message="openid config data was invalid",
"openid config data was invalid",
do_except=partial(log_error, self.debug_logger),
):
self._config = OpenidConfig(**data)
Expand All @@ -97,7 +97,7 @@ def jwks(self) -> JWKs:
self.debug_logger("Fetching jwks")
data = self._load_openid_resource(str(self.config.jwks_uri))
with AuthenticationError.handle_errors(
message="jwks data was invalid",
"jwks data was invalid",
do_except=partial(log_error, self.debug_logger),
):
self._jwks = JWKs(**data)
Expand Down
290 changes: 160 additions & 130 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "armasec"
version = "2.1.2"
version = "3.0.0"
description = "Injectable FastAPI auth via OIDC"
authors = ["Omnivector Engineering Team <info@omnivector.solutions>"]
license = "MIT"
Expand All @@ -20,13 +20,13 @@ CONDUCT = "https://github.com/omnivector-solutions/armasec/blob/main/CONDUCT.md"
CONTRIBUTING = "https://github.com/omnivector-solutions/armasec/blob/main/CONTRIBUTING.md"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
python-jose = {extras = ["cryptography"], version = "^3.2"}
fastapi = ">=0.111,<1"
pydantic = "^2.7"
httpx = "^0"
snick = "^1.3"
py-buzz = "^4.1"
snick = "^2.1"
py-buzz = "^7.3"
pluggy = "^1.4.0"

# These must be included as a main dependency for the pytest extension to work out of the box
Expand Down