forked from meta-pytorch/OpenEnv
-
Notifications
You must be signed in to change notification settings - Fork 0
commit copy env #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
burtenshaw
wants to merge
42
commits into
main
Choose a base branch
from
testing-pr-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
|
✅ Deployment succeeded for
Nice work! Wait for a code review and we're ready to go. You can iterate locally or validate fixes by running |
- Introduced `openenv` command-line interface for environment management. - Implemented `push` command to deploy environments to HuggingFace Spaces. - Added authentication handling with HuggingFace API. - Created staging directory structure and prepared Dockerfiles and README files for deployment. - Included tests for authentication, builder, uploader, and push command functionalities. - Updated `pyproject.toml` to include new dependencies and scripts.
- Updated the `push_environment` function to conditionally upload to HuggingFace Spaces only if not in dry run mode. - Simplified the cleanup process for the staging directory, ensuring it is removed regardless of the upload status.
- Added functionality to check for existing HuggingFace front matter in README files and use it as-is if present. - Implemented random generation of front matter with approved emojis and colors when no front matter exists. - Updated tests to verify correct handling of existing front matter and generation of new front matter.
- Introduced `--space-name` argument in the push command to allow users to specify a custom name for the HuggingFace Space. - Updated `push_environment` function to accept `space_name` parameter and modified repository ID retrieval to use it if provided. - Enhanced tests to cover scenarios with custom space names and ensure correct functionality with both namespace and space name.
- Added `--space-name` option to specify a custom name for the HuggingFace Space. - Updated usage examples to demonstrate pushing with a custom space name and organization. - Clarified space provisioning logic in the README to reflect the new parameter handling.
[CLI/ENHANCEMENT] Logging in CLI with rich and isolation
…d push command logic update
…ames and avoid duplicates when appending original content. Added tests
- Removed the space_exists function as it was deemed unnecessary. - Enhanced error handling in create_space to provide clearer messages for authentication and permission errors. - Updated tests to validate the new error handling logic for create_space, ensuring informative exceptions are raised for various failure scenarios.
Co-authored-by: burtenshaw <[email protected]>
…ging Face repository ID, replacing `--namespace` and `--space-name` options. - Fix interactive authentication bug.
- Added openenv_cli as a dependency in pyproject.toml. - Included openenv_cli scripts for easier access. - Updated package directory structure to include openenv_cli. - Added a verification step in the GitHub Actions workflow to check for the openenv_cli directory before building the package.
- Introduced Typer for a more structured command-line interface, enhancing user experience. - Added `_cli_utils.py` for shared utilities, including a `typer_factory` for consistent app creation. - Updated `push` command to handle authentication and environment pushing more effectively. - Refactored authentication logic in `auth.py` to use an `AuthStatus` class for better state management. - Improved README to reflect new CLI structure and usage patterns.
- Removed unused imports and type annotations in `__main__.py`, `_cli_utils.py`, and `space.py`. - Simplified the `upload_to_space` function by eliminating the `HfApi` parameter, streamlining the upload process. - Updated tests in `test_uploader.py` to reflect changes in the `upload_to_space` function, ensuring proper functionality without the `HfApi` dependency.
- Introduced tests for the `typer_factory` function in `test_cli_utils.py` to ensure proper Typer app creation and settings. - Added tests for environment loading functionalities in `test_env_loader.py`, covering validation and metadata loading for environments. - Enhanced authentication tests in `test_auth.py` to cover various failure scenarios during login and status checks. - Expanded tests for the `push` command in `test_push_command.py`, including error handling and dry run scenarios. - Implemented staging directory preparation tests in `test_builder.py` to verify cleanup and directory creation logic.
Openenv cli/v1 ci
|
✅ Deployment to Hugging Face succeeded for Nice work! Wait for a code review and we're ready to go. You can test it with the CLI:
|
burtenshaw
pushed a commit
that referenced
this pull request
Nov 3, 2025
Fix: Create robust client parser for server responses
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.