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 /acme/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 'acme/setup.py')
-rw-r--r-- | acme/setup.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/acme/setup.py b/acme/setup.py index c62562ff3..745169cbf 100644 --- a/acme/setup.py +++ b/acme/setup.py @@ -1,7 +1,5 @@ -from distutils.version import LooseVersion import sys -from setuptools import __version__ as setuptools_version from setuptools import find_packages from setuptools import setup @@ -23,15 +21,6 @@ install_requires = [ 'six>=1.11.0', ] -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') - dev_extras = [ 'pytest', 'pytest-xdist', |