Remove win-precise-time support, probably not worth it for this use case

This commit is contained in:
Adrian Chaves 2026-06-19 17:27:13 +02:00
parent 0c326fdc03
commit 03081abcf6
3 changed files with 1 additions and 18 deletions

View File

@ -436,16 +436,6 @@ in memory. You could:
- Check that your code doesn't hold strong references to
:class:`~scrapy.http.Response` objects longer than necessary.
.. note::
On Windows, Scrapy uses the `win-precise-time
<https://pypi.org/project/win-precise-time/>`_ package when available to
measure backout durations with higher precision. Install it with:
.. code-block:: shell
pip install win-precise-time
.. _bans:
Avoiding getting banned

View File

@ -6,15 +6,10 @@ from collections import deque
from dataclasses import dataclass, field
from datetime import datetime
from logging import getLogger
from time import monotonic
from time import monotonic, time
from typing import TYPE_CHECKING, Any
from warnings import warn
try:
from win_precise_time import time # type: ignore[import-not-found]
except ImportError:
from time import time # pylint: disable=ungrouped-imports
from twisted.internet.defer import Deferred, inlineCallbacks
from twisted.python.failure import Failure

View File

@ -178,7 +178,6 @@ deps =
ipython
robotexclusionrulesparser
uvloop; platform_system != "Windows" and implementation_name != "pypy"
win-precise-time; sys_platform == "win32"
zstandard; implementation_name != "pypy" # optional for HTTP compress downloader middleware tests
[testenv:min-extra-deps]
@ -196,7 +195,6 @@ deps =
ipython==7.1.0
robotexclusionrulesparser==1.6.2
uvloop==0.16.0; platform_system != "Windows" and implementation_name != "pypy"
win-precise-time; sys_platform == "win32"
zstandard==0.16.0; implementation_name != "pypy"
setenv =
{[min]setenv}