Commit 2c303dc
committed
feat(nix): integrate uv2nix for Python dependency management
Replace uv-managed .venv with Nix-managed Python environments using
uv2nix. This provides fully reproducible builds with dependencies
cached in the Nix store, eliminating the need for uv sync in CI.
Key changes:
- Add uv2nix, pyproject-nix, and pyproject-build-systems inputs
- Create devShells for Python 3.11 and 3.13 (default, python311, python313)
- Add build system overrides for pypika (setuptools) and stackone-ai (editables)
- Update CI matrix to use nix develop .#pythonXXX instead of uv sync
- Simplify setup-nix action with gc-max-store-size for cache management
- Add lint-fix alias to justfile
The .venv directory is no longer needed as all dependencies are
managed by Nix. Both Nix and non-Nix users can still use uv run
commands which will work in either environment.1 parent 0bbfd2d commit 2c303dc
File tree
5 files changed
+247
-78
lines changed- .github
- actions/setup-nix
- workflows
5 files changed
+247
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 50 | | |
59 | | - | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | | - | |
| 54 | + | |
63 | 55 | | |
64 | 56 | | |
65 | | - | |
| 57 | + | |
66 | 58 | | |
67 | 59 | | |
68 | 60 | | |
| |||
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 74 | | |
86 | 75 | | |
87 | 76 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments