Skip to content

Commit

Permalink
Drop python 3.8, add python 3.13 (PR #123)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas authored Oct 11, 2024
1 parent a55d902 commit acded05
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"]

env:
OS: ${{ matrix.os }}
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Build wheel and source distribution
run: |
pip install build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ __pycache__/
# Distribution / packaging
.Python
env/
venv
bin/
build/
_build/
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 24.3.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
Expand Down
5 changes: 0 additions & 5 deletions aiostream/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import inspect
import functools
import sys
import warnings

from .aiter_utils import AsyncIteratorContext, aiter, assert_async_iterable
Expand Down Expand Up @@ -44,10 +43,6 @@ class StreamEmpty(Exception):
P = ParamSpec("P")
Q = ParamSpec("Q")

# Hack for python 3.8 compatibility
if sys.version_info < (3, 9):
P = TypeVar("P")


async def wait_stream(aiterable: BaseStream[T]) -> T:
"""Wait for an asynchronous iterable to finish and return the last item.
Expand Down
5 changes: 0 additions & 5 deletions aiostream/stream/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

import sys
import asyncio
import inspect
import builtins
Expand Down Expand Up @@ -39,10 +38,6 @@
T = TypeVar("T")
P = ParamSpec("P")

# Hack for python 3.8 compatibility
if sys.version_info < (3, 9):
P = TypeVar("P")

# Convert regular iterables


Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ dynamic = ["version"]
description = "Generator-based operators for asynchronous iteration"
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
requires-python = ">=3.9"
authors = [
{ name = "Vincent Michel", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"typing-extensions",
Expand Down Expand Up @@ -65,7 +65,7 @@ strict = true

[tool.black]
line-length = 88
target_version = ["py38", "py39", "py310", "py311", "py312"]
target_version = ["py39", "py310", "py311", "py312", "py313"]

[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "assert False"]
Expand Down

0 comments on commit acded05

Please sign in to comment.