-
Notifications
You must be signed in to change notification settings - Fork 0
Dev local #1
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
This was an automatic fix by copilot, but has been manually reviewed by: Argo Nickerson
- Fixed test_detect_system_locale failing on macOS-latest Python 3.11 - Replaced @patch.dict decorator with explicit environment variable management - Ensured LC_ALL/LC_MESSAGES don't interfere with LANG test variable - Added proper environment cleanup and restoration in test - Removed unused unittest.mock.patch import - Fixed code formatting and linting issues The test was failing because macOS CI sets LC_ALL/LC_MESSAGES which take precedence over LANG in locale detection. Now explicitly clears all locale env vars before setting test LANG value. Resolves: GitHub Actions macOS test failure All 24 tests now pass with
|
Reference for reviewer: Most issues encountered so far have been the result of a faulty workflow run, so many changes to .github/workflows/ci.yml have been proposed to fix bad versioning, imports, etc |
Import sys and use assertions to ensure that only windows can run the windows functions, and mac can only run mac, etc
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 pull request introduces the complete implementation of pyLocalEngine, a Python localization framework following the LocalEngine specification. The PR adds a comprehensive localization system with automatic locale detection, dynamic locale switching, and support for multiple file formats (JSON, XML, YAML).
- Complete LocalEngine implementation with core components (engine, file manager, locale detector, exceptions)
- Comprehensive test suite with 24 tests covering all functionality
- Documentation, examples, migration tools, and CI/CD pipeline setup
Reviewed Changes
Copilot reviewed 32 out of 33 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| localengine/ | Core implementation package with engine, file manager, locale detector, and exception handling |
| tests/ | Complete test suite with isolated test environments and comprehensive coverage |
| examples/ | Demonstration scripts showing basic usage, advanced features, remote loading, and benchmarking |
| tools/migrate.py | Migration utility supporting i18next, gettext, Django, and React Intl formats |
| locales/ | Example locale files in JSON, XML, and YAML formats for multiple languages |
| setup.py, pyproject.toml | Package configuration with proper dependencies and metadata |
| ci-test.sh | Local CI/CD test script emulating GitHub Actions workflow |
| .github/workflows/ | CI/CD pipeline with multi-platform testing and PyPI publishing |
| Makefile | Development workflow automation with common tasks |
| README.md, USER.md, DOCS.md | Comprehensive documentation covering usage, API reference, and architecture |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.