Skip to content

Commit bdb5fe3

Browse files
authored
Drop support for EOL Python 3.8 (#650)
1 parent 052a36e commit bdb5fe3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ env:
77

88
jobs:
99
test:
10-
name: test w/ Python ${{ matrix.python-version }}
10+
name: Python ${{ matrix.python-version }}
1111

1212
runs-on: ubuntu-latest
1313

1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
2020
- uses: actions/checkout@v4

bedevere/gh_issue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Check if a GitHub issue number is specified in the pull request's title."""
22
import re
3-
from typing import Dict, Literal
3+
from typing import Literal
44

55
import gidgethub
66
from aiohttp import ClientSession
@@ -20,11 +20,11 @@
2020
SKIP_ISSUE_STATUS = util.create_status(
2121
STATUS_CONTEXT, util.StatusState.SUCCESS, description="Issue report skipped"
2222
)
23-
ISSUE_URL: Dict[IssueKind, str] = {
23+
ISSUE_URL: dict[IssueKind, str] = {
2424
"gh": "https://github.com/python/cpython/issues/{issue_number}",
2525
"bpo": "https://bugs.python.org/issue?@action=redirect&bpo={issue_number}",
2626
}
27-
ISSUE_CHECK_URL: Dict[IssueKind, str] = {
27+
ISSUE_CHECK_URL: dict[IssueKind, str] = {
2828
"gh": "https://api.github.com/repos/python/cpython/issues/{issue_number}",
2929
"bpo": "https://bugs.python.org/issue{issue_number}",
3030
}

bedevere/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import enum
22
import re
33
import sys
4-
from typing import Any, Dict
4+
from typing import Any
55

66
import gidgethub
77
from gidgethub.abc import GitHubAPI
@@ -163,7 +163,7 @@ def build_issue_body(pr_number: int, body: str) -> str:
163163
async def patch_body(
164164
gh: GitHubAPI,
165165
content_type: str,
166-
pr_or_issue: Dict[str, Any],
166+
pr_or_issue: dict[str, Any],
167167
pr_or_issue_number: int,
168168
) -> Any:
169169
"""Updates the description of a PR/Issue with the gh issue/pr number if it exists.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{312, 311, 310, 39, 38}
2+
envlist = py{313, 312, 311, 310, 39}
33
toxworkdir={env:TOX_WORK_DIR:.tox}
44

55
[testenv]

0 commit comments

Comments
 (0)