Skip to content

Commit f6acb00

Browse files
committed
change replit deployment setting
1 parent 17a2c13 commit f6acb00

File tree

5 files changed

+313
-50
lines changed

5 files changed

+313
-50
lines changed

.python-version

-1
This file was deleted.

.replit

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

0 commit comments

Comments
 (0)