Skip to content

Commit ac6ddfb

Browse files
committed
remove h5py from requirements and tests
1 parent 425bc02 commit ac6ddfb

5 files changed

Lines changed: 1 addition & 12 deletions

File tree

python/requirements/CI-complete/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
biopython==1.85
22
coverage==7.7.0
33
dendropy==5.0.1
4-
h5py==3.13.0
54
kastore==0.3.3
65
lshmm==0.0.8
76
msgpack==1.1.0
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
msprime==1.3.3
22
tszip==0.2.5
3-
h5py==3.13.0
43
zarr<3

python/requirements/development.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ codecov
66
coverage
77
dendropy
88
flake8
9-
h5py>=2.6.0
109
jsonschema>=3.0.0
1110
jupyter-book>=0.12.1
1211
kastore
@@ -22,7 +21,7 @@ numpy
2221
packaging
2322
portion
2423
pre-commit
25-
pyparsing
24+
pyparsing
2625
pysam
2726
pytest
2827
pytest-cov

python/requirements/development.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies:
1313
- dendropy
1414
- doxygen
1515
- flake8
16-
- h5py>=2.6.0
1716
- jsonschema>=3.0.0
1817
- jupyter-book>=0.12.1
1918
- kastore

python/tests/test_file_format.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import unittest
2929
import uuid as _uuid
3030

31-
import h5py
3231
import kastore
3332
import msprime
3433
import numpy as np
@@ -868,12 +867,6 @@ def test_load_empty_kastore(self):
868867
with pytest.raises(exceptions.LibraryError):
869868
tskit.load(self.temp_file)
870869

871-
def test_load_non_tskit_hdf5(self):
872-
with h5py.File(self.temp_file, "w") as root:
873-
root["x"] = np.zeros(10)
874-
with pytest.raises(exceptions.FileFormatError):
875-
tskit.load(self.temp_file)
876-
877870
def test_old_version_load_error(self):
878871
ts = msprime.simulate(10, random_seed=1)
879872
for bad_version in [(0, 1), (0, 8), (2, 0), (CURRENT_FILE_MAJOR - 1, 0)]:

0 commit comments

Comments
 (0)