Skip to content

Commit 8b5e99f

Browse files
ml31415OCCAM Coder
andauthored
Warn on Python 3.10 that 0.15 will not support it (#128)
Co-authored-by: OCCAM Coder <coder@occam.com.ua>
1 parent d3511e0 commit 8b5e99f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎numpy_groupies/__init__.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import sys
4+
import warnings
35
from typing import TYPE_CHECKING, Any
46

57
from numpy_groupies.aggregate_purepy import aggregate as aggregate_py
@@ -90,3 +92,11 @@ def uaggregate(
9092
else:
9193
__version__ = get_version(root="..", relative_to=__file__)
9294
del get_version
95+
96+
if sys.version_info[:2] < (3, 11):
97+
warnings.warn(
98+
"numpy-groupies will require Python 3.11 or newer from version 0.15, "
99+
"and the 0.14 releases are the last to support Python 3.10.",
100+
DeprecationWarning,
101+
stacklevel=2,
102+
)

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Topic :: Software Development :: Libraries",
3333
]
3434
keywords = ["accumarray", "aggregate", "groupby", "grouping", "indexing"]
35-
requires-python = ">=3.10"
35+
requires-python = ">=3.10" # 0.15 will raise this to ">=3.11"
3636
dependencies = ["numpy"]
3737

3838
[project.optional-dependencies]

0 commit comments

Comments
 (0)