udpate harmony install, change source to pypi#67
Merged
codeskyblue merged 3 commits intomasterfrom Nov 22, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Harmony installation process to use the official PyPI package instead of custom URLs. The installation is now simplified to use the hypium package from PyPI with an optional Poetry extra.
Key changes:
- Simplified
install-harmonycommand to install only thehypiumpackage from PyPI - Added
hypiumas an optional dependency inpyproject.tomlwith aharmonyextra - Updated README to document the new installation method using pip extras
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| uiautodev/cli.py | Simplified install_harmony() to install single hypium package instead of multiple URLs |
| pyproject.toml | Added hypium as optional dependency with version ^6.0.7.200 and created harmony extra |
| README.md | Updated installation instructions to use pip extras syntax instead of CLI command |
Comments suppressed due to low confidence (1)
uiautodev/cli.py:40
- The
HARMONY_PACKAGESconstant is no longer used after the refactoring ofinstall_harmony(). It should be removed to avoid confusion and reduce dead code.
HARMONY_PACKAGES = [
"setuptools",
"https://public.uiauto.devsleep.com/harmony/xdevice-5.0.7.200.tar.gz",
"https://public.uiauto.devsleep.com/harmony/xdevice-devicetest-5.0.7.200.tar.gz",
"https://public.uiauto.devsleep.com/harmony/xdevice-ohos-5.0.7.200.tar.gz",
"https://public.uiauto.devsleep.com/harmony/hypium-5.0.7.200.tar.gz",
]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.