Skip to content

Commit f6e074e

Browse files
committed
Makefile added
1 parent 8f0bda3 commit f6e074e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.EXPORT_ALL_VARIABLES:
2+
3+
PROJECT_NAME=openapi-spec-validator
4+
PACKAGE_NAME=$(subst -,_,${PROJECT_NAME})
5+
VERSION=`git describe --abbrev=0`
6+
7+
params:
8+
@echo "Project name: ${PROJECT_NAME}"
9+
@echo "Package name: ${PACKAGE_NAME}"
10+
@echo "Version: ${VERSION}"
11+
12+
dist-build:
13+
@python setup.py bdist_wheel
14+
15+
dist-cleanup:
16+
@rm -rf build dist ${PACKAGE_NAME}.egg-info
17+
18+
dist-upload:
19+
@twine upload dist/*.whl
20+
21+
test-python:
22+
@python setup.py test
23+
24+
test-cache-cleanup:
25+
@rm -rf .pytest_cache
26+
27+
reports-cleanup:
28+
@rm -rf reports
29+
30+
test-cleanup: test-cache-cleanup reports-cleanup
31+
32+
cleanup: dist-cleanup test-cleanup

0 commit comments

Comments
 (0)