-
Notifications
You must be signed in to change notification settings - Fork 434
python: use uv2nix for packaging #2115
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
base: main
Are you sure you want to change the base?
Conversation
domenkozar
commented
Aug 22, 2025
🔍 Suggested ReviewersBased on git blame analysis of the changed lines, the following contributors have significant experience with the modified code:
Please consider reviewing this PR as you have authored significant portions of the code being modified. Your expertise would be valuable! 🙏 This comment was automatically generated by git-blame-auto-reviewer Last updated: 2025-08-22T03:31:19.046Z |
|
Claude finished @domenkozar's task —— View job Code Review CompleteI've reviewed the uv2nix integration changes. Here are my findings focused on areas for improvement: Review Checklist:
Issues Identified🚨 Security & Reliability Concerns1. Unsafe file operations without validation ( pyprojectToml =
if builtins.pathExists (path + "/pyproject.toml")
then builtins.fromTOML (builtins.readFile (path + "/pyproject.toml"))
else { };
2. Missing input validation for packageName ( packageName = args.packageName or (...)
🐛 Potential Bugs3. Inconsistent path handling ( pythonSet.mkVirtualEnv "${packageName}-env" workspace.deps.default;
4. Missing error handling for workspace loading ( workspace = uv2nix.lib.workspace.loadWorkspace { workspaceRoot = path; };
⚡ Performance Issues5. Redundant file reads (
6. Heavy overlay composition ( .overrideScope (lib.composeManyExtensions [
pyproject-build-systems.overlays.default
overlay
]);
🧪 Test Coverage Gaps7. Limited test scenarios (
8. Missing integration tests
📝 Code Quality Issues9. Missing documentation
10. Inconsistent naming patterns ( pythonSet.mkVirtualEnv "${packageName}-env"
Recommendations
The core functionality looks solid, but these improvements would make it more robust for production use. |
Deploying devenv with
|
| Latest commit: |
3480296
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b124f7d5.devenv.pages.dev |
| Branch Preview URL: | https://uv2nix.devenv.pages.dev |
|
Excited to try and use this! I've got a uv project. Subscribed. |
|
@rawkode I actually made a module for my own use https://github.com/takeda/devenv-uv2nix (it basically sets up the environment in such way that all the packages are available in the shell) but I'm also excited about it, perhaps this implementation will be done better and I won't need it at all. |