Skip to content

Use zstd from stdlib/backport#2009

Merged
victorlin merged 3 commits into
masterfrom
victorlin/zstd
Jun 3, 2026
Merged

Use zstd from stdlib/backport#2009
victorlin merged 3 commits into
masterfrom
victorlin/zstd

Conversation

@victorlin

@victorlin victorlin commented Jun 3, 2026

Copy link
Copy Markdown
Member

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

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

victorlin added 3 commits June 3, 2026 12:25
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.
@victorlin victorlin self-assigned this Jun 3, 2026
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.96%. Comparing base (227d268) to head (c7966aa).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joverlee521 joverlee521 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

Comment thread setup.py
extras_require = {
'dev': [
"cram >=0.7",
"backports.zstd; python_version < '3.14'",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OH zstandard is already included in conda-base, so just need to update docker-base and ambient instructions.

I'll make PRs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for pointing out the distinction. Will update conda-base.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victorlin victorlin merged commit 9e574be into master Jun 3, 2026
35 checks passed
@victorlin victorlin deleted the victorlin/zstd branch June 3, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants