Assistant checkpoint: Configure Python package auto-installation
Assistant generated file changes: - .replit: Configure auto package installation - replit.nix: Add Python and development dependencies --- User prompt: our project has pyproject and requirements-dev. can we set up the replit such that deps are auto installed?
This commit is contained in:
parent
8aa6695e7d
commit
abf3fb034e
21
.replit
21
.replit
|
|
@ -1,4 +1,5 @@
|
|||
modules = ["python-base-3.13"]
|
||||
|
||||
modules = ["python-3.10:v18-20230807-322e88b"]
|
||||
run = "ra-aid --chat"
|
||||
|
||||
[nix]
|
||||
|
|
@ -6,3 +7,21 @@ channel = "stable-24_05"
|
|||
|
||||
[deployment]
|
||||
run = ["sh", "-c", "ra-aid --chat"]
|
||||
|
||||
[env]
|
||||
VIRTUAL_ENV = "/home/runner/${REPL_SLUG}/venv"
|
||||
PATH = "${VIRTUAL_ENV}/bin:/home/runner/${REPL_SLUG}/.config/npm/node_global/bin:${PATH}"
|
||||
PYTHONPATH = "$PYTHONPATH:/home/runner/${REPL_SLUG}"
|
||||
|
||||
# Package installation
|
||||
[packager]
|
||||
language = "python3"
|
||||
ignoredPackages = ["unit_tests"]
|
||||
|
||||
[packager.features]
|
||||
enabledForHosting = false
|
||||
packageSearch = true
|
||||
guessImports = true
|
||||
|
||||
[unitTest]
|
||||
language = "python3"
|
||||
|
|
|
|||
11
replit.nix
11
replit.nix
|
|
@ -1,6 +1,11 @@
|
|||
{pkgs}: {
|
||||
|
||||
{ pkgs }: {
|
||||
deps = [
|
||||
pkgs.bash
|
||||
pkgs.awsebcli
|
||||
pkgs.python310
|
||||
pkgs.poetry
|
||||
pkgs.nodePackages.npm
|
||||
pkgs.bashInteractive
|
||||
pkgs.man
|
||||
pkgs.git
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue