Skip to content

Commit 5ecda3e

Browse files
committed
Prepare for certbot >= v3.0.0, migrate from snap core20 to core24
1 parent 1b90350 commit 5ecda3e

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

certbot_dns_netcup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
# Keep metadata before any imports (for setup.py)!
8-
__version__ = '1.4.3'
8+
__version__ = '3.0.0'
99
__url__ = 'https://github.com/coldfix/certbot-dns-netcup'
1010
__all__ = ['Authenticator']
1111

snap/snapcraft.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: certbot-dns-netcup
2-
version: 1.4.3
2+
version: 3.0.0
33
summary: Certbot DNS Authenticator plugin for netcup
44
description: |
55
This plugin automates the process of completing a dns-01 challenge by
@@ -8,10 +8,12 @@ description: |
88
99
confinement: strict
1010
grade: stable
11-
base: core20
12-
architectures:
13-
- build-on: amd64
14-
run-on: all
11+
base: core24
12+
adopt-info: certbot-dns-netcup
13+
platforms:
14+
all:
15+
build-on: amd64
16+
build-for: all
1517

1618
parts:
1719
certbot-dns-netcup:
@@ -47,10 +49,24 @@ parts:
4749
rm -rf $VENV_BASE_PACKAGES
4850
prime:
4951
- lib
52+
certbot-metadata:
53+
plugin: dump
54+
source: .
55+
stage: [setup.py, certbot-shared]
56+
override-pull: |
57+
craftctl default
58+
mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared
5059
5160
slots:
5261
certbot:
5362
interface: content
5463
content: certbot-1
5564
read:
56-
- $SNAP/lib/python3.8/site-packages
65+
- $SNAP/lib/python3.12/site-packages
66+
67+
plugs:
68+
certbot-metadata:
69+
interface: content
70+
content: metadata-1
71+
target: $SNAP/certbot-shared
72+

0 commit comments

Comments
 (0)