Skip to content

Commit

Permalink
build: use git add citation.cff in build_command (#373)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
afuetterer committed May 17, 2024
1 parent 4353077 commit 7fb0369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit 7fb0369

Please sign in to comment.