Skip to content

Commit

Permalink
fix: support for hikari v2 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
circuitsacul authored Oct 11, 2024
1 parent 5628414 commit f2ec3ba
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10' ]
os: [ ubuntu, windows ]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu, windows]

name: ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox
run: pip install nox
- name: Run Nox
run: nox
- name: Upload to CodeCov
uses: codecov/codecov-action@v2
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox
run: pip install nox
- name: Run Nox
run: nox
- name: Upload to CodeCov
uses: codecov/codecov-action@v2
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: "3.9"
- name: Install Dependencies
run: pip install poetry
- name: Build & Upload
Expand Down
4 changes: 2 additions & 2 deletions hikari_clusters/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import asyncio
import logging
import traceback
from typing import Any, Coroutine, Generator, Iterable, Type, TypeVar
from typing import Any, Iterable, Type, TypeVar

__all__ = ("TaskManager",)

Expand Down Expand Up @@ -39,7 +39,7 @@ def next_tid(self) -> int:

def create_task(
self,
coro: Generator[Any, None, _T] | Coroutine[Any, None, _T],
coro: asyncio._CoroutineLike[_T],
*,
name: str | None = None,
ignored_exceptions: Iterable[Type[Exception]] = tuple(),
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length=79
skip-magic-trailing-comma=true
line-length = 79
skip-magic-trailing-comma = true

[tool.poetry]
name = "hikari-clusters"
Expand All @@ -15,8 +15,8 @@ documentation = "https://github.com/TrigonDev/hikari-clusters/wiki"
keywords = ["hikari", "discord", "clustering", "bot", "ipc"]

[tool.poetry.dependencies]
python = ">=3.8.0,<3.12"
hikari = "^2.0.0.dev105"
python = ">=3.9,<3.14"
hikari = "^2.0.0"
websockets = "^11.0"
pytest-cov = ">=3,<5"

Expand Down

0 comments on commit f2ec3ba

Please sign in to comment.