-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (40 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: clean-pyc clean-build docs
help:
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "format - formats files to match code style using black"
@echo "release - package and upload a release"
@echo "dist - package"
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
lint:
black --check .
format:
black .
install: clean
pip install --editable .
pip install -r requirements-dev.txt
npm ci
test:
brownie test --network hardhat -s
release: clean
# require that you be on a branch that's linked to origin/main
git status -s -b | head -1 | grep "\.\.origin/main"
git config commit.gpgSign true
bumpversion $(bump)
git push origin && git push origin --tags
python -m build
twine upload dist/*
dist: clean
python -m build
ls -l dist
package: clean
python -m build
python scripts/test_package.py