File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
181188update-init : vars
182189 @sed -i .bak -e " s|^\(__version__ *=\).*|\1 '$( version) '|" $(initfile )
@@ -204,7 +211,7 @@ update-citation: vars
204211update-example :
205212 @sed -i .bak -E -e " /.* version [0-9].[0-9]+.[0-9]+/ s/[0-9].[0-9]+.[0-9]+/$( version) /" sample-workflow.yml
206213
207- edited := codemeta.json $(initfile ) CITATION.cff sample-workflow.yml
214+ edited := setup.cfg codemeta.json $(initfile ) CITATION.cff sample-workflow.yml
208215
209216commit-updates :
210217 git add $(edited )
@@ -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
You can’t perform that action at this time.
0 commit comments