forked from bessagroup/f3dasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.33 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
.DEFAULT_GOAL := help
PACKAGEDIR := dist
COVERAGEREPORTDIR := coverage_html_report
.PHONY: help init init-dev test test-smoke test-smoke-html test-html build upload upload-testpypi
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " init Install the requirements.txt"
@echo " init-dev Install the requirements_dev.txt"
@echo " test Run the tests with pytest"
@echo " test-html Run the tests with pytest and open the HTML coverage report"
@echo " test-smoke Run the smoke tests with pytest"
@echo " test-smoke-html Run the smoke tests with pytest and open the HTML coverage report"
@echo " build Build the package"
@echo " upload Upload the package to the PyPi index"
@echo " upload-testpypi Upload the package to the PyPi-test index"
init:
pip install -r requirements.txt
init-dev:
pip install -r requirements_dev
test:
pytest
test-smoke:
pytest -v -s -m smoke
test-smoke-html:
pytest -v -s -m smoke
xdg-open ./$(COVERAGEREPORTDIR)/index.html
test-html:
pytest
xdg-open ./$(COVERAGEREPORTDIR)/index.html
build:
-rm -rf $(PACKAGEDIR)/*
python -m build
upload-testpypi:
$(MAKE) build
twine upload -r testpypi $(PACKAGEDIR)/* --verbose
upload:
$(MAKE) build
twine upload $(PACKAGEDIR)/* --verbose