forked from python-openapi/openapi-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 774 Bytes
/
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
.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:
@poetry build
dist-cleanup:
@rm -rf build dist ${PACKAGE_NAME}.egg-info
dist-upload:
@poetry publish
test-python:
@pytest
test-cache-cleanup:
@rm -rf .pytest_cache
reports-cleanup:
@rm -rf reports
test-cleanup: test-cache-cleanup reports-cleanup
docs-html:
sphinx-build -b html docs docs/_build
docs-cleanup:
@rm -rf docs/_build
cleanup: dist-cleanup test-cleanup
release/patch:
@bump2version patch
release/minor:
@bump2version minor
release/major:
@bump2version major