diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2021-02-06 02:51:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 02:51:18 +0300 |
commit | 711cc95dc466c569c120bd7fcda8e67c135cb101 (patch) | |
tree | 1c4f3526b3eaed3e35ad6c4dcbfa920b85e134e8 /certbot-dns-ovh/setup.py | |
parent | c2ee0d29382d9613cc3a8d4cee6cb4aa3ce239c4 (diff) |
Remove mock dependency (#8630)
Fixes https://github.com/certbot/certbot/issues/7913.
I only added the deprecation warning to `certbot.tests.util` because that's the only place where I think someone could be using the `mock` module through our API.
* remove external mock from acme
* update Certbot's mock usage
* remove mock dependency in plugins
* remove external mock from compatibility test
* add changelog entry
Diffstat (limited to 'certbot-dns-ovh/setup.py')
-rw-r--r-- | certbot-dns-ovh/setup.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/certbot-dns-ovh/setup.py b/certbot-dns-ovh/setup.py index 9e7ec3675..b4f73ddb4 100644 --- a/certbot-dns-ovh/setup.py +++ b/certbot-dns-ovh/setup.py @@ -1,8 +1,6 @@ -from distutils.version import LooseVersion import os import sys -from setuptools import __version__ as setuptools_version from setuptools import find_packages from setuptools import setup @@ -27,15 +25,6 @@ elif 'bdist_wheel' in sys.argv[1:]: if os.environ.get('SNAP_BUILD'): install_requires.append('packaging') -setuptools_known_environment_markers = (LooseVersion(setuptools_version) >= LooseVersion('36.2')) -if setuptools_known_environment_markers: - install_requires.append('mock ; python_version < "3.3"') -elif 'bdist_wheel' in sys.argv[1:]: - raise RuntimeError('Error, you are trying to build certbot wheels using an old version ' - 'of setuptools. Version 36.2+ of setuptools is required.') -elif sys.version_info < (3,3): - install_requires.append('mock') - docs_extras = [ 'Sphinx>=1.0', # autodoc_member_order = 'bysource', autodoc_default_flags 'sphinx_rtd_theme', |