-
Notifications
You must be signed in to change notification settings - Fork 1
Improvements to support Windows #21
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
Conversation
…server, which is unlikely to be the end-user platform.
|
Partly fixes #20 but HF model download issues are not Windows-specific, so that will be handled in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Windows support to the ollama-downloader project by implementing platform-specific compatibility fixes and adding Windows-specific test coverage.
Key changes:
- Added Windows compatibility by conditionally importing Unix-specific modules
- Enhanced error handling with more detailed HTTP error messages
- Fixed path handling to use cross-platform compatible methods
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ollama_downloader/sysinfo.py | Added conditional import of grp module for Unix/Linux compatibility |
| src/ollama_downloader/cli.py | Enhanced error logging with HTTP response details |
| src/ollama_downloader/data/data_models.py | Updated default path construction for cross-platform compatibility |
| src/ollama_downloader/init.py | Changed path separator to use os.path.join for Windows compatibility |
| src/ollama_downloader/downloader/model_downloader.py | Fixed variable scoping by moving model/tag parsing before match statement |
| src/ollama_downloader/downloader/hf_model_downloader.py | Added default handling for missing tag in model identifier |
| pyproject.toml | Added Windows-specific pywin32 dependency |
| .github/workflows/uv-pytest.yml | Updated workflow naming and removed comments |
| tests_on_windows.txt | Added list of Windows-compatible tests |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anirban Basu <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anirban Basu <[email protected]>
Potentially fixes #20