Skip to content

Commit

Permalink
Add bump2version to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Oct 5, 2023
1 parent 112cc93 commit 5b0e753
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
49 changes: 49 additions & 0 deletions Makefile
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
13 changes: 12 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pytest-cov = "*"
mypy = "^1.5"
flynt = "^1.0"
deptry = "^0.12.0"
bump2version = "^1.0.1"

[tool.poetry.group.docs.dependencies]
sphinx = ">=5.3,<8.0"
Expand Down

0 comments on commit 5b0e753

Please sign in to comment.