Skip to content

Commit

Permalink
Remove support for Python 3.7
Browse files Browse the repository at this point in the history
EOL 2023-06-27
  • Loading branch information
bunny-therapist committed Jun 22, 2023
1 parent 36c000d commit 97a1160
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ description = "Fetches security vulnerabilities and creates pip-constraints base
readme = "README.md"
license = {file = "LICENSE"}
urls = {repo = "https://github.com/mam-dev/security-constraints"}
requires-python = ">=3.7"
requires-python = ">=3.8"
dependencies = [
"requests",
"pyyaml",
"importlib-metadata >= 1.0 ; python_version < '3.8'"
]
dynamic = ["version"]

Expand Down
5 changes: 1 addition & 4 deletions src/security_constraints/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@


if TYPE_CHECKING: # pragma: no cover
if sys.version_info >= (3, 8):
from typing import TypedDict
else:
from typing_extensions import TypedDict
from typing import TypedDict

class _ConfigurationKwargs(TypedDict, total=False):
ignore_ids: Set[str]
Expand Down
6 changes: 1 addition & 5 deletions src/security_constraints/github_security_advisory.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@

if TYPE_CHECKING: # pragma: no cover
import sys

if sys.version_info >= (3, 8):
from typing import TypedDict
else:
from typing_extensions import TypedDict
from typing import TypedDict

class _GraphQlResponseJson(TypedDict, total=False):
data: Dict[Any, Any]
Expand Down
7 changes: 1 addition & 6 deletions src/security_constraints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
import logging
import sys
from datetime import datetime, timezone

if sys.version_info >= (3, 8):
from importlib.metadata import version # pragma: no cover (<py38)
else:
from importlib_metadata import version # pragma: no cover (>=py38)

from importlib.metadata import version
from typing import IO, List, Optional, Sequence, Set

import yaml
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311
envlist = py38,py39,py310,py311
isolated_build = True

[testenv]
Expand Down

0 comments on commit 97a1160

Please sign in to comment.