forked from harmony-one/pyhmy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (40 loc) · 1.15 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
CURRENT_SIGN_SETTING := $(shell git config commit.gpgSign)
.PHONY: clean-py clean-build
help:
@echo "clean-build - remove build artifacts"
@echo "clean-py - remove Python file artifacts"
@echo "install - install the library locally"
@echo "test - run full test suite"
@echo "release - package and upload a release"
@echo "sdist - package"
clean: clean-build clean-py
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
rm -fr .eggs/
clean-py:
rm -fr .pytest_cache/
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
dev:
python3 -m pip install pytest
python3 -m pip install pytest-ordering
test:
python3 -m py.test -r s -s tests
install:
python3 -m pip install -e .
release: clean
python3 -m incremental.update pyhmy --patch --rc
python3 -m incremental.update pyhmy
python3 setup.py sdist bdist_wheel
twine upload dist/*
sdist: clean
ifdef VERSION # Argument for incremental, reference: https://pypi.org/project/incremental/ .
python3 -m incremental.update pyhmy --$(VERSION)
else
python3 -m incremental.update pyhmy --dev
endif
python3 setup.py sdist bdist_wheel
ls -l dist