forked from python-openapi/openapi-schema-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bump2version to dev dependencies
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.EXPORT_ALL_VARIABLES: | ||
|
||
PROJECT_NAME=openapi-schema-validator | ||
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters