Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `install` now raises a helpful `ValueError` when given a VCS URL
(`git+`, `hg+`, `svn+`, `bzr+`) instead of an opaque parser error,
explaining that micropip only installs prebuilt wheels.
[#77](https://github.com/pyodide/micropip/issues/77)
[#277](https://github.com/pyodide/micropip/pull/277)

## [0.11.1] - 2026/04/02

Expand Down
4 changes: 2 additions & 2 deletions micropip/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async def add_requirement(self, req: str | Requirement) -> None:
raise ValueError(
f"Cannot install {req!r}: micropip only installs prebuilt wheels "
"and does not support installing from a VCS URL "
"(git+, hg+, svn+, bzr+). Provide a wheel URL or a package name "
"available on a configured index."
"(git+, hg+, svn+, bzr+). Provide a URL pointing to a wheel "
"or a package name available on a configured index."
)

try:
Expand Down
6 changes: 5 additions & 1 deletion tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ async def test_add_requirement_vcs_url_helpful_error(url, host_compat_layer):
from micropip.transaction import Transaction

transaction = create_transaction(Transaction, host_compat_layer)
with pytest.raises(ValueError, match="does not support installing from a VCS URL"):
with pytest.raises(ValueError) as exc_info:
await transaction.add_requirement(url)
assert (
"Provide a URL pointing to a wheel or a package name available on a configured index."
in str(exc_info.value)
)


def _pypi_metadata(package, versions_to_tags):
Expand Down
Loading