Skip to content

Commit 0a482ac

Browse files
committed
Maintenance: Remove use of deprecated setuptools.ssl_support
As a replacement for `find_ca_bundle`, use `certifi.where()`.
1 parent 40cf2e9 commit 0a482ac

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,13 @@ def read(path):
6767
'zope.testing>=4,<6',
6868
'zope.testrunner>=5,<7',
6969
'zc.customdoctests>=1.0.1,<2',
70+
'certifi',
7071
'createcoverage>=1,<2',
7172
'dask',
7273
'stopit>=1.1.2,<2',
7374
'flake8>=4,<7',
7475
'pandas',
7576
'pytz',
76-
# `test_http.py` needs `setuptools.ssl_support`
77-
'setuptools<57',
7877
],
7978
doc=['sphinx>=3.5,<8',
8079
'crate-docs-theme>=0.26.5'],

src/crate/client/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
from urllib.parse import urlparse, parse_qs
4242

4343
import uuid
44-
from setuptools.ssl_support import find_ca_bundle
44+
import certifi
4545

4646
from .http import Client, CrateJsonEncoder, _get_socket_opts, _remove_certs_for_non_https
4747
from .exceptions import ConnectionError, ProgrammingError, IntegrityError
4848

4949
REQUEST = 'crate.client.http.Server.request'
50-
CA_CERT_PATH = find_ca_bundle()
50+
CA_CERT_PATH = certifi.where()
5151

5252

5353
def fake_request(response=None):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy