mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
only pin h5py version on non-mac platforms, since mac seems to be unaffected by file locking problem. fix windows permission error
This commit is contained in:
parent
fe2dbdcd58
commit
1f9e3ea481
3 changed files with 6 additions and 13 deletions
2
pdm.lock
2
pdm.lock
|
@ -5,7 +5,7 @@
|
|||
groups = ["default", "arrays", "dask", "dev", "docs", "hdf5", "tests", "video", "zarr"]
|
||||
strategy = ["cross_platform", "inherit_metadata"]
|
||||
lock_version = "4.5.0"
|
||||
content_hash = "sha256:a780500141cbf9d8453d464395951aed95cfba9bda9c82012f747c357ae6bb19"
|
||||
content_hash = "sha256:dee4ba1fabeacedf80f85b145bcb2ef83a2005cac6454f9672eb9a873cadd70b"
|
||||
|
||||
[[metadata.targets]]
|
||||
requires_python = "~=3.9"
|
||||
|
|
|
@ -53,7 +53,8 @@ dask = [
|
|||
"dask>=2024.4.0",
|
||||
]
|
||||
hdf5 = [
|
||||
"h5py>=3.10.0,<3.12.0"
|
||||
"h5py>=3.10.0,<3.12.0;sys_platform!='darwin'",
|
||||
"h5py>=3.10.0;sys_platform=='darwin'",
|
||||
]
|
||||
video = [
|
||||
"opencv-python>=4.9.0.80",
|
||||
|
|
|
@ -82,17 +82,9 @@ def test_relative_to_root_dir():
|
|||
beneath the root directory (eg `/data`) even if they exist
|
||||
|
||||
"""
|
||||
try:
|
||||
root = Path().resolve().parents[-1]
|
||||
except IndexError:
|
||||
root = Path("/").resolve()
|
||||
|
||||
test_path = None
|
||||
for path in root.iterdir():
|
||||
if path.is_dir():
|
||||
test_path = path
|
||||
|
||||
assert test_path is not None
|
||||
# try:
|
||||
this_file = Path(__file__).resolve()
|
||||
test_path = this_file.parents[-2]
|
||||
|
||||
test_data = {"some_field": str(test_path)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue