Skip to content

Commit

Permalink
Replace bump2version with bumpver following the switch to CalVer #119
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Apr 7, 2021
1 parent db48600 commit 2fe9be0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .bumpversion.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ package: conf
bin/python setup.py sdist

bump:
@echo "-> Bump the version to next patch number: 'major.minor.patch'"
bin/bumpversion patch --allow-dirty
@echo "-> Bump the version"
bin/bumpver update --no-fetch

docs:
rm -rf docs/_build/
Expand Down
2 changes: 1 addition & 1 deletion etc/requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Sphinx==3.5.3
sphinx_rtd_theme==0.5.2

# Release
bump2version==1.0.1
bumpver==2021.1112
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ line_length = 88
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
skip = lib,migrations,bin,settings,data,Script,Lib,lib64,local,var,tmp,thirdparty

[bumpver]
current_version = "21.4.5"
version_pattern = "YY.MM.DD"

[bumpver:file_patterns]
setup.cfg = current_version = "{version}"
setup.py = {version}
scancodeio/__init__.py = {version}
docs/offline-installation.rst = {version}

0 comments on commit 2fe9be0

Please # to comment.