Skip to content

Commit c828983

Browse files
committed
Merge branch 'master' into m
2 parents 9b9678e + 2583fc4 commit c828983

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
os: [ubuntu-latest, windows-latest, macos-latest]
27+
os: [macos-latest]
2828
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.9']
2929

3030
steps:

src/hatch/index/core.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def __init__(self, repo: str, *, user='', auth='', ca_cert=None, client_cert=Non
3636
if client_key:
3737
cert = (client_cert, client_key)
3838

39-
self.client = httpx.Client(
40-
timeout=10, transport=httpx.HTTPTransport(retries=3, verify=ca_cert or True, cert=cert)
41-
)
39+
verify = True
40+
if ca_cert:
41+
verify = ca_cert
42+
43+
self.client = httpx.Client(timeout=10, transport=httpx.HTTPTransport(retries=3, verify=verify, cert=cert))
4244

4345
def upload_artifact(self, artifact: Path, data: dict):
4446
import hashlib

tests/backend/builders/test_wheel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,7 @@ def initialize(self, version, build_data):
29912991
zip_archive.extractall(str(extraction_directory))
29922992

29932993
metadata_directory = f'{builder.project_id}.dist-info'
2994+
raise Exception((extraction_directory / metadata_directory / 'WHEEL').read_text())
29942995
expected_files = helpers.get_template_files(
29952996
'wheel.standard_default_build_script_artifacts',
29962997
project_name,

0 commit comments

Comments
 (0)