mirror of
https://github.com/certbot/certbot.git
synced 2025-07-28 21:42:01 +03:00
Reorganize imports (#7616)
* Isort execution * Fix pylint, adapt coverage * New isort * Fix magic_typing lint * Second round * Fix pylint * Third round. Store isort configuration * Fix latest mistakes * Other fixes * Add newline * Fix lint errors
This commit is contained in:
committed by
ohemorange
parent
34b568f366
commit
e048da1e38
7
.isort.cfg
Normal file
7
.isort.cfg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[settings]
|
||||||
|
skip_glob=venv*
|
||||||
|
skip=letsencrypt-auto-source
|
||||||
|
force_sort_within_sections=True
|
||||||
|
force_single_line=True
|
||||||
|
order_by_type=False
|
||||||
|
line_length=400
|
@ -13,7 +13,6 @@ import warnings
|
|||||||
#
|
#
|
||||||
# It is based on
|
# It is based on
|
||||||
# https://github.com/requests/requests/blob/1278ecdf71a312dc2268f3bfc0aabfab3c006dcf/requests/packages.py
|
# https://github.com/requests/requests/blob/1278ecdf71a312dc2268f3bfc0aabfab3c006dcf/requests/packages.py
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
|
|
||||||
for mod in list(sys.modules):
|
for mod in list(sys.modules):
|
||||||
|
@ -5,25 +5,26 @@ import datetime
|
|||||||
from email.utils import parsedate_tz
|
from email.utils import parsedate_tz
|
||||||
import heapq
|
import heapq
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
import six
|
|
||||||
from six.moves import http_client # pylint: disable=import-error
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
import requests
|
import requests
|
||||||
from requests.adapters import HTTPAdapter
|
from requests.adapters import HTTPAdapter
|
||||||
from requests_toolbelt.adapters.source import SourceAddressAdapter
|
from requests_toolbelt.adapters.source import SourceAddressAdapter
|
||||||
|
import six
|
||||||
|
from six.moves import http_client # pylint: disable=import-error
|
||||||
|
|
||||||
from acme import crypto_util
|
from acme import crypto_util
|
||||||
from acme import errors
|
from acme import errors
|
||||||
from acme import jws
|
from acme import jws
|
||||||
from acme import messages
|
from acme import messages
|
||||||
# pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
from acme.magic_typing import Dict, List, Set, Text
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Text # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -6,15 +6,15 @@ import os
|
|||||||
import re
|
import re
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from OpenSSL import crypto
|
|
||||||
from OpenSSL import SSL # type: ignore # https://github.com/python/typeshed/issues/2052
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
|
from OpenSSL import crypto
|
||||||
|
from OpenSSL import SSL # type: ignore # https://github.com/python/typeshed/issues/2052
|
||||||
|
|
||||||
from acme import errors
|
from acme import errors
|
||||||
# pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Callable # pylint: disable=unused-import, no-name-in-module
|
||||||
from acme.magic_typing import Callable, Union, Tuple, Optional
|
from acme.magic_typing import Optional # pylint: disable=unused-import, no-name-in-module
|
||||||
# pylint: enable=unused-import, no-name-in-module
|
from acme.magic_typing import Tuple # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Union # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import logging
|
|||||||
import josepy as jose
|
import josepy as jose
|
||||||
import pyrfc3339
|
import pyrfc3339
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
"""Shim class to not have to depend on typing module in prod."""
|
"""Shim class to not have to depend on typing module in prod."""
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class TypingClass(object):
|
class TypingClass(object):
|
||||||
"""Ignore import errors by getting anything"""
|
"""Ignore import errors by getting anything"""
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
|
@ -1,18 +1,21 @@
|
|||||||
"""ACME protocol messages."""
|
"""ACME protocol messages."""
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
import josepy as jose
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from acme import challenges
|
||||||
|
from acme import errors
|
||||||
|
from acme import fields
|
||||||
|
from acme import jws
|
||||||
|
from acme import util
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from collections.abc import Hashable # pylint: disable=no-name-in-module
|
from collections.abc import Hashable # pylint: disable=no-name-in-module
|
||||||
except ImportError: # pragma: no cover
|
except ImportError: # pragma: no cover
|
||||||
from collections import Hashable
|
from collections import Hashable
|
||||||
|
|
||||||
import josepy as jose
|
|
||||||
|
|
||||||
from acme import challenges
|
|
||||||
from acme import errors
|
|
||||||
from acme import fields
|
|
||||||
from acme import util
|
|
||||||
from acme import jws
|
|
||||||
|
|
||||||
OLD_ERROR_PREFIX = "urn:acme:error:"
|
OLD_ERROR_PREFIX = "urn:acme:error:"
|
||||||
ERROR_PREFIX = "urn:ietf:params:acme:error:"
|
ERROR_PREFIX = "urn:ietf:params:acme:error:"
|
||||||
|
@ -11,8 +11,7 @@ from six.moves import socketserver # type: ignore # pylint: disable=import-err
|
|||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme import crypto_util
|
from acme import crypto_util
|
||||||
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -12,10 +12,9 @@
|
|||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import shlex
|
import shlex
|
||||||
|
import sys
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
@ -26,8 +26,10 @@ Workflow:
|
|||||||
- Deactivate Account
|
- Deactivate Account
|
||||||
"""
|
"""
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from cryptography.hazmat.backends import default_backend
|
from cryptography.hazmat.backends import default_backend
|
||||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||||
|
import josepy as jose
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
@ -36,7 +38,6 @@ from acme import crypto_util
|
|||||||
from acme import errors
|
from acme import errors
|
||||||
from acme import messages
|
from acme import messages
|
||||||
from acme import standalone
|
from acme import standalone
|
||||||
import josepy as jose
|
|
||||||
|
|
||||||
# Constants:
|
# Constants:
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
# Please update tox.ini when modifying dependency version requirements
|
# Please update tox.ini when modifying dependency version requirements
|
||||||
|
@ -4,7 +4,6 @@ import unittest
|
|||||||
import josepy as jose
|
import josepy as jose
|
||||||
import mock
|
import mock
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from six.moves.urllib import parse as urllib_parse # pylint: disable=relative-import
|
from six.moves.urllib import parse as urllib_parse # pylint: disable=relative-import
|
||||||
|
|
||||||
import test_util
|
import test_util
|
||||||
|
@ -5,19 +5,17 @@ import datetime
|
|||||||
import json
|
import json
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from six.moves import http_client # pylint: disable=import-error
|
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import mock
|
import mock
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
import requests
|
import requests
|
||||||
|
from six.moves import http_client # pylint: disable=import-error
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme import errors
|
from acme import errors
|
||||||
from acme import jws as acme_jws
|
from acme import jws as acme_jws
|
||||||
from acme import messages
|
from acme import messages
|
||||||
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
import messages_test
|
import messages_test
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
|
@ -5,17 +5,16 @@ import threading
|
|||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import six
|
|
||||||
from six.moves import socketserver #type: ignore # pylint: disable=import-error
|
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
|
import six
|
||||||
|
from six.moves import socketserver # type: ignore # pylint: disable=import-error
|
||||||
|
|
||||||
from acme import errors
|
from acme import errors
|
||||||
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
|
|
||||||
class SSLSocketAndProbeSNITest(unittest.TestCase):
|
class SSLSocketAndProbeSNITest(unittest.TestCase):
|
||||||
"""Tests for acme.crypto_util.SSLSocket/probe_sni."""
|
"""Tests for acme.crypto_util.SSLSocket/probe_sni."""
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import importlib
|
import importlib
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
class JoseTest(unittest.TestCase):
|
class JoseTest(unittest.TestCase):
|
||||||
"""Tests for acme.jose shim."""
|
"""Tests for acme.jose shim."""
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import josepy as jose
|
|||||||
|
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
|
|
||||||
KEY = jose.JWKRSA.load(test_util.load_vector('rsa512_key.pem'))
|
KEY = jose.JWKRSA.load(test_util.load_vector('rsa512_key.pem'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@ import josepy as jose
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
CERT = test_util.load_comparable_cert('cert.der')
|
CERT = test_util.load_comparable_cert('cert.der')
|
||||||
|
@ -3,18 +3,17 @@ import socket
|
|||||||
import threading
|
import threading
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from six.moves import http_client # pylint: disable=import-error
|
|
||||||
from six.moves import socketserver # type: ignore # pylint: disable=import-error
|
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import mock
|
import mock
|
||||||
import requests
|
import requests
|
||||||
|
from six.moves import http_client # pylint: disable=import-error
|
||||||
|
from six.moves import socketserver # type: ignore # pylint: disable=import-error
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
|
|
||||||
class TLSServerTest(unittest.TestCase):
|
class TLSServerTest(unittest.TestCase):
|
||||||
"""Tests for acme.standalone.TLSServer."""
|
"""Tests for acme.standalone.TLSServer."""
|
||||||
|
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import pkg_resources
|
|
||||||
|
|
||||||
from cryptography.hazmat.backends import default_backend
|
from cryptography.hazmat.backends import default_backend
|
||||||
from cryptography.hazmat.primitives import serialization
|
from cryptography.hazmat.primitives import serialization
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
from OpenSSL import crypto
|
from OpenSSL import crypto
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
|
|
||||||
def load_vector(*names):
|
def load_vector(*names):
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
"""Apache Configurator."""
|
"""Apache Configurator."""
|
||||||
# pylint: disable=too-many-lines
|
# pylint: disable=too-many-lines
|
||||||
|
from collections import defaultdict
|
||||||
import copy
|
import copy
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import logging
|
import logging
|
||||||
@ -7,28 +8,26 @@ import re
|
|||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from collections import defaultdict
|
|
||||||
|
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
import six
|
import six
|
||||||
|
|
||||||
import zope.component
|
import zope.component
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme.magic_typing import DefaultDict, Dict, List, Set, Union # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import DefaultDict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Union # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot import util
|
from certbot import util
|
||||||
|
|
||||||
from certbot.achallenges import KeyAuthorizationAnnotatedChallenge # pylint: disable=unused-import
|
from certbot.achallenges import KeyAuthorizationAnnotatedChallenge # pylint: disable=unused-import
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
from certbot.plugins import common
|
from certbot.plugins import common
|
||||||
from certbot.plugins.util import path_surgery
|
|
||||||
from certbot.plugins.enhancements import AutoHSTSEnhancement
|
from certbot.plugins.enhancements import AutoHSTSEnhancement
|
||||||
|
from certbot.plugins.util import path_surgery
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import constants
|
from certbot_apache._internal import constants
|
||||||
from certbot_apache._internal import display_ops
|
from certbot_apache._internal import display_ops
|
||||||
|
@ -3,7 +3,6 @@ import pkg_resources
|
|||||||
|
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
|
|
||||||
MOD_SSL_CONF_DEST = "options-ssl-apache.conf"
|
MOD_SSL_CONF_DEST = "options-ssl-apache.conf"
|
||||||
"""Name of the mod_ssl config file as saved in `IConfig.config_dir`."""
|
"""Name of the mod_ssl config file as saved in `IConfig.config_dir`."""
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ import logging
|
|||||||
|
|
||||||
import zope.component
|
import zope.component
|
||||||
|
|
||||||
import certbot.display.util as display_util
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
import certbot.display.util as display_util
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -4,13 +4,12 @@
|
|||||||
from distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error
|
from distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error
|
||||||
|
|
||||||
from certbot import util
|
from certbot import util
|
||||||
|
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
from certbot_apache._internal import override_arch
|
from certbot_apache._internal import override_arch
|
||||||
from certbot_apache._internal import override_fedora
|
from certbot_apache._internal import override_centos
|
||||||
from certbot_apache._internal import override_darwin
|
from certbot_apache._internal import override_darwin
|
||||||
from certbot_apache._internal import override_debian
|
from certbot_apache._internal import override_debian
|
||||||
from certbot_apache._internal import override_centos
|
from certbot_apache._internal import override_fedora
|
||||||
from certbot_apache._internal import override_gentoo
|
from certbot_apache._internal import override_gentoo
|
||||||
from certbot_apache._internal import override_suse
|
from certbot_apache._internal import override_suse
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
"""A class that performs HTTP-01 challenges for Apache"""
|
"""A class that performs HTTP-01 challenges for Apache"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from acme.magic_typing import List, Set # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
|
from certbot.compat import os
|
||||||
from certbot.plugins import common
|
from certbot.plugins import common
|
||||||
|
|
||||||
from certbot_apache._internal.obj import VirtualHost # pylint: disable=unused-import
|
from certbot_apache._internal.obj import VirtualHost # pylint: disable=unused-import
|
||||||
from certbot_apache._internal.parser import get_aug_path
|
from certbot_apache._internal.parser import get_aug_path
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Module contains classes used by the Apache Configurator."""
|
"""Module contains classes used by the Apache Configurator."""
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot.plugins import common
|
from certbot.plugins import common
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
""" Distribution specific override class for Arch Linux """
|
""" Distribution specific override class for Arch Linux """
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
|
|
||||||
|
|
||||||
@zope.interface.provider(interfaces.IPluginFactory)
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
class ArchConfigurator(configurator.ApacheConfigurator):
|
class ArchConfigurator(configurator.ApacheConfigurator):
|
||||||
"""Arch Linux specific ApacheConfigurator override class"""
|
"""Arch Linux specific ApacheConfigurator override class"""
|
||||||
|
@ -4,19 +4,16 @@ import logging
|
|||||||
import pkg_resources
|
import pkg_resources
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot import util
|
from certbot import util
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
from certbot.errors import MisconfigurationError
|
from certbot.errors import MisconfigurationError
|
||||||
|
|
||||||
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
from certbot_apache._internal import parser
|
from certbot_apache._internal import parser
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
""" Distribution specific override class for macOS """
|
""" Distribution specific override class for macOS """
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
|
|
||||||
|
|
||||||
@zope.interface.provider(interfaces.IPluginFactory)
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
class DarwinConfigurator(configurator.ApacheConfigurator):
|
class DarwinConfigurator(configurator.ApacheConfigurator):
|
||||||
"""macOS specific ApacheConfigurator override class"""
|
"""macOS specific ApacheConfigurator override class"""
|
||||||
|
@ -9,7 +9,6 @@ from certbot import interfaces
|
|||||||
from certbot import util
|
from certbot import util
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ from certbot import errors
|
|||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot import util
|
from certbot import util
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
from certbot_apache._internal import parser
|
from certbot_apache._internal import parser
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
""" Distribution specific override class for Gentoo Linux """
|
""" Distribution specific override class for Gentoo Linux """
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
from certbot_apache._internal import parser
|
from certbot_apache._internal import parser
|
||||||
|
|
||||||
|
|
||||||
@zope.interface.provider(interfaces.IPluginFactory)
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
class GentooConfigurator(configurator.ApacheConfigurator):
|
class GentooConfigurator(configurator.ApacheConfigurator):
|
||||||
"""Gentoo specific ApacheConfigurator override class"""
|
"""Gentoo specific ApacheConfigurator override class"""
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
""" Distribution specific override class for OpenSUSE """
|
""" Distribution specific override class for OpenSUSE """
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
|
|
||||||
|
|
||||||
@zope.interface.provider(interfaces.IPluginFactory)
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
class OpenSUSEConfigurator(configurator.ApacheConfigurator):
|
class OpenSUSEConfigurator(configurator.ApacheConfigurator):
|
||||||
"""OpenSUSE specific ApacheConfigurator override class"""
|
"""OpenSUSE specific ApacheConfigurator override class"""
|
||||||
|
@ -8,11 +8,11 @@ import sys
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from acme.magic_typing import Dict, List, Set # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import constants
|
from certbot_apache._internal import constants
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -2,13 +2,12 @@
|
|||||||
"""Test for certbot_apache._internal.configurator AutoHSTS functionality"""
|
"""Test for certbot_apache._internal.configurator AutoHSTS functionality"""
|
||||||
import re
|
import re
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
# six is used in mock.patch()
|
import six # pylint: disable=unused-import # six is used in mock.patch()
|
||||||
import six # pylint: disable=unused-import
|
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot_apache._internal import constants
|
from certbot_apache._internal import constants
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,11 +3,9 @@ import unittest
|
|||||||
|
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
from certbot.errors import MisconfigurationError
|
from certbot.errors import MisconfigurationError
|
||||||
|
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
from certbot_apache._internal import override_centos
|
from certbot_apache._internal import override_centos
|
||||||
from certbot_apache._internal import parser
|
from certbot_apache._internal import parser
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,10 +6,8 @@ import mock
|
|||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
from certbot_apache._internal import override_centos
|
from certbot_apache._internal import override_centos
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import unittest
|
|||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import unittest
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,24 +7,20 @@ import tempfile
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
# six is used in mock.patch()
|
import six # pylint: disable=unused-import # six is used in mock.patch()
|
||||||
import six # pylint: disable=unused-import
|
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
|
|
||||||
from certbot import achallenges
|
from certbot import achallenges
|
||||||
from certbot import crypto_util
|
from certbot import crypto_util
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
|
from certbot.compat import os
|
||||||
from certbot.tests import acme_util
|
from certbot.tests import acme_util
|
||||||
from certbot.tests import util as certbot_util
|
from certbot.tests import util as certbot_util
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import constants
|
from certbot_apache._internal import constants
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
from certbot_apache._internal import parser
|
from certbot_apache._internal import parser
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,10 +6,8 @@ import mock
|
|||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import apache_util
|
from certbot_apache._internal import apache_util
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,15 +4,10 @@ import unittest
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
|
|
||||||
from certbot.display import util as display_util
|
from certbot.display import util as display_util
|
||||||
|
|
||||||
from certbot.tests import util as certbot_util
|
from certbot.tests import util as certbot_util
|
||||||
|
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
|
|
||||||
from certbot_apache._internal.display_ops import select_vhost_multiple
|
from certbot_apache._internal.display_ops import select_vhost_multiple
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,10 +6,8 @@ import mock
|
|||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
from certbot_apache._internal import override_fedora
|
from certbot_apache._internal import override_fedora
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,10 +6,8 @@ import mock
|
|||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
from certbot_apache._internal import override_gentoo
|
from certbot_apache._internal import override_gentoo
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,21 +1,18 @@
|
|||||||
"""Test for certbot_apache._internal.http_01."""
|
"""Test for certbot_apache._internal.http_01."""
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
from certbot import achallenges
|
from certbot import achallenges
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import filesystem
|
from certbot.compat import filesystem
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
from certbot.tests import acme_util
|
from certbot.tests import acme_util
|
||||||
|
|
||||||
from certbot_apache._internal.parser import get_aug_path
|
from certbot_apache._internal.parser import get_aug_path
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
NUM_ACHALLS = 3
|
NUM_ACHALLS = 3
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ import mock
|
|||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ from certbot.compat import os
|
|||||||
from certbot.display import util as display_util
|
from certbot.display import util as display_util
|
||||||
from certbot.plugins import common
|
from certbot.plugins import common
|
||||||
from certbot.tests import util as test_util
|
from certbot.tests import util as test_util
|
||||||
|
|
||||||
from certbot_apache._internal import configurator
|
from certbot_apache._internal import configurator
|
||||||
from certbot_apache._internal import entrypoint
|
from certbot_apache._internal import entrypoint
|
||||||
from certbot_apache._internal import obj
|
from certbot_apache._internal import obj
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
hook_script_type = os.path.basename(os.path.dirname(sys.argv[1]))
|
hook_script_type = os.path.basename(os.path.dirname(sys.argv[1]))
|
||||||
if hook_script_type == 'deploy' and ('RENEWED_DOMAINS' not in os.environ or 'RENEWED_LINEAGE' not in os.environ):
|
if hook_script_type == 'deploy' and ('RENEWED_DOMAINS' not in os.environ or 'RENEWED_LINEAGE' not in os.environ):
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
"""This module contains advanced assertions for the certbot integration tests."""
|
"""This module contains advanced assertions for the certbot integration tests."""
|
||||||
import os
|
import os
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import grp
|
import grp
|
||||||
POSIX_MODE = True
|
POSIX_MODE = True
|
||||||
|
@ -2,21 +2,25 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from os.path import exists
|
||||||
|
from os.path import join
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
from os.path import join, exists
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from certbot_integration_tests.certbot_tests import context as certbot_context
|
from certbot_integration_tests.certbot_tests import context as certbot_context
|
||||||
from certbot_integration_tests.certbot_tests.assertions import (
|
from certbot_integration_tests.certbot_tests.assertions import assert_cert_count_for_lineage
|
||||||
assert_hook_execution, assert_saved_renew_hook,
|
from certbot_integration_tests.certbot_tests.assertions import assert_equals_group_owner
|
||||||
assert_cert_count_for_lineage,
|
from certbot_integration_tests.certbot_tests.assertions import assert_equals_group_permissions
|
||||||
assert_world_no_permissions, assert_world_read_permissions,
|
from certbot_integration_tests.certbot_tests.assertions import assert_equals_world_read_permissions
|
||||||
assert_equals_group_owner, assert_equals_group_permissions, assert_equals_world_read_permissions,
|
from certbot_integration_tests.certbot_tests.assertions import assert_hook_execution
|
||||||
EVERYBODY_SID
|
from certbot_integration_tests.certbot_tests.assertions import assert_saved_renew_hook
|
||||||
)
|
from certbot_integration_tests.certbot_tests.assertions import assert_world_no_permissions
|
||||||
|
from certbot_integration_tests.certbot_tests.assertions import assert_world_read_permissions
|
||||||
|
from certbot_integration_tests.certbot_tests.assertions import EVERYBODY_SID
|
||||||
from certbot_integration_tests.utils import misc
|
from certbot_integration_tests.utils import misc
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ for a directory a specific configuration using built-in pytest hooks.
|
|||||||
See https://docs.pytest.org/en/latest/reference.html#hook-reference
|
See https://docs.pytest.org/en/latest/reference.html#hook-reference
|
||||||
"""
|
"""
|
||||||
import contextlib
|
import contextlib
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from certbot_integration_tests.utils import acme_server as acme_lib
|
from certbot_integration_tests.utils import acme_server as acme_lib
|
||||||
|
|
||||||
|
@ -2,8 +2,9 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from certbot_integration_tests.certbot_tests import context as certbot_context
|
from certbot_integration_tests.certbot_tests import context as certbot_context
|
||||||
from certbot_integration_tests.utils import misc, certbot_call
|
|
||||||
from certbot_integration_tests.nginx_tests import nginx_config as config
|
from certbot_integration_tests.nginx_tests import nginx_config as config
|
||||||
|
from certbot_integration_tests.utils import certbot_call
|
||||||
|
from certbot_integration_tests.utils import misc
|
||||||
|
|
||||||
|
|
||||||
class IntegrationTestsContext(certbot_context.IntegrationTestsContext):
|
class IntegrationTestsContext(certbot_context.IntegrationTestsContext):
|
||||||
|
@ -1,19 +1,22 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Module to setup an ACME CA server environment able to run multiple tests in parallel"""
|
"""Module to setup an ACME CA server environment able to run multiple tests in parallel"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
from os.path import join
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import shutil
|
|
||||||
import sys
|
|
||||||
from os.path import join
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from certbot_integration_tests.utils import misc, proxy, pebble_artifacts
|
from certbot_integration_tests.utils import misc
|
||||||
|
from certbot_integration_tests.utils import pebble_artifacts
|
||||||
|
from certbot_integration_tests.utils import proxy
|
||||||
from certbot_integration_tests.utils.constants import *
|
from certbot_integration_tests.utils.constants import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Module to call certbot in test mode"""
|
"""Module to call certbot in test mode"""
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
|
|
||||||
import certbot_integration_tests
|
import certbot_integration_tests
|
||||||
from certbot_integration_tests.utils.constants import *
|
from certbot_integration_tests.utils.constants import *
|
||||||
|
@ -3,27 +3,27 @@ Misc module contains stateless functions that could be used during pytest execut
|
|||||||
or outside during setup/teardown of the integration tests environment.
|
or outside during setup/teardown of the integration tests environment.
|
||||||
"""
|
"""
|
||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
|
||||||
import errno
|
import errno
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
import warnings
|
import warnings
|
||||||
from distutils.version import LooseVersion
|
|
||||||
|
|
||||||
import pkg_resources
|
|
||||||
import requests
|
|
||||||
from OpenSSL import crypto
|
|
||||||
from cryptography.hazmat.backends import default_backend
|
from cryptography.hazmat.backends import default_backend
|
||||||
from cryptography.hazmat.primitives.asymmetric import ec
|
from cryptography.hazmat.primitives.asymmetric import ec
|
||||||
from cryptography.hazmat.primitives.serialization import Encoding, PrivateFormat, NoEncryption
|
from cryptography.hazmat.primitives.serialization import Encoding
|
||||||
from six.moves import socketserver, SimpleHTTPServer
|
from cryptography.hazmat.primitives.serialization import NoEncryption
|
||||||
|
from cryptography.hazmat.primitives.serialization import PrivateFormat
|
||||||
|
from OpenSSL import crypto
|
||||||
|
import pkg_resources
|
||||||
|
import requests
|
||||||
|
from six.moves import SimpleHTTPServer
|
||||||
|
from six.moves import socketserver
|
||||||
|
|
||||||
RSA_KEY_TYPE = 'rsa'
|
RSA_KEY_TYPE = 'rsa'
|
||||||
ECDSA_KEY_TYPE = 'ecdsa'
|
ECDSA_KEY_TYPE = 'ecdsa'
|
||||||
|
@ -6,17 +6,18 @@ to serve a mock OCSP responder during integration tests against Pebble.
|
|||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import requests
|
|
||||||
from dateutil import parser
|
|
||||||
|
|
||||||
from cryptography.hazmat.backends import default_backend
|
|
||||||
from cryptography.hazmat.primitives import serialization, hashes
|
|
||||||
from cryptography import x509
|
from cryptography import x509
|
||||||
|
from cryptography.hazmat.backends import default_backend
|
||||||
|
from cryptography.hazmat.primitives import hashes
|
||||||
|
from cryptography.hazmat.primitives import serialization
|
||||||
from cryptography.x509 import ocsp
|
from cryptography.x509 import ocsp
|
||||||
|
from dateutil import parser
|
||||||
|
import requests
|
||||||
from six.moves import BaseHTTPServer
|
from six.moves import BaseHTTPServer
|
||||||
|
|
||||||
|
from certbot_integration_tests.utils.constants import MOCK_OCSP_SERVER_PORT
|
||||||
|
from certbot_integration_tests.utils.constants import PEBBLE_MANAGEMENT_URL
|
||||||
from certbot_integration_tests.utils.misc import GracefulTCPServer
|
from certbot_integration_tests.utils.misc import GracefulTCPServer
|
||||||
from certbot_integration_tests.utils.constants import MOCK_OCSP_SERVER_PORT, PEBBLE_MANAGEMENT_URL
|
|
||||||
|
|
||||||
|
|
||||||
class _ProxyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
class _ProxyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from six.moves import BaseHTTPServer
|
from six.moves import BaseHTTPServer
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
from distutils.version import StrictVersion
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from distutils.version import StrictVersion
|
from setuptools import __version__ as setuptools_version
|
||||||
from setuptools import setup, find_packages, __version__ as setuptools_version
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
version = '0.32.0.dev0'
|
version = '0.32.0.dev0'
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ import subprocess
|
|||||||
import mock
|
import mock
|
||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from certbot._internal import configuration
|
|
||||||
from certbot import errors as le_errors
|
from certbot import errors as le_errors
|
||||||
from certbot import util as certbot_util
|
from certbot import util as certbot_util
|
||||||
|
from certbot._internal import configuration
|
||||||
from certbot_apache._internal import entrypoint
|
from certbot_apache._internal import entrypoint
|
||||||
from certbot_compatibility_test import errors
|
from certbot_compatibility_test import errors
|
||||||
from certbot_compatibility_test import interfaces
|
from certbot_compatibility_test import interfaces
|
||||||
|
@ -8,7 +8,6 @@ from certbot._internal import constants
|
|||||||
from certbot_compatibility_test import errors
|
from certbot_compatibility_test import errors
|
||||||
from certbot_compatibility_test import util
|
from certbot_compatibility_test import util
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,14 +6,13 @@ import subprocess
|
|||||||
import zope.interface
|
import zope.interface
|
||||||
|
|
||||||
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
|
||||||
|
|
||||||
from certbot._internal import configuration
|
from certbot._internal import configuration
|
||||||
from certbot_nginx._internal import configurator
|
|
||||||
from certbot_nginx._internal import constants
|
|
||||||
from certbot_compatibility_test import errors
|
from certbot_compatibility_test import errors
|
||||||
from certbot_compatibility_test import interfaces
|
from certbot_compatibility_test import interfaces
|
||||||
from certbot_compatibility_test import util
|
from certbot_compatibility_test import util
|
||||||
from certbot_compatibility_test.configurators import common as configurators_common
|
from certbot_compatibility_test.configurators import common as configurators_common
|
||||||
|
from certbot_nginx._internal import configurator
|
||||||
|
from certbot_nginx._internal import constants
|
||||||
|
|
||||||
|
|
||||||
@zope.interface.implementer(interfaces.IConfiguratorProxy)
|
@zope.interface.implementer(interfaces.IConfiguratorProxy)
|
||||||
|
@ -5,31 +5,28 @@ import filecmp
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
import sys
|
|
||||||
from urllib3.util import connection
|
|
||||||
|
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
|
|
||||||
from six.moves import xrange # pylint: disable=import-error,redefined-builtin
|
from six.moves import xrange # pylint: disable=import-error,redefined-builtin
|
||||||
|
from urllib3.util import connection
|
||||||
|
|
||||||
from acme import challenges
|
from acme import challenges
|
||||||
from acme import crypto_util
|
from acme import crypto_util
|
||||||
from acme import messages
|
from acme import messages
|
||||||
from acme.magic_typing import List, Tuple # pylint: disable=unused-import, no-name-in-module
|
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
|
||||||
|
from acme.magic_typing import Tuple # pylint: disable=unused-import, no-name-in-module
|
||||||
from certbot import achallenges
|
from certbot import achallenges
|
||||||
from certbot import errors as le_errors
|
from certbot import errors as le_errors
|
||||||
from certbot.tests import acme_util
|
from certbot.tests import acme_util
|
||||||
|
|
||||||
from certbot_compatibility_test import errors
|
from certbot_compatibility_test import errors
|
||||||
from certbot_compatibility_test import util
|
from certbot_compatibility_test import util
|
||||||
from certbot_compatibility_test import validator
|
from certbot_compatibility_test import validator
|
||||||
|
|
||||||
from certbot_compatibility_test.configurators.apache import common as a_common
|
from certbot_compatibility_test.configurators.apache import common as a_common
|
||||||
from certbot_compatibility_test.configurators.nginx import common as n_common
|
from certbot_compatibility_test.configurators.nginx import common as n_common
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION = """
|
DESCRIPTION = """
|
||||||
Tests Certbot plugins against different server configurations. It is
|
Tests Certbot plugins against different server configurations. It is
|
||||||
assumed that Docker is already installed. If no test type is specified, all
|
assumed that Docker is already installed. If no test type is specified, all
|
||||||
|
@ -8,12 +8,10 @@ import tarfile
|
|||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
|
|
||||||
from certbot.tests import util as test_util
|
|
||||||
from certbot._internal import constants
|
from certbot._internal import constants
|
||||||
|
from certbot.tests import util as test_util
|
||||||
from certbot_compatibility_test import errors
|
from certbot_compatibility_test import errors
|
||||||
|
|
||||||
|
|
||||||
_KEY_BASE = "rsa2048_key.pem"
|
_KEY_BASE = "rsa2048_key.pem"
|
||||||
KEY_PATH = test_util.vector_path(_KEY_BASE)
|
KEY_PATH = test_util.vector_path(_KEY_BASE)
|
||||||
KEY = test_util.load_pyopenssl_private_key(_KEY_BASE)
|
KEY = test_util.load_pyopenssl_private_key(_KEY_BASE)
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
"""Validators to determine the current webserver configuration"""
|
"""Validators to determine the current webserver configuration"""
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
import requests
|
|
||||||
|
|
||||||
|
import requests
|
||||||
import six
|
import six
|
||||||
from six.moves import xrange # pylint: disable=import-error,redefined-builtin
|
from six.moves import xrange # pylint: disable=import-error, redefined-builtin
|
||||||
|
|
||||||
from acme import crypto_util
|
from acme import crypto_util
|
||||||
from acme import errors as acme_errors
|
from acme import errors as acme_errors
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
"""Tests for certbot_compatibility_test.validator."""
|
"""Tests for certbot_compatibility_test.validator."""
|
||||||
import unittest
|
import unittest
|
||||||
import requests
|
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
|
import requests
|
||||||
|
|
||||||
from acme import errors as acme_errors
|
from acme import errors as acme_errors
|
||||||
from certbot_compatibility_test import validator
|
from certbot_compatibility_test import validator
|
||||||
|
@ -5,6 +5,7 @@ import sys
|
|||||||
|
|
||||||
from certbot_nginx._internal import nginxparser
|
from certbot_nginx._internal import nginxparser
|
||||||
|
|
||||||
|
|
||||||
def roundtrip(stuff):
|
def roundtrip(stuff):
|
||||||
success = True
|
success = True
|
||||||
for t in stuff:
|
for t in stuff:
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for CloudXNS DNS."""
|
"""DNS Authenticator for CloudXNS DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import cloudxns
|
from lexicon.providers import cloudxns
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
from requests.exceptions import HTTPError, RequestException
|
from requests.exceptions import HTTPError
|
||||||
|
from requests.exceptions import RequestException
|
||||||
|
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
from certbot.plugins import dns_test_common
|
from certbot.plugins import dns_test_common
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for DNSimple DNS."""
|
"""DNS Authenticator for DNSimple DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import dnsimple
|
from lexicon.providers import dnsimple
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for DNS Made Easy DNS."""
|
"""DNS Authenticator for DNS Made Easy DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import dnsmadeeasy
|
from lexicon.providers import dnsmadeeasy
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for Gehirn Infrastracture Service DNS."""
|
"""DNS Authenticator for Gehirn Infrastracture Service DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import gehirn
|
from lexicon.providers import gehirn
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
from certbot.plugins import dns_common
|
from certbot.plugins import dns_common
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import httplib2
|
|
||||||
import zope.interface
|
|
||||||
from googleapiclient import discovery
|
from googleapiclient import discovery
|
||||||
from googleapiclient import errors as googleapiclient_errors
|
from googleapiclient import errors as googleapiclient_errors
|
||||||
|
import httplib2
|
||||||
from oauth2client.service_account import ServiceAccountCredentials
|
from oauth2client.service_account import ServiceAccountCredentials
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('_ext'))
|
sys.path.insert(0, os.path.abspath('_ext'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
|
||||||
from googleapiclient import discovery
|
from googleapiclient import discovery
|
||||||
from googleapiclient.errors import Error
|
from googleapiclient.errors import Error
|
||||||
from googleapiclient.http import HttpMock
|
from googleapiclient.http import HttpMock
|
||||||
from httplib2 import ServerNotFoundError
|
from httplib2 import ServerNotFoundError
|
||||||
|
import mock
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import linode
|
from lexicon.providers import linode
|
||||||
from lexicon.providers import linode4
|
from lexicon.providers import linode4
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
# Please update tox.ini when modifying dependency version requirements
|
# Please update tox.ini when modifying dependency version requirements
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for LuaDNS DNS."""
|
"""DNS Authenticator for LuaDNS DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import luadns
|
from lexicon.providers import luadns
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for NS1 DNS."""
|
"""DNS Authenticator for NS1 DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import nsone
|
from lexicon.providers import nsone
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""DNS Authenticator for OVH DNS."""
|
"""DNS Authenticator for OVH DNS."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import zope.interface
|
|
||||||
from lexicon.providers import ovh
|
from lexicon.providers import ovh
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot import interfaces
|
from certbot import interfaces
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools.command.test import test as TestCommand
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
version = '1.1.0.dev0'
|
version = '1.1.0.dev0'
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user