mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-28 03:00:11 +00:00
Makefile added
This commit is contained in:
parent
4f486c2bc6
commit
ffce1ab2de
1 changed files with 34 additions and 0 deletions
34
Makefile
Normal file
34
Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
PROJECT_NAME=openapi-core
|
||||
PACKAGE_NAME=$(subst -,_,${PROJECT_NAME})
|
||||
VERSION=`git describe --abbrev=0`
|
||||
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
params:
|
||||
@echo "Project name: ${PROJECT_NAME}"
|
||||
@echo "Package name: ${PACKAGE_NAME}"
|
||||
@echo "Version: ${VERSION}"
|
||||
|
||||
dist-build:
|
||||
@python setup.py bdist_wheel
|
||||
|
||||
dist-cleanup:
|
||||
@rm -rf build dist ${PACKAGE_NAME}.egg-info
|
||||
|
||||
dist-upload:
|
||||
@twine upload dist/*.whl
|
||||
|
||||
test-python:
|
||||
@python setup.py test
|
||||
|
||||
test-cache-cleanup:
|
||||
@rm -rf .pytest_cache
|
||||
|
||||
reports-cleanup:
|
||||
@rm -rf reports
|
||||
|
||||
test-cleanup: test-cache-cleanup reports-cleanup
|
||||
|
||||
cleanup: dist-cleanup test-cleanup
|
Loading…
Reference in a new issue