Skip to content

Commit

Permalink
added support for certbot 3.0 and dropped support for python 3.8 closes
Browse files Browse the repository at this point in the history
  • Loading branch information
infinityofspace committed Sep 15, 2024
1 parent b5e18cd commit 8b976b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setuptools>=41.6.0
requests>=2.20.0,<3.0
certbot>=1.18.0,<3.0
certbot~=3.0
dnspython>=2.0.0,<3.0
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from setuptools import setup, find_packages

import certbot_dns_duckdns
from certbot_dns_duckdns import __version__

with open("Readme.md") as f:
long_description = f.read()

setup(
name="certbot_dns_duckdns",
version=certbot_dns_duckdns.__version__,
version=__version__,
author="infinityofspace",
url="https://github.com/infinityofspace/certbot_dns_duckdns",
description="Obtain certificates using a DNS TXT record for DuckDNS domains",
Expand All @@ -17,7 +17,6 @@
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -29,9 +28,9 @@
"Topic :: System :: Systems Administration"
],
packages=find_packages(),
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=[
"certbot>=1.18.0,<3.0",
"certbot~=3.0",
"requests>=2.20.0,<3.0",
"dnspython>=2.0.0,<3.0"
],
Expand Down
10 changes: 5 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ summary: DuckDNS Authenticator plugin for Certbot
description: DuckDNS Authenticator plugin for Certbot
confinement: strict
grade: stable
base: core20
base: core24
adopt-info: certbot-dns-duckdns
architectures:
- build-on: amd64
Expand All @@ -15,8 +15,8 @@ parts:
plugin: python
source: .
override-pull: |
snapcraftctl pull
snapcraftctl set-version `grep ^__version__ $SNAPCRAFT_PART_SRC/certbot_dns_duckdns/__init__.py | cut -f2 -d= | tr -d "\"[:space:]\""`
craftctl default
craftctl set version=\$(grep ^__version__ $SNAPCRAFT_PART_SRC/certbot_dns_duckdns/__init__.py | cut -f2 -d= | tr -d "\"[:space:]\"")
build-environment:
- SNAP_BUILD: "True"
requirements:
Expand All @@ -34,15 +34,15 @@ parts:
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:
Expand Down

0 comments on commit 8b976b2

Please sign in to comment.