We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7effa90 commit d9fa054Copy full SHA for d9fa054
2 files changed
.github/workflows/release.yml
@@ -76,15 +76,15 @@ jobs:
76
fail-fast: false
77
matrix:
78
os: [ubuntu-latest, macos-latest]
79
- cibw_python:
80
- - "cp38-*"
81
- - "cp39-*"
82
- - "cp310-*"
83
- - "cp311-*"
84
- - "cp312-*"
85
- - "cp313-*"
86
- - "cp314-*"
87
- - "cp314t-*"
+ python:
+ - "cp38"
+ - "cp39"
+ - "cp310"
+ - "cp311"
+ - "cp312"
+ - "cp313"
+ - "cp314"
+ - "cp314t"
88
cibw_arch: ["x86_64", "aarch64", "universal2"]
89
exclude:
90
- os: ubuntu-latest
@@ -119,13 +119,13 @@ jobs:
119
- uses: pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
120
env:
121
CIBW_BUILD_VERBOSITY: 1
122
- CIBW_BUILD: ${{ matrix.cibw_python }}
+ CIBW_BUILD: ${{ matrix.python }}-*
123
CIBW_ARCHS: ${{ matrix.cibw_arch }}
124
CIBW_TEST_SKIP: "*universal2:arm64"
125
126
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
127
with:
128
- name: dist-wheels
+ name: dist-wheels-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.cibw_arch }}
129
path: wheelhouse/*.whl
130
131
publish:
tests/test_dns.py
@@ -54,11 +54,12 @@ def _test_getaddrinfo(self, *args, _patch=False, _sorted=False, **kwargs):
54
55
if _sorted:
56
if kwargs.get('flags', 0) & socket.AI_CANONNAME and a1 and a2:
57
- af, sk, proto, canon_name1, addr = a1[0]
58
- a1[0] = (af, sk, proto, '', addr)
59
- af, sk, proto, canon_name2, addr = a2[0]
60
- a2[0] = (af, sk, proto, '', addr)
61
- self.assertEqual(canon_name1, canon_name2)
+ # The API doesn't guarantee the ai_canonname value if
+ # multiple results are returned, but both implementations
+ # must return the same value for the first result.
+ self.assertEqual(a1[0][3], a2[0][3])
+ a1 = [(af, sk, pr, addr) for af, sk, pr, _, addr in a1]
62
+ a2 = [(af, sk, pr, addr) for af, sk, pr, _, addr in a2]
63
64
self.assertEqual(sorted(a1), sorted(a2))
65
else:
0 commit comments