mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Fixes https://github.com/certbot/certbot/issues/9058. The changes to the CI config are equivalent to the ones made in https://github.com/certbot/certbot/pull/8460. Other than ignoring some warnings raised by botocore, the main additional work that had to be done here was switching away from using `distutils.version.LooseVersion` since the entire `distutils` module was deprecated in Python 3.10. To do that, I took a few different approaches: * If the version strings being parsed are from Python packages such as Certbot or setuptools, I switched to using [pkg_resources.parse_version](https://setuptools.pypa.io/en/latest/pkg_resources.html#parsing-utilities) from `setuptools`. This functionality has been available since [setuptools 8.0 from 2014](https://setuptools.pypa.io/en/latest/history.html#id865). * If the version strings being parsed are not from Python packages, I added code equivalent to `distutils.version.LooseVersion` in `certbot.util.parse_loose_version`. * The code for `CERTBOT_PIP_NO_BINARY` can be completely removed since that variable isn't used or referenced anywhere in this repo. * add python 3.10 support * make some version changes * don't use looseversion in setup.py * switch to pkg_resources * deprecate get_strict_version * fix route53 tests * remove unused CERTBOT_PIP_NO_BINARY code * stop using distutils in letstest * add unit tests * more changelog entries
39 lines
2.1 KiB
INI
39 lines
2.1 KiB
INI
# This file isn't used while testing packages in tools/_release.sh so any
|
|
# settings we want to also change there must be added to the release script
|
|
# directly.
|
|
[pytest]
|
|
# Warnings being triggered by our plugins using deprecated features in
|
|
# acme/certbot should be fixed by having our plugins no longer using the
|
|
# deprecated code rather than adding them to the list of ignored warnings here.
|
|
# Fixing things in this way prevents us from shipping packages raising our own
|
|
# deprecation warnings and gives time for plugins that don't use the deprecated
|
|
# API to propagate, especially for plugins packaged as an external snap, before
|
|
# we release breaking changes.
|
|
#
|
|
# The current warnings being ignored are:
|
|
# 1) The warning raised when importing certbot.tests.util and the external mock
|
|
# library is installed.
|
|
# 2) An ImportWarning is raised with older versions of setuptools and
|
|
# zope.interface. See
|
|
# https://github.com/zopefoundation/zope.interface/issues/68 for more info.
|
|
# 3) The deprecation warning raised when importing old Zope interfaces from
|
|
# the certbot.interfaces module.
|
|
# 4) The deprecation warning raised when importing deprecated attributes from
|
|
# the certbot.display.util module.
|
|
# 5) A deprecation warning is raised in dnspython==1.15.0 in the oldest tests for
|
|
# certbot-dns-rfc2136.
|
|
# 6) The vendored version of six in botocore causes ImportWarnings in Python
|
|
# 3.10+. See https://github.com/boto/botocore/issues/2548.
|
|
# 7) botocore's default TLS settings raise deprecation warnings in Python
|
|
# 3.10+, but their values are sane from a security perspective. See
|
|
# https://github.com/boto/botocore/issues/2550.
|
|
filterwarnings =
|
|
error
|
|
ignore:The external mock module:PendingDeprecationWarning
|
|
ignore:.*zope. missing __init__:ImportWarning
|
|
ignore:.*attribute in certbot.interfaces module is deprecated:DeprecationWarning
|
|
ignore:.*attribute in certbot.display.util module is deprecated:DeprecationWarning
|
|
ignore:decodestring\(\) is a deprecated alias:DeprecationWarning:dns
|
|
ignore:_SixMetaPathImporter.:ImportWarning
|
|
ignore:ssl.PROTOCOL_TLS:DeprecationWarning:botocore
|