mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 20:42:47 +02:00
* fixed issue #5974 for certbot-dns-route53 * fixed issue #5967 for certbot-dns-digitalocean * update to use acme.magic_typing and DefaultDict class * added no-name-in-module identifier, for issue #5974 * added unused-import identifier to disable option, for issue #5974
This commit is contained in:
@@ -11,6 +11,8 @@ from certbot import errors
|
|||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.plugins import dns_common
|
from certbot.plugins import dns_common
|
||||||
|
|
||||||
|
from acme.magic_typing import DefaultDict, List, Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
INSTRUCTIONS = (
|
INSTRUCTIONS = (
|
||||||
@@ -34,7 +36,7 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Authenticator, self).__init__(*args, **kwargs)
|
super(Authenticator, self).__init__(*args, **kwargs)
|
||||||
self.r53 = boto3.client("route53")
|
self.r53 = boto3.client("route53")
|
||||||
self._resource_records = collections.defaultdict(list)
|
self._resource_records = collections.defaultdict(list) # type: DefaultDict[str, List[Dict[str, str]]]
|
||||||
|
|
||||||
def more_info(self): # pylint: disable=missing-docstring,no-self-use
|
def more_info(self): # pylint: disable=missing-docstring,no-self-use
|
||||||
return "Solve a DNS01 challenge using AWS Route53"
|
return "Solve a DNS01 challenge using AWS Route53"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
acme[dev]==0.21.1
|
-e acme[dev]
|
||||||
certbot[dev]==0.21.1
|
certbot[dev]==0.21.1
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ version = '0.25.0.dev0'
|
|||||||
# Remember to update local-oldest-requirements.txt when changing the minimum
|
# Remember to update local-oldest-requirements.txt when changing the minimum
|
||||||
# acme/certbot version.
|
# acme/certbot version.
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'acme>=0.21.1',
|
'acme>0.24.0',
|
||||||
'certbot>=0.21.1',
|
'certbot>=0.21.1',
|
||||||
'boto3',
|
'boto3',
|
||||||
'mock',
|
'mock',
|
||||||
|
|||||||
@@ -26,5 +26,11 @@ check_untyped_defs = True
|
|||||||
[mypy-certbot_dns_rfc2136.*]
|
[mypy-certbot_dns_rfc2136.*]
|
||||||
check_untyped_defs = True
|
check_untyped_defs = True
|
||||||
|
|
||||||
|
[mypy-certbot_dns_route53.*]
|
||||||
|
check_untyped_defs = True
|
||||||
|
|
||||||
|
[mypy-certbot_dns_digitalocean.*]
|
||||||
|
check_untyped_defs = True
|
||||||
|
|
||||||
[mypy-certbot_nginx.*]
|
[mypy-certbot_nginx.*]
|
||||||
check_untyped_defs = True
|
check_untyped_defs = True
|
||||||
|
|||||||
Reference in New Issue
Block a user