File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # !make
12
23VENV =venv
34PYTHON =$(VENV ) /bin/python
@@ -8,6 +9,7 @@ BLACK=$(VENV)/bin/black
89TOX =$(VENV ) /bin/tox
910PYTEST =$(VENV ) /bin/pytest
1011PRE_COMMIT =$(VENV ) /bin/pre-commit
12+ WHEEL =$(VENV ) /bin/wheel
1113TWINE =$(VENV ) /bin/twine
1214GIT =git
1315
@@ -47,6 +49,9 @@ $(PYTEST): $(PIP)
4749$(PRE_COMMIT ) : $(PIP )
4850 $(PIP ) install pre-commit
4951
52+ $(WHEEL ) : $(PIP )
53+ $(PIP ) install wheel
54+
5055$(TWINE ) : $(PIP )
5156 $(PIP ) install wheel twine
5257
@@ -84,15 +89,16 @@ test.integration:
8489
8590# # run - Run application.
8691run :
87- alertad
92+ alerta
8893
8994# # tag - Git tag with current version.
9095tag :
9196 $(GIT ) tag -a v$(VERSION ) -m " version $( VERSION) "
9297 $(GIT ) push --tags
9398
9499# # build - Build package.
95- build : $(PKG_SDIST ) $(PKG_WHEEL )
100+ build : $(PIP ) $(WHEEL ) $(PKG_SDIST ) $(PKG_WHEEL )
101+
96102$(PKG_SDIST ) :
97103 $(PYTHON ) setup.py sdist
98104$(PKG_WHEEL ) :
@@ -104,8 +110,11 @@ upload: $(TWINE)
104110
105111# # clean - Clean source.
106112clean :
113+ rm -rf $(VENV )
114+ rm -rf .tox
115+ rm -rf dist
116+ rm -rf build
107117 find . -name " *.pyc" -exec rm {} \;
108- rm -Rf build dist * .egg-info
109118
110119# # help - Show this help.
111120help : Makefile
You can’t perform that action at this time.
0 commit comments