Skip to content

Add configurable network timeout#2314

Open
Himanshuagrawal4 wants to merge 1 commit into
pypa:masterfrom
Himanshuagrawal4:PRO/hatch-configurable-network-timeout
Open

Add configurable network timeout#2314
Himanshuagrawal4 wants to merge 1 commit into
pypa:masterfrom
Himanshuagrawal4:PRO/hatch-configurable-network-timeout

Conversation

@Himanshuagrawal4

Copy link
Copy Markdown

Summary

  • add HATCH_NETWORK_TIMEOUT to control Hatch network request timeouts
  • use the shared timeout helper for package index clients and downloads
  • document the environment variable and cover parsing with unit tests

Closes #2158.

Validation

  • git diff --check
  • direct timeout helper smoke test
  • python -m compileall -q src\hatch\utils\network.py src\hatch\index\core.py src\hatch\config\constants.py tests\utils\test_network.py

Note: full pytest was not run locally because this checkout was missing the hatchling test dependency.

@Himanshuagrawal4 Himanshuagrawal4 marked this pull request as ready for review June 10, 2026 08:06
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.

Making TIMEOUT used by pip install configurable

1 participant