Skip to content

Commit

Permalink
[#668]Drop support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Dec 26, 2024
1 parent 0a2f1ed commit b2c2209
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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@v4
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Run linters
# Only do linting once
if: matrix.python-version == 3.8
if: matrix.python-version == 3.9
run: python -m invoke lint

- name: Run tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install sslyze dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan_apache2_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install Apache2
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan_iis_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install IIS
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan_nginx_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install Nginx
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_module_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install pip
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
line-length = 120

[tool.mypy]
python_version = "3.8"
python_version = "3.9"
ignore_missing_imports = true
strict_optional = true
disallow_untyped_defs = true
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_include_files() -> List[Tuple[str, str]]:
author=project_info["__author__"],
author_email=project_info["__author_email__"],
license=project_info["__license__"],
python_requires=">=3.8",
python_requires=">=3.9",
# Pypi metadata
long_description=get_long_description(),
long_description_content_type="text/markdown",
Expand All @@ -72,7 +72,6 @@ def get_include_files() -> List[Tuple[str, str]]:
"Intended Audience :: System Administrators",
"Natural Language :: French",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
7 changes: 1 addition & 6 deletions sslyze/json/pydantic_utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
from typing import Any
from typing import Annotated

try:
# Python 3.9+
from typing import Annotated # type: ignore
except ImportError:
# Python 3.8
from typing_extensions import Annotated

from pydantic import BaseModel, BeforeValidator, ConfigDict

Expand Down

0 comments on commit b2c2209

Please sign in to comment.