This repository was archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathpython3.toml
More file actions
71 lines (65 loc) · 2.52 KB
/
Copy pathpython3.toml
File metadata and controls
71 lines (65 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name = "python3"
entrypoint = "main.py"
extensions = [
"py"
]
aptRepos = [
"ppa:deadsnakes/ppa"
]
packages = [
"python3.8",
"python3.8-dev",
"python3.8-tk",
"python3.8-venv",
"libtk8.6",
"libevent-dev",
"gcc",
"tk-dev"
]
popularity = 5.0
setup = [
"ln -s /usr/bin/python3.8 /usr/local/bin/python3",
"curl https://bootstrap.pypa.io/get-pip.py | python3",
"python3 -m venv /opt/virtualenvs/python3",
# Use replit's version of pip.
"git clone https://github.com/replit/pip /tmp/pip && (cd /tmp/pip && /opt/virtualenvs/python3/bin/pip3 install --use-feature=in-tree-build .) && rm -rf /tmp/pip",
# Packages required for replit packaging
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check pipreqs-amasad==0.4.10 poetry==1.1.6",
# pyls and friends' transient dependencies, explicitly pinned
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check toml==0.10.2 future==0.18.2 importlib-metadata==3.10.1 parso==0.5.2 pluggy==0.13.1 python-jsonrpc-server==0.3.2 typing-extensions==3.7.4.3 ujson==1.35 zipp==3.4.1",
# pyls and friends
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check jedi==0.15.2 pyflakes==2.1.1 rope==0.18.0 yapf==0.31.0 python-language-server==0.31.10",
# Preinstalled large popular packages
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check matplotlib nltk numpy requests scipy replit",
# CS50 used by education institutions
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check cs50",
# lots of people use tensorflow, but it's too big to install in a repl.it workspace directory
# so we pre-install it here. we chose this wheel based on https://www.tensorflow.org/install/pip#virtual-environment-install
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.2.0-cp38-cp38-manylinux2010_x86_64.whl",
# Debug Adapter Protocol support
"/opt/virtualenvs/python3/bin/pip3 install --disable-pip-version-check debugpy==1.2.1",
# Avoid using older versions of the typing library.
"/opt/virtualenvs/python3/bin/python3 -m pip uninstall -y typing",
"/usr/bin/build-prybar-lang.sh python3",
]
[run]
command = [
"python3",
"-B",
"main.py"
]
[languageServer]
command = [
"pyls",
"-v"
]
[tests]
[tests.0]
code = "print(__name__)"
output = "__main__\n"
[tests.hello]
code = "print(\"hello\")"
output = "hello\n"
[tests.version]
code = "import sys; print(sys.version.startswith('3.8'))"
output = "True\n"