Switch from Poetry to UV for dependency management#781
Merged
Conversation
- Switch to Material for MkDocs theme with Redis branding - Combine connections.md and redis_modules.md into redis_setup.md - Recommend Redis 8 over Redis Stack - Update all code examples for 1.0: - Add model-level index=True to indexed models - Update Pydantic validators to v2 syntax - Update error message formats to Pydantic v2 style - Replace @app.on_event with lifespan pattern in FastAPI examples - Replace Migrator().run() with om migrate CLI reference
- Convert pyproject.toml to PEP 621 format with hatchling backend - Update Makefile to use uv commands - Update CI, PyPI publish, and docs workflows for UV - Update documentation references to UV - Add example apps (FastAPI, Flask) demonstrating all Redis OM features - Add tests for example app patterns - Add uv.lock, remove poetry.lock reference from pre-commit
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Add 'uv' to spellcheck wordlist - Add safe_float() helper to reject NaN/Inf values in Flask app
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.
Summary
Switch dependency management from Poetry to UV for faster, more reliable builds.
Changes
Build System
pyproject.tomlfrom Poetry format to PEP 621 standard with hatchling backendMakefileto useuvcommands instead ofpoetryuv.locklockfileCI/CD Workflows
astral-sh/setup-uv@v5Documentation
Example Applications
New
examples/directory with:fastapi_app.py- Comprehensive async FastAPI example demonstrating all Redis OM featuresflask_app.py- Comprehensive sync Flask exampleREADME.md- Documentation for running examplesFeatures demonstrated in examples:
Testing
test_examples.pyadded (10 tests async + 10 sync)uv buildcreates valid wheel and sdist