From 7fb03693a41471b56a47a4d06dbf6792dd3dc683 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com> Date: Fri, 17 May 2024 10:21:39 +0200 Subject: [PATCH] build: use git add citation.cff in build_command (#373) The `build_command` in the semantic_release config uses `git add CITATION.cff` again. Using the `assets` setting uploaded the citation file along side the wheel to the GitHub release, which was unnecessary. Fixes #370 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 71d4b4e..87ff1af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -243,10 +243,10 @@ tag_format = "{version}" version_variables = [ "src/oaipmh_scythe/__about__.py:__version__", ] -assets = ["CITATION.cff"] build_command = """ sed -i "s/^version: .*/version: $NEW_VERSION/" CITATION.cff sed -i "s/^date-released: .*/date-released: $(date "+%Y-%m-%d")/" CITATION.cff +git add CITATION.cff python -m pip install "build[uv]" python -m build --installer=uv """