snapcraft.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: certbot-dns-dnspod
  2. summary: DNSPod DNS Authenticator plugin for Certbot
  3. version: '0.24.1'
  4. description: A certbot dns plugin to obtain certificates using dnspod. For information on how to set up, go to the GitHub page.
  5. website: https://github.com/ericzhang456/certbot-dns-dnspod # TODO (after merge): change url to https://github.com/tengattack/certbot-dns-dnspod
  6. license: Apache-2.0
  7. confinement: strict
  8. grade: stable
  9. base: core20
  10. adopt-info: certbot-dns-dnspod
  11. architectures:
  12. - build-on: arm64
  13. - build-on: amd64
  14. parts:
  15. certbot-dns-dnspod:
  16. plugin: python
  17. source: .
  18. override-pull: |
  19. snapcraftctl pull
  20. snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"`
  21. build-environment:
  22. - PIP_CONSTRAINT: $SNAPCRAFT_PART_SRC/snap-constraints.txt
  23. - SNAP_BUILD: "True"
  24. requirements:
  25. - snap-requirements.txt
  26. build-packages:
  27. - gcc
  28. - git
  29. - build-essential
  30. - libssl-dev
  31. - libffi-dev
  32. - python3-dev
  33. certbot-metadata:
  34. plugin: dump
  35. source: .
  36. stage: [setup.py, certbot-shared]
  37. override-pull: |
  38. snapcraftctl pull
  39. mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared
  40. slots:
  41. certbot:
  42. interface: content
  43. content: certbot-1
  44. read:
  45. - $SNAP/lib/python3.8/site-packages
  46. plugs:
  47. certbot-metadata:
  48. interface: content
  49. content: metadata-1
  50. target: $SNAP/certbot-shared