Skip to content

Commit 7a82a39

Browse files
committed
Makefile: detect version automatically
1 parent f84bcf9 commit 7a82a39

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ DEVPKGS=diff_cover black pylint pep257 pydocstyle flake8 'tox>4' \
3131
isort wheel autoflake flake8-bugbear pyupgrade bandit \
3232
-rmypy-requirements.txt auto-walrus build
3333
COVBASE=coverage run --append
34-
35-
# Updating the Major & Minor version below?
36-
# Don't forget to update pyproject.toml as well
37-
#VERSION=8.2.$(shell date +%Y%m%d%H%M%S --utc --date=`git log --first-parent \
38-
# --max-count=1 --format=format:%cI`)
34+
VERSION=$(shell echo $$(tail -n 1 cwlprov/__init__.py | awk '{print $$3}'))
3935

4036
## all : default task (install cwlprov-py in dev mode)
4137
all: dev

0 commit comments

Comments
 (0)