chore: switch to Python 3.15 (#347)

Relock so every dependency installs from wheels on 3.15 (multiprocess and
pyyaml are pure-python sdists), allow pandas 3 and scikit-learn 1.9.
This commit is contained in:
Alexander Myasoedov committed 2026-10-18 19:12:42 +03:00
1 parent 726b7ff835
commit d0a78195ba
9 files changed
+3662 -3003

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.14'
python-version: '3.15'
- run: pip install '.[harness]'
- name: Run policy checks
env:
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.14'
python-version: '3.15'
cache: "poetry"
- name: Install pre-commit
run: poetry install
+2 -2
View File
@@ -20,10 +20,10 @@ jobs:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Set up Python 3.14
- name: Set up Python 3.15
uses: actions/setup-python@v4
with:
python-version: "3.14"
python-version: "3.15"
- name: Build project for distribution
run: poetry build --format sdist
- name: Check Version
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.14"
- "3.15"
steps:
- uses: actions/checkout@v3
- name: Install poetry
+5 -5
View File
@@ -1,5 +1,5 @@
default_language_version:
python: python3.14
python: python3.15
repos:
- repo: https://github.com/asottile/pyupgrade
@@ -12,13 +12,13 @@ repos:
rev: 26.3.1
hooks:
- id: black
language_version: python3.14
language_version: python3.15
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
language_version: python3.14
language_version: python3.15
additional_dependencies: [flake8-docstrings]
exclude: '^(tests)/'
@@ -57,14 +57,14 @@ repos:
# - id: mdformat
# name: mdformat
# entry: mdformat .
# language_version: python3.14
# language_version: python3.15
# files: "docs/.*\\.md$"
- repo: https://github.com/hadialqattan/pycln
rev: v2.6.0
hooks:
- id: pycln
language_version: python3.14
language_version: python3.15
- repo: https://github.com/python-poetry/poetry
rev: '2.4.1'
+1 -1
View File
@@ -1,6 +1,6 @@
# Agentic Security harness
Install `pip install 'agentic_security[harness]'` (Python 3.14+). The new package
Install `pip install 'agentic_security[harness]'` (Python 3.15+). The new package
and `agesec` Fire CLI coexist with the legacy scanner. The extra currently adds
no dependencies; it reuses core dependencies.
+1 -1
View File
@@ -1,6 +1,6 @@
# Installation
Requires Python 3.14 or newer.
Requires Python 3.15 or newer.
## PyPI
Generated
+3647 -2988
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -6,7 +6,7 @@ authors = [{ name = "Alexander Miasoiedov", email = "msoedov@gmail.com" }]
maintainers = [{ name = "Alexander Miasoiedov", email = "msoedov@gmail.com" }]
license = "Apache-2.0"
readme = "Readme.md"
requires-python = ">=3.14,<4.0"
requires-python = ">=3.15,<4.0"
keywords = [
"LLM vulnerability scanner",
"llm security",
@@ -43,14 +43,14 @@ fire = "0.7.1"
loguru = "^0.7.3"
httpx = "^0.28.1"
cache-to-disk = "^2.0.0"
pandas = ">=1.4,<3.0"
pandas = ">=1.4,<4.0"
datasets = "^4.4.1"
tabulate = ">=0.8.9,<0.10.0"
colorama = "^0.4.4"
matplotlib = "^3.10.7"
pydantic = "^2.12.5"
scikit-optimize = "^0.10.2"
scikit-learn = ">=1.7.2,<1.9" # 1.9 cannot load the bundled refusal_classifier joblib models
scikit-learn = "^1.9.1" # bundled refusal_classifier models are pickled with 1.9.1
numpy = ">=1.24.3,<3.0.0"
jinja2 = "^3.1.4"
python-multipart = "^0.0.31"