Compare commits

...

4 Commits

Author SHA1 Message Date
Adrien Ferrand
5565b873fb Merge branch 'master' into deprecate-python35 2020-07-21 01:02:11 +02:00
Adrien Ferrand
3f8bcc1327 Merge branch 'master' into deprecate-python35
# Conflicts:
#	certbot/CHANGELOG.md
2020-07-21 00:17:21 +02:00
Adrien Ferrand
be8bb87420 Bad pylint. 2020-07-20 21:00:54 +02:00
Adrien Ferrand
5a1ca05e08 Add warnings about Python 3.5 deprecation in Certbot 2020-07-17 23:05:32 +02:00
4 changed files with 23 additions and 0 deletions

View File

@@ -20,3 +20,11 @@ for mod in list(sys.modules):
# preserved (acme.jose.* is josepy.*)
if mod == 'josepy' or mod.startswith('josepy.'):
sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mod]
if sys.version_info[:2] == (3, 5):
warnings.warn(
"Python 3.5 support will be dropped in the next release of "
"acme. Please upgrade your Python version.",
PendingDeprecationWarning,
) # pragma: no cover

View File

@@ -14,6 +14,8 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
* The Linode DNS plugin now waits 120 seconds for DNS propagation, instead of 1200,
due to https://www.linode.com/blog/linode/linode-turns-17/
* We deprecated support for Python 3.5 in Certbot and its ACME library.
Support for Python 3.5 will be removed in the next major release of Certbot.
### Fixed

View File

@@ -1,4 +1,13 @@
"""Certbot client."""
import warnings
import sys
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '1.7.0.dev0'
if sys.version_info[:2] == (3, 5):
warnings.warn(
"Python 3.5 support will be dropped in the next release of "
"acme. Please upgrade your Python version.",
PendingDeprecationWarning,
) # pragma: no cover

View File

@@ -1343,6 +1343,10 @@ def main(cli_args=None):
if config.func != plugins_cmd: # pylint: disable=comparison-with-callable
raise
if sys.version_info[:2] == (3, 5):
logger.warning("Python 3.5 support will be dropped in the next release "
"of Certbot - please upgrade your Python version.")
set_displayer(config)
# Reporter