This commit is contained in:
Andrey Rakhmatullin 2026-07-10 21:51:17 +05:00 committed by GitHub
commit b9ef53cbbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 35 additions and 4 deletions

View File

@ -26,6 +26,14 @@ jobs:
env:
TOXENV: no-reactor
# 3.15 pre-release
- python-version: "3.15.0-beta.2"
env:
TOXENV: py
- python-version: "3.15.0-beta.2"
env:
TOXENV: no-reactor
steps:
- uses: actions/checkout@v6

View File

@ -80,6 +80,17 @@ jobs:
env:
TOXENV: botocore
# 3.15 pre-release
- python-version: "3.15.0-beta.2"
env:
TOXENV: py
- python-version: "3.15.0-beta.2"
env:
TOXENV: default-reactor
- python-version: "3.15.0-beta.2"
env:
TOXENV: no-reactor
steps:
- uses: actions/checkout@v6
@ -89,7 +100,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install system libraries
if: contains(matrix.python-version, 'pypy') || contains(matrix.env.TOXENV, 'min')
if: contains(matrix.python-version, 'pypy') || contains(matrix.env.TOXENV, 'min') || contains(matrix.python-version, '3.15')
run: |
sudo apt-get update
sudo apt-get install libxml2-dev libxslt-dev

View File

@ -53,6 +53,17 @@ jobs:
env:
TOXENV: extra-deps
# 3.15 pre-release
- python-version: "3.15.0-beta.2"
env:
TOXENV: py
- python-version: "3.15.0-beta.2"
env:
TOXENV: default-reactor
- python-version: "3.15.0-beta.2"
env:
TOXENV: no-reactor
steps:
- uses: actions/checkout@v6

View File

@ -40,6 +40,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",

View File

@ -99,10 +99,10 @@ def walk_modules_iter(path: str) -> Iterable[ModuleType]:
>>> list(walk_modules_iter('scrapy.utils'))
[<module 'scrapy.utils' from '...'>, ...]
>>> gen = walk_modules_iter('scrapy.utils.nonexistent') # error not raised until the generator is consumed
>>> list(gen)
>>> list(gen) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ModuleNotFoundError: No module named 'scrapy.utils.nonexistent'
ModuleNotFoundError: No module named 'scrapy.utils.nonexistent'...
"""
mod = import_module(path)

View File

@ -22,7 +22,7 @@ envlist =
min-no-reactor
min-botocore
min-pypy3
py{310,311,312,313,314}
py{310,311,312,313,314,315}
extra-deps
default-reactor
no-reactor