mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 17:54:25 +02:00
depecate py38 support (#10034)
This commit is contained in:
@@ -6,6 +6,7 @@ This module is an implementation of the `ACME protocol`_.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
# This code exists to keep backwards compatibility with people using acme.jose
|
# This code exists to keep backwards compatibility with people using acme.jose
|
||||||
# before it became the standalone josepy package.
|
# before it became the standalone josepy package.
|
||||||
@@ -19,3 +20,10 @@ for mod in list(sys.modules):
|
|||||||
# preserved (acme.jose.* is josepy.*)
|
# preserved (acme.jose.* is josepy.*)
|
||||||
if mod == 'josepy' or mod.startswith('josepy.'):
|
if mod == 'josepy' or mod.startswith('josepy.'):
|
||||||
sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mod]
|
sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mod]
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 8):
|
||||||
|
warnings.warn(
|
||||||
|
"Python 3.8 support will be dropped in the next planned release of "
|
||||||
|
"acme. Please upgrade your Python version.",
|
||||||
|
PendingDeprecationWarning,
|
||||||
|
) # pragma: no cover
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
|
|||||||
* The `certbot_dns_route53.authenticator` module has been removed. This should
|
* The `certbot_dns_route53.authenticator` module has been removed. This should
|
||||||
not affect any users of the plugin and instead would only affect developers
|
not affect any users of the plugin and instead would only affect developers
|
||||||
trying to develop on top of the old code.
|
trying to develop on top of the old code.
|
||||||
|
* Support for Python 3.8 was deprecated and will be removed in our next planned
|
||||||
|
release.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
"""Certbot client."""
|
"""Certbot client."""
|
||||||
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
|
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
|
||||||
__version__ = '2.12.0.dev0'
|
__version__ = '2.12.0.dev0'
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 8):
|
||||||
|
warnings.warn(
|
||||||
|
"Python 3.8 support will be dropped in the next planned release of "
|
||||||
|
"certbot. Please upgrade your Python version.",
|
||||||
|
PendingDeprecationWarning,
|
||||||
|
) # pragma: no cover
|
||||||
|
|||||||
@@ -1866,6 +1866,10 @@ def main(cli_args: Optional[List[str]] = None) -> Optional[Union[str, int]]:
|
|||||||
if config.func != plugins_cmd: # pylint: disable=comparison-with-callable
|
if config.func != plugins_cmd: # pylint: disable=comparison-with-callable
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 8):
|
||||||
|
logger.warning("Python 3.8 support will be dropped in the next planned release "
|
||||||
|
"of Certbot - please upgrade your Python version.")
|
||||||
|
|
||||||
with make_displayer(config) as displayer:
|
with make_displayer(config) as displayer:
|
||||||
display_obj.set_display(displayer)
|
display_obj.set_display(displayer)
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
# dependencies) until https://github.com/certbot/certbot/issues/9828 is resolved.
|
# dependencies) until https://github.com/certbot/certbot/issues/9828 is resolved.
|
||||||
# 6) Similarly to 6), CSR support is deprecated in pyOpenSSL since 24.2, we silence
|
# 6) Similarly to 6), CSR support is deprecated in pyOpenSSL since 24.2, we silence
|
||||||
# the warning until https://github.com/certbot/certbot/issues/9992 is resolved.
|
# the warning until https://github.com/certbot/certbot/issues/9992 is resolved.
|
||||||
|
# 7) Ignore our own PendingDeprecationWarning about Python 3.8 soon to be dropped.
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
error
|
error
|
||||||
ignore:decodestring\(\) is a deprecated alias:DeprecationWarning:dns
|
ignore:decodestring\(\) is a deprecated alias:DeprecationWarning:dns
|
||||||
@@ -33,3 +34,4 @@ filterwarnings =
|
|||||||
ignore:.*datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil
|
ignore:.*datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil
|
||||||
ignore:X509Extension support in pyOpenSSL is deprecated:DeprecationWarning
|
ignore:X509Extension support in pyOpenSSL is deprecated:DeprecationWarning
|
||||||
ignore:CSR support in pyOpenSSL is deprecated:DeprecationWarning
|
ignore:CSR support in pyOpenSSL is deprecated:DeprecationWarning
|
||||||
|
ignore:Python 3.8 support will be dropped:PendingDeprecationWarning
|
||||||
|
|||||||
Reference in New Issue
Block a user