Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to aioredis 2.0.0 #125

Merged
merged 1 commit into from
Dec 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading