snapcraft.yaml 951 B

12345678910111213141516171819202122232425262728
  1. name: http-prompt
  2. summary: Interactive command-line HTTP client
  3. description: |
  4. HTTP Prompt is an interactive command-line HTTP client featuring autocomplete
  5. and syntax highlighting, built on HTTPie and prompt_toolkit.
  6. Home: http://http-prompt.com
  7. adopt-info: http-prompt
  8. confinement: strict
  9. apps:
  10. http-prompt:
  11. command: bin/http-prompt
  12. plugs: [ network ]
  13. parts:
  14. http-prompt:
  15. source: .
  16. plugin: python
  17. python-version: python2
  18. override-pull: |
  19. snapcraftctl pull
  20. version="$(git describe --always | sed -e 's/-/+git/;y/-/./')"
  21. case $version in
  22. v*) version=$(echo $version | tail -c +2) ;;
  23. *) version=$(echo $version | head -c 32) ;;
  24. esac
  25. [ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
  26. snapcraftctl set-version "$version"
  27. snapcraftctl set-grade "$grade"