Use zstd from stdlib/backport#2009
Conversation
zstandard is used in tests/io/test_file.py. It had been indirectly installed through xopen's zstd extra, but that extra is no longer provided as of xopen version 2.1.0.
Use the built-in zstd support in Python 3.14 and the equivalent backport for older versions.
The latest version uses the built-in zstd support in Python 3.14 and the equivalent backport for older versions.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2009 +/- ##
=======================================
Coverage 72.96% 72.96%
=======================================
Files 85 85
Lines 10732 10732
Branches 2102 2102
=======================================
Hits 7831 7831
Misses 2536 2536
Partials 365 365 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
joverlee521
left a comment
There was a problem hiding this comment.
Thanks for the quick fix!
| extras_require = { | ||
| 'dev': [ | ||
| "cram >=0.7", | ||
| "backports.zstd; python_version < '3.14'", |
There was a problem hiding this comment.
Makes sense to include as dev dependency in augur, but we'll need to figure out downstream uses of the indirect dependency (e.g. pathogens in GH search).
I think the least disruptive is to add zstandard to the runtimes + ambient instructions
There was a problem hiding this comment.
OH zstandard is already included in conda-base, so just need to update docker-base and ambient instructions.
I'll make PRs.
There was a problem hiding this comment.
There was a problem hiding this comment.
conda-base only includes zstd (command line tool), not zstandard (Python package). I think we can replace the former with the latter (depends on the former).
There was a problem hiding this comment.
Ah, thanks for pointing out the distinction. Will update conda-base.
There was a problem hiding this comment.
The first commit addresses test failures that came with release of xopen 2.1.0 (specifically pycompression/xopen@755210b).
The other two commits follow through with related improvements, but are not strictly necessary.
Checklist