Skip to content

Commit

Permalink
Switch to aioredis 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icgood committed Dec 5, 2021
1 parent e3d464c commit 68ce209
Show file tree
Hide file tree
Showing 24 changed files with 491 additions and 296 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
python-version: ['3.10']

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO: remove ".6" when 3.9.10 is released
FROM python:3.9.6-alpine
FROM python:3.10-alpine

WORKDIR /pymap
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion pymap/backend/dict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, login: Login, config: Config) -> None:
super().__init__()
self._login = login
self._config = config
self._status = HealthStatus(True)
self._status = HealthStatus()

@property
def login(self) -> Login:
Expand Down
3 changes: 1 addition & 2 deletions pymap/backend/dict/mailbox.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

from __future__ import annotations

import hashlib
from bisect import bisect_left
from collections.abc import Iterable, Sequence, AsyncIterable
from datetime import datetime
Expand Down Expand Up @@ -140,7 +139,7 @@ def __init__(self) -> None:
WeakValueDictionary()

def add(self, content: MessageContent) -> ObjectId:
msg_hash = HashStream(hashlib.sha1()).digest(content)
msg_hash = HashStream().digest(content)
existing = self._email_ids.get(msg_hash)
if existing is not None:
return existing
Expand Down
2 changes: 1 addition & 1 deletion pymap/backend/maildir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, login: Login, config: Config) -> None:
super().__init__()
self._login = login
self._config = config
self._status = HealthStatus(True)
self._status = HealthStatus()

@property
def login(self) -> Login:
Expand Down

0 comments on commit 68ce209

Please sign in to comment.