From 03dffe6fd001d61d6aa7c0ba53398a69088d1d6d Mon Sep 17 00:00:00 2001 From: barrust Date: Fri, 27 Dec 2024 00:38:21 -0500 Subject: [PATCH] remove 3.8 fully --- README.rst | 6 +++--- probables/hashes.py | 4 ++-- pyproject.toml | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index f3cf7b3..58d9ce9 100644 --- a/README.rst +++ b/README.rst @@ -7,8 +7,8 @@ PyProbables .. image:: https://img.shields.io/github/release/barrust/pyprobables.svg :target: https://github.com/barrust/pyprobables/releases :alt: GitHub release -.. image:: https://github.com/barrust/pyprobables/workflows/Python%20package/badge.svg - :target: https://github.com/barrust/pyprobables/actions?query=workflow%3A%22Python+package%22 +.. image:: https://github.com/barrust/pyprobables/actions?query=workflow%3A%22Python+package%22+branch%3Amaster/badge.svg + :target: https://github.com/barrust/pyprobables/actions?query=workflow%3A%22Python+package%22+branch%3Amaster :alt: Build Status .. image:: https://codecov.io/gh/barrust/pyprobables/branch/master/graph/badge.svg?token=OdETiNgz9k :target: https://codecov.io/gh/barrust/pyprobables @@ -56,7 +56,7 @@ To install `pyprobables`, simply clone the `repository on GitHub $ python setup.py install -`pyprobables` supports python 3.8 - 3.13+ +`pyprobables` supports python 3.9 - 3.13+ For *python 2.7* support, install `release 0.3.2 `__ diff --git a/probables/hashes.py b/probables/hashes.py index 2026bb9..f2080b8 100644 --- a/probables/hashes.py +++ b/probables/hashes.py @@ -5,11 +5,11 @@ from functools import wraps from hashlib import md5, sha256 from struct import unpack -from typing import Callable, TypeAlias +from typing import Callable, Union from probables.constants import UINT32_T_MAX, UINT64_T_MAX -KeyT: TypeAlias = str | bytes +KeyT = Union[str, bytes] SimpleHashT = Callable[[KeyT, int], int] HashResultsT = list[int] HashFuncT = Callable[[KeyT, int], HashResultsT] diff --git a/pyproject.toml b/pyproject.toml index 5405bf5..54271a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,14 +29,13 @@ classifiers = [ "License :: OSI Approved :: MIT License", "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", ] -requires-python = ">=3.8" +requires-python = ">=3.9" [tool.setuptools.dynamic] version = { attr = "probables.__version__" }