Skip to content

Commit eaf57ee

Browse files
committed
MAINT: Expand reshape testing
1 parent b3eafaf commit eaf57ee

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

pixi.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels = ["conda-forge"]
44
description = "Add a short description here"
55
name = "finch-tensor"
66
platforms = ["osx-arm64"]
7-
version = "0.2.10"
7+
version = "0.2.12"
88

99
[tasks]
1010
compile = "python -c 'import finch'"
@@ -16,14 +16,14 @@ juliaup = ">=1.17.10,<2"
1616
[pypi-dependencies]
1717
finch-tensor = { path = ".", editable = true }
1818
juliapkg = ">=0.1.16,<0.2"
19-
juliacall = ">=0.9.23,<0.10"
19+
juliacall = "0.9.24,<0.10"
2020
numpy = ">=1.19"
2121

2222
[feature.test.pypi-dependencies]
2323
pytest = "*"
2424
pytest-cov = "*"
25-
sparse = "*"
26-
numba = ">=0.60"
25+
sparse = ">=0.16,<0.17"
26+
numba = ">=0.61"
2727
scipy = "*"
2828
numpy = "==2.*"
2929
pytest-xdist = ">=3.6.1,<4"

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "finch-tensor"
3-
version = "0.2.11"
3+
version = "0.2.12"
44
description = ""
55
authors = ["Willow Ahrens <[email protected]>"]
66
readme = "README.md"
@@ -10,7 +10,10 @@ packages = [{include = "finch", from = "src"}]
1010
python = "^3.10"
1111
juliapkg = "^0.1.16"
1212
numpy = ">=1.19"
13-
juliacall = "^0.9.24"
13+
juliacall = [
14+
{ version = "0.9.24", platform = "darwin" },
15+
{ version = "^0.9.24" }
16+
]
1417

1518
[tool.poetry.group.test.dependencies]
1619
pytest = "^7.4.4"

src/finch/juliapkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": {
33
"Finch": {
44
"uuid": "9177782c-1635-4eb9-9bfb-d9dfa25e6bce",
5-
"version": "1.2.7"
5+
"version": "1.2.9"
66
},
77
"HDF5": {
88
"uuid": "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f",

tests/test_sparse.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ def test_asarray(arr2d, arr3d, order, format, opt):
249249
(np.ones((10, 10)), (100,)),
250250
(np.ones((3, 4, 5)), (5, 2, 2, 3)),
251251
(np.arange(1), (1, 1, 1, 1)),
252+
(np.arange(1).reshape((1, 1, 1)), (1,)),
253+
(np.arange(1).reshape((1, 1)), ()),
252254
(np.zeros((10, 1, 2)), (1, 5, 4, 1)),
255+
(np.int64(0), ()),
256+
(np.int64(0), (1, 1)),
253257
],
254258
)
255259
@pytest.mark.parametrize("order", ["C", "F"])

0 commit comments

Comments
 (0)