Feat: initialisation de l'année 2021-2022

This commit is contained in:
Bertrand Benjamin 2021-08-23 07:16:58 +02:00
commit 42da93af65
5 changed files with 103 additions and 0 deletions

31
Makefile Normal file
View File

@ -0,0 +1,31 @@
CLEUSB=Cle8G
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*" --exclude "**/*.ppm"
VENV="enseignements"
install:
git config core.hooksPath ./tools/git/hooks/
python -m venv ~/.venv/$(VENV)
( \
. ~/.venv/$(VENV)/bin/activate;\
pip install -r requirements.txt;\
)
update:
( \
. ~/.venv/$(VENV)/bin/activate;\
pip install --ignore-installed -r requirements.txt
)
clean:
git clean -idx -e venv/ -e video/
rsync_cleUSB: clean
rsync -rtv -u --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements
rsync -rtv -u $(COMMON_EXCLUDE) ../Divers/ /run/media/lafrite/$(CLEUSB)/Divers
rsync -rtv -u $(COMMON_EXCLUDE) ../Notes/ /run/media/lafrite/$(CLEUSB)/Notes
rsync -rtv -u $(COMMON_EXCLUDE) ../Productions\ Eleves/ /run/media/lafrite/$(CLEUSB)/Productions
.PHONY:

29
README.md Normal file
View File

@ -0,0 +1,29 @@
# Cours pour l'année 2021-2022
[![Build Status](https://drone.opytex.org/api/badges/lafrite/2021-2022/status.svg)](https://drone.opytex.org/lafrite/2021-2022)
## Quand on arrive
``` console
. config.sh
```
## Mise en place
``` console
make install
```
Cela va installer le git hook pour le formatage des fichiers rst et créer un virtualenv pour python.
## Structure des fichiers et dossiers
``` console
classe
> index.rst (Index pour la classe)
> n°_chapitre
> index.rst (index pour le chapitre)
> exercices.tex (tous les exercices du chapitre)
> 1E_... (exercices de l'étape 1)
> 1C_... (cours de l'étape 1)
```

13
config.fish Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -x ROOT (pwd)
set -x TEXINPUTS ".:$ROOT/tools/style//::"
function goroot
cd $ROOT
end
# activate virtual env
. ~/.venv/enseignements/bin/activate.fish

13
config.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
export ROOT=`pwd`
export TEXINPUTS=".:${ROOT}/tools/style//::"
# activate virtual env
source ~/.venv/enseignements/bin/activate
goroot(){
cd $ROOT
}

17
requirements.txt Normal file
View File

@ -0,0 +1,17 @@
docutils==0.16
gitdb==4.0.5
GitPython==3.1.7
greenlet==0.4.16
invoke==1.4.1
jedi==0.17.2
Jinja2==2.11.2
MarkupSafe==1.1.1
msgpack==1.0.0
mypytex==0.4
parso==0.7.1
prompt-toolkit==3.0.6
pynvim==0.4.1
restructuredtext-lint==1.3.1
smmap==3.0.4
Unidecode==1.1.1
wcwidth==0.2.5