Skip to content
Extraits de code Groupes Projets
Valider 1d57371e rédigé par Vincent-Xavier Jumel's avatar Vincent-Xavier Jumel :hammer_pick:
Parcourir les fichiers

Ajout d'un Makefile compatible venv

parent 5abfa7f2
Branches main
Aucune étiquette associée trouvée
1 requête de fusion!91Mise à jour du README
# system python interpreter. used only to create virtual environment
PY = python3
VENV = ".venv"
BIN=$(VENV)/bin
# make it work on windows too
ifeq ($(OS), Windows_NT)
BIN=$(VENV)/Scripts
PY=python
endif
all: lint test
$(VENV): requirements.txt requirements-dev.txt setup.py
$(PY) -m venv $(VENV)
$(BIN)/pip install --upgrade -r requirements.txt
$(BIN)/pip install --upgrade -r requirements-dev.txt
$(BIN)/pip install -e .
touch $(VENV)
.PHONY: build
build: $(VENV)
$(BIN)/jb build .
.PHONY: lint
lint: $(VENV)
$(BIN)/flake8
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter