Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit b80e33b

Browse files
author
Mr-Milk
committed
deprecate py3.7 support
1 parent e42258e commit b80e33b

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ['3.7', '3.8', '3.9', '3.10']
13+
python-version: ['3.8', '3.9', '3.10']
1414

1515
steps:
1616
- uses: actions/checkout@v3

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers =
2020
[options]
2121
packages = find:
2222
platforms = any
23-
python_requires = >= 3.7
23+
python_requires = >= 3.8
2424
install_requires =
2525
anndata
2626
numpy

spatialtis/abc.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from ast import literal_eval
55
from collections import Counter
66
from time import time
7+
from functools import cached_property
78
from typing import Any, Dict, List, Optional, Union, Sequence
89

910
import numpy as np
@@ -17,16 +18,6 @@
1718
from spatialtis.utils import df2adata_uns, doc, log_print, pretty_time, read_exp, read_shapes, default_args
1819

1920

20-
# cached_property is only for py3.8+
21-
# create a dummy one to be compatible with py3.7+
22-
# TODO: Remove after deprecation of py3.7
23-
try:
24-
from functools import cached_property
25-
except ImportError:
26-
def cached_property(obj):
27-
return obj
28-
29-
3021
class NeighborsNotFoundError(Exception):
3122
pass
3223

0 commit comments

Comments
 (0)