Skip to content

Commit c677a50

Browse files
committed
feat: update setup.cfg based on codemeta.json
1 parent 115ab7d commit c677a50

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,14 @@ confirm-release:
176176
exit 1
177177
fi
178178

179-
update-all: update-init update-meta update-citation update-example
179+
update-all: update-setup update-init update-meta update-citation update-example
180+
181+
update-setup: vars
182+
@sed -i .bak -e '/^version/ s|= .*|= $(version)|' setup.cfg
183+
@sed -i .bak -e '/^description/ s|= .*|= $(desc)|' setup.cfg
184+
@sed -i .bak -e '/^author/ s|= .*|= $(author)|' setup.cfg
185+
@sed -i .bak -e '/^email/ s|= .*|= $(email)|' setup.cfg
186+
@sed -i .bak -e '/^license / s|= .*|= $(license)|' setup.cfg
180187

181188
update-init: vars
182189
@sed -i .bak -e "s|^\(__version__ *=\).*|\1 '$(version)'|" $(initfile)
@@ -335,7 +342,7 @@ reset := $(shell tput sgr0)
335342

336343
.PHONY: help vars report release test-branch test tests update-all \
337344
update-init update-meta update-citation update-example commit-updates \
338-
release-on-github print-instructions update-doi \
345+
update-setup release-on-github print-instructions update-doi \
339346
packages test-pypi pypi clean really-clean completely-clean \
340347
clean-dist really-clean-dist clean-build really-clean-build \
341348
clean-release clean-other

0 commit comments

Comments
 (0)