Skip to content

Commit

Permalink
Upgrading to v0.8.4 to support Certbot v1.18.
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Aug 17, 2021
1 parent b88eaa0 commit 715c892
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion certbot_castle/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.3.dev"
__version__ = "0.8.4.dev"
5 changes: 2 additions & 3 deletions certbot_castle/plugins/imap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import abc

logging.basicConfig(
format='%(asctime)s - %(levelname)s: %(message)s',
Expand Down Expand Up @@ -28,9 +29,7 @@

logger = logging.getLogger(__name__)

@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(common.Plugin):
class Authenticator(common.Plugin, interfaces.Authenticator, metaclass=abc.ABCMeta):

description = "Automatic S/MIME challenge by using IMAP integration"

Expand Down
5 changes: 2 additions & 3 deletions certbot_castle/plugins/installer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import abc

import zope.interface

Expand All @@ -14,9 +15,7 @@

logger = logging.getLogger(__name__)

@zope.interface.implementer(interfaces.IInstaller)
@zope.interface.provider(interfaces.IPluginFactory)
class Installer(common.Plugin):
class Installer(common.Plugin, interfaces.Installer, metaclass=abc.ABCMeta):

description = "Generates PKCS12 container from S/MIME challenge"

Expand Down
5 changes: 2 additions & 3 deletions certbot_castle/plugins/interactive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import abc

import zope.interface

Expand All @@ -12,9 +13,7 @@

logger = logging.getLogger(__name__)

@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(common.Plugin):
class Authenticator(common.Plugin, interfaces.Authenticator, metaclass=abc.ABCMeta):

description = "Performs the S/MIME challenge"

Expand Down
10 changes: 6 additions & 4 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
from certbot._internal.plugins import disco as plugins_disco
from certbot._internal.plugins import selection as plug_sel
from certbot._internal import cli
from certbot._internal import configuration
from certbot._internal import main as certbot_main
from certbot._internal import reporter
from certbot._internal import log
from certbot._internal.display import obj as display_obj
from certbot import errors
from certbot import util
from certbot import configuration
from certbot import interfaces

from certbot_castle import csr as csr_util

Expand All @@ -34,7 +36,7 @@ def prepare_config(cli_args):
plugins = plugins_disco.PluginsRegistry.find_all()
cargs = cli.prepare_and_parse_args(plugins, cli_args)
config = configuration.NamespaceConfig(cargs)
zope.component.provideUtility(config)
zope.component.provideUtility(config, interfaces.IConfig)
return config,plugins

def request_cert(args, config):
Expand Down Expand Up @@ -108,10 +110,10 @@ def main(args):
except errors.Error:
raise
report = reporter.Reporter(config)
zope.component.provideUtility(report)
zope.component.provideUtility(report, interfaces.IReporter)
util.atexit_register(report.print_messages)
with certbot_main.make_displayer(config) as displayer:
zope.component.provideUtility(displayer)
display_obj.set_display(displayer)

if (command == 'cert'):
request_cert(args, config)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
'Topic :: Utilities',
],
install_requires=[
'certbot>=1.1.0',
'acme>=0.29.0',
'certbot>=1.18.0',
'acme>=1.18.0',
'setuptools',
'zope.interface',
'imapclient'
Expand Down

0 comments on commit 715c892

Please sign in to comment.