1
+ # The command that runs the program. If the interpreter field is set, it will have priority and this run command will do nothing
2
+ run = "python3 main.py"
3
+
4
+ # The primary language of the repl. There can be others, though!
5
+ language = "python3"
6
+ entrypoint = "main.py"
7
+ # A list of globs that specify which files and directories should
8
+ # be hidden in the workspace.
9
+ hidden = ["venv", ".config", "**/__pycache__", "**/.mypy_cache", "**/*.pyc"]
10
+
11
+ # Specifies which nix channel to use when building the environment.
12
+ [nix]
13
+ channel = "stable-22_11"
14
+
15
+ # The command to start the interpreter.
16
+ [interpreter]
17
+ [interpreter.command]
18
+ args = [
19
+ "stderred",
20
+ "--",
21
+ "prybar-python310",
22
+ "-q",
23
+ "--ps1",
24
+ "\u0001\u001b[33m\u0002\u0001\u001b[00m\u0002 ",
25
+ "-i",
26
+ ]
27
+ env = { LD_LIBRARY_PATH = "$PYTHON_LD_LIBRARY_PATH" }
28
+
29
+ [env]
30
+ VIRTUAL_ENV = "/home/runner/${REPL_SLUG}/venv"
31
+ PATH = "${VIRTUAL_ENV}/bin"
32
+ PYTHONPATH = "$PYTHONHOME/lib/python3.10:${VIRTUAL_ENV}/lib/python3.10/site-packages"
33
+ REPLIT_POETRY_PYPI_REPOSITORY = "https://package-proxy.replit.com/pypi/"
34
+ MPLBACKEND = "TkAgg"
35
+ POETRY_CACHE_DIR = "${HOME}/${REPL_SLUG}/.cache/pypoetry"
36
+
37
+ # Enable unit tests. This is only supported for a few languages.
38
+ [unitTest]
39
+ language = "python3"
40
+
41
+ # Add a debugger!
42
+ [debugger]
43
+ support = true
44
+
45
+ # How to start the debugger.
46
+ [debugger.interactive]
47
+ transport = "localhost:0"
48
+ startCommand = ["dap-python", "main.py"]
49
+
50
+ # How to communicate with the debugger.
51
+ [debugger.interactive.integratedAdapter]
52
+ dapTcpAddress = "localhost:0"
53
+
54
+ # How to tell the debugger to start a debugging session.
55
+ [debugger.interactive.initializeMessage]
56
+ command = "initialize"
57
+ type = "request"
58
+
59
+ [debugger.interactive.initializeMessage.arguments]
60
+ adapterID = "debugpy"
61
+ clientID = "replit"
62
+ clientName = "replit.com"
63
+ columnsStartAt1 = true
64
+ linesStartAt1 = true
65
+ locale = "en-us"
66
+ pathFormat = "path"
67
+ supportsInvalidatedEvent = true
68
+ supportsProgressReporting = true
69
+ supportsRunInTerminalRequest = true
70
+ supportsVariablePaging = true
71
+ supportsVariableType = true
72
+
73
+ # How to tell the debugger to start the debuggee application.
74
+ [debugger.interactive.launchMessage]
75
+ command = "attach"
76
+ type = "request"
77
+
78
+ [debugger.interactive.launchMessage.arguments]
79
+ logging = {}
80
+
81
+ # Configures the packager.
82
+ [packager]
83
+ language = "python3"
84
+ ignoredPackages = ["unit_tests"]
85
+
86
+ [packager.features]
87
+ enabledForHosting = false
88
+ # Enable searching packages from the sidebar.
89
+ packageSearch = true
90
+ # Enable guessing what packages are needed from the code.
91
+ guessImports = true
92
+
93
+ # These are the files that need to be preserved when this
94
+ # language template is used as the base language template
95
+ # for Python repos imported from GitHub
96
+ [gitHubImport]
97
+ requiredFiles = [".replit", "replit.nix", ".config", "venv"]
98
+
99
+ [languages]
100
+
101
+ [languages.python3]
102
+ pattern = "**/*.py"
103
+
104
+ [languages.python3.languageServer]
105
+ start = "pylsp"
106
+
107
+ [deployment]
108
+ run = ["sh", "-c", "python3 main.py"]
0 commit comments