Skip to content

Commit 7a53ba0

Browse files
committed
more updates
1 parent 779bbcd commit 7a53ba0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5
-87
lines changed

.github/workflows/dist.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/setup-python@v5
5555
with:
5656
cache: 'pip'
57-
python-version: "3.10"
57+
python-version: "3.11" # cibuildwheel 3 requires 3.11+, and provides its own python for wheel building
5858
cache-dependency-path: 'pyproject.toml'
5959
allow-prereleases: true
6060

@@ -69,24 +69,16 @@ jobs:
6969
platforms: all
7070

7171
- name: Install cibuildwheel
72-
# Note: the default manylinux is manylinux2014
72+
# Note: the default manylinux is manylinux_2_28
7373
run: |
7474
python -m pip install -U pip
75-
python -m pip install "cibuildwheel>=2.20,<3"
75+
python -m pip install "cibuildwheel>=3.1.1,<4"
7676
7777
- name: Build wheels
7878
env:
7979
CIBW_BUILD: ${{ matrix.buildplat[2] }}
8080
run: python -m cibuildwheel --output-dir wheelhouse
8181

82-
- name: Build manylinux1 wheels
83-
if: ${{ matrix.buildplat[1] == 'manylinux_x86_64' || matrix.buildplat[1] == 'manylinux_i686' }}
84-
env:
85-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
86-
CIBW_MANYLINUX_I686_IMAGE: manylinux1
87-
CIBW_BUILD: "cp310-${{ matrix.buildplat[1] }} cp310-${{ matrix.buildplat[1] }}"
88-
run: python -m cibuildwheel --output-dir wheelhouse
89-
9082
- name: Assert all versions in wheelhouse
9183
if: ${{ ! startsWith(matrix.buildplat[1], 'macos') }}
9284
run: |

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
runs-on: ubuntu-latest
147147
strategy:
148148
matrix:
149-
python: ["3.10", "3.14"]
149+
python: ["3.10", "3.13"]
150150
steps:
151151
- uses: actions/checkout@v4
152152
with:

gridfs/asynchronous/grid_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
from pymongo.asynchronous.collection import AsyncCollection
4747
from pymongo.asynchronous.cursor import AsyncCursor
4848
from pymongo.asynchronous.database import AsyncDatabase
49-
from pymongo.asynchronous.helpers import anext
5049
from pymongo.common import validate_string
5150
from pymongo.errors import (
5251
BulkWriteError,

gridfs/synchronous/grid_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
from pymongo.synchronous.collection import Collection
5858
from pymongo.synchronous.cursor import Cursor
5959
from pymongo.synchronous.database import Database
60-
from pymongo.synchronous.helpers import next
6160

6261
_IS_SYNC = True
6362

pymongo/asynchronous/cursor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from bson.code import Code
3838
from bson.son import SON
3939
from pymongo import _csot, helpers_shared
40-
from pymongo.asynchronous.helpers import anext
4140
from pymongo.collation import validate_collation_or_none
4241
from pymongo.common import (
4342
validate_is_document_type,

pymongo/asynchronous/helpers.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
from __future__ import annotations
1717

1818
import asyncio
19-
import builtins
2019
import socket
21-
import sys
2220
from typing import (
2321
Any,
2422
Callable,
@@ -86,17 +84,3 @@ async def _getaddrinfo(
8684
return await loop.getaddrinfo(host, port, **kwargs) # type: ignore[return-value]
8785
else:
8886
return socket.getaddrinfo(host, port, **kwargs)
89-
90-
91-
if sys.version_info >= (3, 10):
92-
anext = builtins.anext
93-
aiter = builtins.aiter
94-
else:
95-
96-
async def anext(cls: Any) -> Any:
97-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
98-
return await cls.__anext__()
99-
100-
def aiter(cls: Any) -> Any:
101-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
102-
return cls.__aiter__()

pymongo/synchronous/cursor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
_RawBatchQuery,
5656
)
5757
from pymongo.response import PinnedResponse
58-
from pymongo.synchronous.helpers import next
5958
from pymongo.typings import _Address, _CollationIn, _DocumentOut, _DocumentType
6059
from pymongo.write_concern import validate_boolean
6160

pymongo/synchronous/helpers.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
from __future__ import annotations
1717

1818
import asyncio
19-
import builtins
2019
import socket
21-
import sys
2220
from typing import (
2321
Any,
2422
Callable,
@@ -86,17 +84,3 @@ def _getaddrinfo(
8684
return loop.getaddrinfo(host, port, **kwargs) # type: ignore[return-value]
8785
else:
8886
return socket.getaddrinfo(host, port, **kwargs)
89-
90-
91-
if sys.version_info >= (3, 10):
92-
next = builtins.next
93-
iter = builtins.iter
94-
else:
95-
96-
def next(cls: Any) -> Any:
97-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""
98-
return cls.__next__()
99-
100-
def iter(cls: Any) -> Any:
101-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""
102-
return cls.__iter__()

test/asynchronous/test_change_stream.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
from bson.raw_bson import DEFAULT_RAW_BSON_OPTIONS, RawBSONDocument
4949
from pymongo import AsyncMongoClient
5050
from pymongo.asynchronous.command_cursor import AsyncCommandCursor
51-
from pymongo.asynchronous.helpers import anext
5251
from pymongo.errors import (
5352
InvalidOperation,
5453
OperationFailure,

test/asynchronous/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
from pymongo.asynchronous.command_cursor import AsyncCommandCursor
9393
from pymongo.asynchronous.cursor import AsyncCursor, CursorType
9494
from pymongo.asynchronous.database import AsyncDatabase
95-
from pymongo.asynchronous.helpers import anext
9695
from pymongo.asynchronous.mongo_client import AsyncMongoClient
9796
from pymongo.asynchronous.pool import (
9897
AsyncConnection,

0 commit comments

Comments
 (0)