Skip to content

Commit 380d373

Browse files
authored
Build: Update history and version (#363)
1 parent 783c815 commit 380d373

6 files changed

Lines changed: 226 additions & 89 deletions

File tree

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
History
33
=======
44

5+
8.1.0 (2024-12-23)
6+
------------------
7+
8+
Features
9+
~~~~~~~~
10+
- Add optiont to return error for line and plane of best fit.
11+
512

613
8.0.0 (2024-10-03)
714
------------------

docs/source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Sphinx==5.3.0
22
numpydoc==1.5.0
3-
scikit-spatial==8.0.0
3+
scikit-spatial==8.1.0
44
setuptools==70.0.0
55
sphinx-bootstrap-theme==0.8.1
66
sphinx-gallery==0.9.0

pyproject.toml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "scikit-spatial"
7-
version = "8.0.0"
7+
version = "8.1.0"
88
description = "Spatial objects and computations based on NumPy arrays."
99

1010
license = { text = "BSD-3-Clause" }
@@ -32,21 +32,25 @@ requires-python = ">=3.8"
3232

3333
dependencies = [
3434
"matplotlib>=3",
35-
"numpy>=1.24",
36-
"scipy>=1.9",
35+
"numpy>1.24; python_version >= '3.12'",
36+
"numpy>=1; python_version < '3.12'",
37+
"scipy>1.11; python_version >= '3.12'",
38+
"scipy>=1; python_version < '3.12'",
3739
]
3840

3941
[project.urls]
4042
repository = "https://github.com/ajhynes7/scikit-spatial"
4143
documentation = "https://scikit-spatial.readthedocs.io"
4244

43-
[tool.setuptools]
44-
packages = { find = { where = ["src"] } }
45+
[tool.hatch.build.targets.wheel]
46+
packages = ["src/skspatial"]
4547

4648
[tool.uv]
4749
dev-dependencies = [
50+
"mypy>=1.14.0",
4851
"pytest-cov>=5.0.0",
4952
"pytest>=8.3.3",
53+
"ruff>=0.8.4",
5054
]
5155

5256
[tool.pytest.ini_options]

src/skspatial/objects/circle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ def intersect_line(self, line: Line) -> Tuple[Point, Point]:
368368
point_2 = point_1 + line.direction.unit()
369369

370370
# Translate the points on the line to mimic the circle being centered on the origin.
371-
point_translated_1 = point_1 - self.point
372-
point_translated_2 = point_2 - self.point
371+
point_translated_1: Point = point_1 - self.point
372+
point_translated_2: Point = point_2 - self.point
373373

374374
x_1, y_1 = point_translated_1
375375
x_2, y_2 = point_translated_2

src/skspatial/objects/points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def mean_center(self, return_centroid: bool = False):
149149
150150
"""
151151
centroid = self.centroid()
152-
points_centered = self - centroid
152+
points_centered: Points = self - centroid
153153

154154
if return_centroid:
155155
return points_centered, centroid

0 commit comments

Comments
 (0)