-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 1.01 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
24
25
26
27
28
29
30
31
32
VIRTUAL_ENV ?= venv
lint: install
$(VIRTUAL_ENV)/bin/flake8 src tests
$(VIRTUAL_ENV)/bin/black --check src tests
$(VIRTUAL_ENV)/bin/mypy --ignore-missing-imports src tests
test: install
$(VIRTUAL_ENV)/bin/pytest tests
compile: install-requirements
$(VIRTUAL_ENV)/bin/deploy-tools compile --evm-version petersburg -d ./contracts/contracts
$(VIRTUAL_ENV)/bin/python scripts/pack_contracts.py build/contracts.json src/merkle_drop/contracts.json
build: compile
$(VIRTUAL_ENV)/bin/python setup.py sdist
install-requirements: .installed
install: install-requirements compile
$(VIRTUAL_ENV)/bin/pip install -c constraints.txt -e .
.installed: constraints.txt requirements.txt $(VIRTUAL_ENV)
$(VIRTUAL_ENV)/bin/pip install -c constraints.txt pip wheel setuptools
$(VIRTUAL_ENV)/bin/pip install -c constraints.txt -r requirements.txt
@echo "This file controls for make if the requirements in your virtual env are up to date" > $@
$(VIRTUAL_ENV):
python3 -m venv $@
.PHONY: install install-requirements test lint compile build