Closed dependabot[bot] closed 1 year ago
setuptools-58.1.0
, being installed on Python 3.9 and higher, apparently lacks setuptools.ssl_support
.
Traceback (most recent call last):
File "/home/runner/work/crate-python/crate-python/src/crate/client/tests.py", line 46, in <module>
from .test_http import (
File "/home/runner/work/crate-python/crate-python/src/crate/client/test_http.py", line 41, in <module>
from setuptools.ssl_support import find_ca_bundle
ModuleNotFoundError: No module named 'setuptools.ssl_support'
-- https://github.com/crate/crate-python/actions/runs/4164883229/jobs/7207124671#step:4:169
Looking for it, I've discovered it has been removed starting with setuptools-57.1.0
.
Just vendor the find_ca_bundle
function previously imported from setuptools.ssl_support
?
def find_ca_bundle():
"""Return an existing CA bundle path, or None"""
extant_cert_paths = filter(os.path.isfile, cert_paths)
return (
get_win_certfile()
or next(extant_cert_paths, None)
or _certifi_where()
)
Superseded by #558.
Updates the requirements on setuptools to permit the latest version.
Changelog
Sourced from setuptools's changelog.
... (truncated)
Commits
f75c628
Bump version: 67.1.0 → 67.2.0bb17d4f
Merge pull request #3809 from pypa/distutils-8c3c3d2947c7cfd
Add changelog (draft)43c6ee4
Merge https://github.com/pypa/distutils into distutils-8c3c3d298c3c3d2
Merge pull request #199 from mrbean-bremen/issue35911efd3d5
Merge pull request #201 from mattip/pypy2854862f
Merge pull request #203 from fweimer-rh/ccompiler-windows8fe7b5f
Merge pull request #202 from GalaxySnail/fix-mingw-w64-27e751d3
distutils.ccompiler: Remove correct executable file on Windows2f16327
Mark test as xfail on Windows. Ref pypa/distutils#195.You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)