Skip to content

Commit

Permalink
snap: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 4, 2020
1 parent b0ac86a commit ed1049a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .meta/.snapcraft.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: git-fame
summary: Pretty-print `git` repository collaborators sorted by contributions
description: |
{description}
version: '{version}'
adopt-info: git-fame
grade: stable
confinement: strict
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ jobs:
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
install:
- pip install setuptools_scm
- pip install .
script:
- make snapcraft.yaml
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ gitfame/git-fame.1: .meta/.git-fame.1.md gitfame/_gitfame.py
pandoc -o "$@" -s -t man

snapcraft.yaml: .meta/.snapcraft.yml
cat "$<" | sed -e 's/{version}/'"`python -m gitfame --version`"'/g' \
-e 's/{commit}/'"`git describe --always`"'/g' \
-e 's/{source}/./g' \
-e 's/{description}/https:\/\/github.com\/casperdcl\/git-fame/g' > "$@"
cat "$<" | sed -e "s/{version}/$$(python -m gitfame --version 2>&1)/g" \
-e "s/{commit}/$$(git describe --always)/g" \
-e 's/{source}/./g' > "$@"

.dockerignore:
echo '*' > $@
Expand Down

0 comments on commit ed1049a

Please sign in to comment.