Skip to content

Conversation

@burtenshaw
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

✅ Deployment succeeded for copy_env

Nice work! Wait for a code review and we're ready to go.

You can iterate locally or validate fixes by running scripts/deploy_to_hf.sh --env "copy_env".

zkwentz and others added 22 commits November 1, 2025 20:17
- 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
…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.
zkwentz and others added 11 commits November 2, 2025 21:01
- 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.
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

✅ Deployment to Hugging Face succeeded for copy_env

Nice work! Wait for a code review and we're ready to go. You can test it with the CLI:

  • openenv push copy_env --repo-id openenv-testing/copy_env-pr-3

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants