back to 3.12

This commit is contained in:
Erica Portnoy 2024-07-16 11:38:10 -07:00
parent 2e7049a8c3
commit 3ef0ed6fd7
2 changed files with 10 additions and 10 deletions

View file

@ -71,7 +71,7 @@ def prepare_env(cli_args: List[str]) -> List[str]:
raise e
data = response.json()
connections = ['/snap/{0}/current/lib/python3.10/site-packages/'.format(item['slot']['snap'])
connections = ['/snap/{0}/current/lib/python3.12/site-packages/'.format(item['slot']['snap'])
for item in data.get('result', {}).get('established', [])
if item.get('plug', {}).get('plug') == 'plugin'
and item.get('plug-attrs', {}).get('content') == 'certbot-1']

View file

@ -14,7 +14,7 @@ description: |
- Keep track of when your certificate is going to expire, and renew it
- Help you revoke the certificate if that ever becomes necessary.
confinement: classic
base: core22
base: core24
grade: stable
adopt-info: certbot
@ -25,8 +25,8 @@ apps:
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
AUGEAS_LENS_LIB: "$SNAP/usr/share/augeas/lenses/dist"
CERTBOT_SNAPPED: "True"
#PYTHONHOME: "$SNAP"
#PYTHONPATH: "$SNAP/lib/python3.10/site-packages:$SNAP/usr/lib/python3/dist-packages:$SNAP/usr/lib/python3.10:${PYTHONPATH}"
PYTHONHOME: "$SNAP"
PYTHONPATH: "$SNAP/lib/python3.12/site-packages:$SNAP/usr/lib/python3/dist-packages:$SNAP/usr/lib/python3.12:${PYTHONPATH}"
renew:
command: bin/python3 -s $SNAP/bin/certbot -q renew
daemon: oneshot
@ -49,7 +49,7 @@ parts:
- ./certbot-apache
- ./certbot-nginx
stage:
- -usr/lib/python3.10/sitecustomize.py # maybe unnecessary
- -usr/lib/python3.12/sitecustomize.py # maybe unnecessary
# Old versions of this file used to unstage
# lib/python3.8/site-packages/augeas.py to avoid conflicts between
# python-augeas 0.5.0 which was pinned in snap-constraints.txt and
@ -59,18 +59,18 @@ parts:
# effect so we now stage the file to keep the auto-generated cffi file.
stage-packages:
- libaugeas0
- libpython3.10-dev
- libpython3.12-dev
# added to stage python:
- libpython3-stdlib
- libpython3.10-stdlib
- libpython3.10-minimal
- libpython3.12-stdlib
- libpython3.12-minimal
- python3-pip
- python3-wheel
- python3-venv
- python3-minimal
- python3-pkg-resources
- python3.10-minimal
- python3.10-venv
- python3.12-minimal
- python3.12-venv
# To build cryptography and cffi if needed
build-packages:
- gcc