Skip to content

Commit 5b0e753

Browse files
committed
Add bump2version to dev dependencies
1 parent 112cc93 commit 5b0e753

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

Diff for: Makefile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.EXPORT_ALL_VARIABLES:
2+
3+
PROJECT_NAME=openapi-schema-validator
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+
@poetry build
16+
17+
dist-cleanup:
18+
@rm -rf build dist ${PACKAGE_NAME}.egg-info
19+
20+
dist-upload:
21+
@poetry publish
22+
23+
test-python:
24+
@pytest
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+
docs-html:
35+
sphinx-build -b html docs docs/_build
36+
37+
docs-cleanup:
38+
@rm -rf docs/_build
39+
40+
cleanup: dist-cleanup test-cleanup
41+
42+
release/patch:
43+
@bump2version patch
44+
45+
release/minor:
46+
@bump2version minor
47+
48+
release/major:
49+
@bump2version major

Diff for: poetry.lock

+12-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pytest-cov = "*"
7272
mypy = "^1.5"
7373
flynt = "^1.0"
7474
deptry = "^0.12.0"
75+
bump2version = "^1.0.1"
7576

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

0 commit comments

Comments
 (0)