Skip to content

Add urllib3 zstd extra to requirements#186

Open
dukovac wants to merge 1 commit into
DMTF:mainfrom
dukovac:fix/zstd-decode-support
Open

Add urllib3 zstd extra to requirements#186
dukovac wants to merge 1 commit into
DMTF:mainfrom
dukovac:fix/zstd-decode-support

Conversation

@dukovac

@dukovac dukovac commented Jul 13, 2026

Copy link
Copy Markdown
  • requests send "Accept-Encoding: *", which some services answer with Content-Encoding: zstd. Without a zstd-capable urllib3, the response body is returned raw and fails JSON parsing ("Service responded with invalid JSON").
  • >=2.6.0 is the first release where the [zstd] extra installs the stdlib-based decoder (backports.zstd on Python ≤3.13, compression.zstd on 3.14+) instead of the legacy zstandard package, giving reliable Content-Encoding: zstd decompression across Python versions.

Signed-off-by: Stefanie Dukovac <sdukovac@coreweave.com>
@dukovac dukovac force-pushed the fix/zstd-decode-support branch from cb113bd to 5698912 Compare July 13, 2026 17:55
@dukovac

dukovac commented Jul 13, 2026

Copy link
Copy Markdown
Author

This issue was first discovered here: DMTF/Redfish-Mockup-Creator#86

@mraineri

Copy link
Copy Markdown
Contributor

While we're here.... we should keep the dependencies in setup.py in sync with requirements.txt...

https://github.com/DMTF/python-redfish-library/blob/main/setup.py#L31

It looks like requirements.txt is missing some things though...

@mraineri

Copy link
Copy Markdown
Contributor

Suggestions:

For setup.py, add this requirement under extras_require to call out Python 3.9 or higher

Update CI testing to move away from older versions of Python. In tox.ini, change envlist = py38,py39,py311 to envlist = py311,py312,py313,py314

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