forked from bepolytech/ULBDiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
46 lines (34 loc) · 1.44 KB
/
init.sh
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
#!/bin/sh
echo "initializing virtual environnement..."
python3 -m venv .venv
echo -e "\n\n\n\n\n\n\n\n"
echo "initializing virtual environnement... Done"
echo "Selecting new virtual environnement..."
source .venv/bin/activate
echo -e "\n\n\n\n\n\n\n\n"
echo "initializing virtual environnement... Done"
echo "Selecting new virtual environnement... Done"
echo "Installing packages from requirements.txt..."
pip install -r requirements.txt
echo -e "\n\n\n\n\n\n\n\n"
echo "initializing virtual environnement... Done"
echo "Selecting new virtual environnement... Done"
echo "Installing packages from requirements.txt... Done"
echo "Instaling pre-commit from .pre-commit-config.yaml..."
pre-commit install
echo -e "\n\n\n\n\n\n\n\n"
echo "initializing virtual environnement... Done"
echo "Selecting new virtual environnement... Done"
echo "Installing packages from requirements.txt... Done"
echo "Instaling pre-commit from .pre-commit-config.yaml... Done"
echo "Running pre-commit for the first time..."
pre-commit run --all
echo -e "\n\n\n\n\n\n\n\n"
echo "initializing virtual environnement... Done"
echo "Selecting new virtual environnement... Done"
echo "Installing packages from requirements.txt... Done"
echo "Instaling pre-commit from .pre-commit-config.yaml... Done"
echo "Running pre-commit for the first time... Done"
echo "Initialisation finished !"
cp .env_template .env
echo -e "\nDon't forget to change the README.md and to changes the values in .env"