forked from ThatXliner/stacksearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (19 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PYTHON := python3
PROJECT_NAME := package_name
test:
@pytest tests/ -vvv --durations=3
deps:
@echo "Installing dependencies..."
@$(PYTHON) -m pip install -r requirements.txt > /dev/null || @$(PYTHON) -m ensurepip && @$(PYTHON) -m pip install -r requirements.txt > /dev/null
dev-deps:
@echo "Installing developer dependencies"
@$(PYTHON) -m pip install -r dev-requirements.txt > /dev/null || @$(PYTHON) -m ensurepip && @$(PYTHON) -m pip install -r dev-requirements.txt > /dev/null
build:
@$(PYTHON) setup.py sdist bdist_wheel
clean:
@find . -type d \( -name '__pycache__' -or -name '*.egg-info' -or -name 'dist' -or -name 'build' -or -name '.pytest_cache' \) -exec rm -rf {} +
@black . || @$(PYTHON) -m pip install black > /dev/null || @$(PYTHON) -m ensurepip && @$(PYTHON) -m pip install black ||echo "Black failed."
develop:
@$(PYTHON) setup.py sdist bdist_wheel
@$(PYTHON) -m pip install -e . || @$(PYTHON) -m ensurepip && @$(PYTHON) -m pip -e .
@find . -type d \( -name '__pycache__' -or -name '*.egg-info' -or -name 'dist' -or -name 'build' -or -name '.pytest_cache' \) -exec rm -rf {} +