Skip to content

Commit ffce1ab

Browse files
committed
Makefile added
1 parent 4f486c2 commit ffce1ab

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Makefile

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

0 commit comments

Comments
 (0)