Skip to content

Commit 6fcdfb0

Browse files
sydneylibmw
authored andcommitted
Deprecation warnings for Python 3.4 (#7378)
Fixes #7367 * Deprecation warnings for Python 3.4 users * CHANGELOG.md and AUTHORS.md * double equals typo
1 parent e19b2e0 commit 6fcdfb0

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Authors
230230
* [Stavros Korokithakis](https://github.com/skorokithakis)
231231
* [Stefan Weil](https://github.com/stweil)
232232
* [Steve Desmond](https://github.com/stevedesmond-ca)
233+
* [sydneyli](https://github.com/sydneyli)
233234
* [Tan Jay Jun](https://github.com/jayjun)
234235
* [Tapple Gao](https://github.com/tapple)
235236
* [Telepenin Nikolay](https://github.com/telepenin)

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
1010

1111
### Changed
1212

13+
* We deprecated support for Python 3.4 in Certbot and its ACME library. Support
14+
for Python 3.4 will be removed in the next major release of Certbot.
1315
* Removed `--fast` flag from the test farm tests
1416
* `--server` may now be combined with `--dry-run`. Certbot will, as before, use the
1517
staging server instead of the live server when `--dry-run` is used.

acme/acme/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ def __delattr__(self, attr): # pragma: no cover
4848

4949
def __dir__(self): # pragma: no cover
5050
return ['_module'] + dir(self._module)
51+
52+
if sys.version_info[:2] == (3, 4):
53+
warnings.warn(
54+
"Python 3.4 support will be dropped in the next release of "
55+
"acme. Please upgrade your Python version.",
56+
PendingDeprecationWarning,
57+
) # pragma: no cover

certbot/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,10 @@ def main(cli_args=None):
13681368
if config.func != plugins_cmd:
13691369
raise
13701370

1371+
if sys.version_info[:2] == (3, 4):
1372+
logger.warning("Python 3.4 support will be dropped in the next release "
1373+
"of Certbot - please upgrade your Python version.")
1374+
13711375
set_displayer(config)
13721376

13731377
# Reporter

0 commit comments

Comments
 (0)