Skip to content

Commit

Permalink
Bump Python version to 3.12 [#1]
Browse files Browse the repository at this point in the history
  • Loading branch information
mwt committed Aug 26, 2024
1 parent ee24d10 commit f15dfd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import find_packages
from setuptools import setup

version = "2.3.0"
version = "3.0.0"

install_requires = [
"requests>=2.25.1",
Expand Down
18 changes: 10 additions & 8 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# This file is generated automatically and should not be edited manually.
name: certbot-dns-bunny
summary: Bunny.net DNS Authenticator plugin for Certbot
long_description = readme,
description: Bunny.net DNS Authenticator plugin for Certbot
long_description = readme,
confinement: strict
grade: stable
base: core20
base: core24
adopt-info: certbot-dns-bunny

parts:
certbot-dns-bunny:
plugin: python
source: .
override-pull: |
snapcraftctl pull
snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d '"[:space:]'`
craftctl default
craftctl set version=$(grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]")
build-environment:
# We set this environment variable while building to try and increase the
# stability of fetching the rust crates needed to build the cryptography
Expand All @@ -25,7 +24,7 @@ parts:
# used. This is done to let these constraints be applied not only on the certbot package
# build, but also on any isolated build that pip could trigger when building wheels for
# dependencies. See https://github.com/certbot/certbot/pull/8443 for more info.
# - PIP_CONSTRAINT: $SNAPCRAFT_PART_SRC/snap-constraints.txt
- PIP_CONSTRAINT: $SNAPCRAFT_PART_SRC/snap-constraints.txt
- SNAP_BUILD: "True"
# To build cryptography and cffi if needed
build-packages:
Expand All @@ -36,19 +35,22 @@ parts:
- libffi-dev
- python3-dev
- cargo
- pkg-config
certbot-metadata:
plugin: dump
source: .
stage: [setup.py, certbot-shared]
override-pull: |
snapcraftctl pull
craftctl default
mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared
slots:
certbot:
interface: content
content: certbot-1
read:
- $SNAP/lib/python3.8/site-packages
- $SNAP/lib/python3.12/site-packages

plugs:
certbot-metadata:
interface: content
Expand Down

0 comments on commit f15dfd0

Please sign in to comment.