Skip to content

Commit

Permalink
Unpin numpy and bump ICF metadata version
Browse files Browse the repository at this point in the history
Closes #258
  • Loading branch information
jeromekelleher committed Oct 23, 2024
1 parent 3d7bfec commit 0b872af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.1.2 2024-XX-XX

Breaking changes

- ICF metadata format version bumped to ensure long-term compatility between numpy 1.26.x
and numpy >= 2. Existing ICFs will need to be recreated.

# 0.1.1 2024-06-19

Maintenance release:
Expand Down
2 changes: 1 addition & 1 deletion bio2zarr/vcf2zarr/icf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class VcfPartition:
num_records: int = -1


ICF_METADATA_FORMAT_VERSION = "0.3"
ICF_METADATA_FORMAT_VERSION = "0.4"
ICF_DEFAULT_COMPRESSOR = numcodecs.Blosc(
cname="zstd", clevel=7, shuffle=numcodecs.Blosc.NOSHUFFLE
)
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ authors = [
{name = "sgkit Developers", email = "project@sgkit.dev"},
]
dependencies = [
"numpy < 2",
# Pin numpy to >= 1.26 because this enables ICF files to be supported
# across numpy 1 and 2 (due to pickle format)
"numpy >= 1.26",
"zarr >= 2.17,< 3",
"click",
"tabulate",
Expand Down

0 comments on commit 0b872af

Please sign in to comment.