Skip to content

Commit

Permalink
Merge pull request #158 from AstarVienna/hb/remove38
Browse files Browse the repository at this point in the history
Remove support for Python 3.8
  • Loading branch information
hugobuddel committed Feb 28, 2024
2 parents 913d0f3 + f394840 commit e38d867
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
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@v3
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
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@v3
Expand Down
4 changes: 1 addition & 3 deletions irdb/badges.py
Expand Up @@ -132,9 +132,7 @@ class MsgOnlyBadge(StrBadge):
pattern = Template("[![](https://img.shields.io/badge/$key-$col)]()")

def __init__(self, key: str, value: str):
# value = value.removeprefix("!")
# TODO: for Python 3.8 support:
value = value[1:]
value = value.removeprefix("!")
super().__init__(key, value)


Expand Down
4 changes: 1 addition & 3 deletions irdb/publish_utils.py
Expand Up @@ -7,9 +7,7 @@
import logging
from datetime import date
from typing import List, Tuple, Set, Dict
# Python 3.8 doesn't yet know these things.......
# from collections.abc import Iterator, Iterable, Mapping
from typing import Iterator, Iterable, Mapping
from collections.abc import Iterator, Iterable, Mapping

from more_itertools import first, last, groupby_transform

Expand Down

0 comments on commit e38d867

Please sign in to comment.