-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devenv: use poetry instead of requirements.txt
Currently requirements.txt is used. It is installed in enterShell. This has 2 downsides: - Loading devenv shell takes a longer time, because pip install reruns every time the devenv shell is entered. - The dependencies that are installed are not locked. The latest version is chosen, which will result in differences in tooling for different people. devenv docs from the past might not be reproducible. The biggest downside I have seen is that the files are larger in size. Though I might be biased to using poetry vs pip directly.
- Loading branch information
1 parent
4e838d4
commit e85b081
Showing
6 changed files
with
1,004 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ result | |
/lib | ||
pyvenv.cfg | ||
/.direnv | ||
/.venv |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
tasks: | ||
- command: | | ||
- command: | | ||
cachix use devenv | ||
nix build --accept-flake-config | ||
./result/bin/devenv shell virtualenv . | ||
./result/bin/devenv shell bin/pip install -r requirements.txt | ||
./result/bin/devenv shell true |
This file contains 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
Oops, something went wrong.