Package Details: python-requests-cache 1.2.1-1

Git Clone URL: https://aur.archlinux.org/python-requests-cache.git (read-only, click to copy)
Package Base: python-requests-cache
Description: A persistent cache for python requests
Upstream URL: https://github.com/requests-cache/requests-cache
Keywords: cache dynamodb http mongodb performance redis requests sqlite web webscraping
Licenses: custom:BSD-2-clause
Submitter: Shibumi
Maintainer: carlosal1015 (JWCook, flying-sheep, AutoUpdateBot)
Last Packager: AutoUpdateBot
Votes: 27
Popularity: 0.000002
First Submitted: 2015-09-21 13:55 (UTC)
Last Updated: 2024-06-19 07:56 (UTC)

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

micwoj92 commented on 2025-03-04 22:45 (UTC)

Please use spdx license identifier.

cubanismo commented on 2025-02-25 00:44 (UTC) (edited on 2025-02-25 00:48 (UTC) by cubanismo)

FYI, I was running into the same error as 'asday' below, and it turns out the problem was that python-timeout-decorator (Another AUR package: https://aur.archlinux.org/packages/python-timeout-decorator) was installed, and is properly listed as a dependency, but like all AUR python packages apparently, was not rebuilt when python was upgraded (From 3.11 to 3.12 and subsequently 3.13 in my case). From here:

https://www.reddit.com/r/archlinux/comments/k56ydd/updating_all_aur_packages_dependant_on_python/

You can force this and any other necessary AUR python package rebuilds manually with something like this (I'm using yay as my AUR manager/pacman wrapper, and last installed python-timeout-decorator when using python 3.11. Look for /usr/lib/python*/site-packages/timeout_decorator to find the version you need to upgrade from):

$ pacman -Qoq /usr/lib/python3.11/ | yay -S --rebuild -

It would be nice if there was a proper way to hook into the python install process and trigger this automatically, but the above got things working again for me in the meantime.

solarisfire commented on 2024-12-07 11:15 (UTC)

This isn't building correctly at present.

python-requests-cache-git works though.

carlosal1015 commented on 2024-07-05 14:50 (UTC)

Hi @asday, look if some Python package is over /usr/lib/python3.11/site-packages. Otherwise rebuilt there and try again qa

asday commented on 2024-07-04 21:07 (UTC)

I believe this package has been failing for me for a while now.

==> Making package: python-requests-cache 1.2.1-1 (Thu 04 Jul 2024 21:58:13 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found requests-cache-1.2.1.tar.gz
==> Validating source files with sha512sums...
    requests-cache-1.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting requests-cache-1.2.1.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-requests-cache 1.2.1-1 (Thu 04 Jul 2024 21:58:16 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Building wheel...
Successfully built requests_cache-1.2.1-py3-none-any.whl
==> Starting check()...
ImportError while loading conftest '/home/asday/.cache/yay/python-requests-cache/src/requests-cache-1.2.1/tests/conftest.py'.
tests/conftest.py:30: in <module>
    from timeout_decorator import timeout
E   ModuleNotFoundError: No module named 'timeout_decorator'
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-requests-cache-exit status 4

I believe I have this required as a dependency for pyfa.

JWCook commented on 2024-06-18 16:03 (UTC)

@jfabernathy This was due to a change in requests 2.32, and fixed here: https://github.com/requests-cache/requests-cache/issues/990

It will be included in an upstream patch release soon.

jfabernathy commented on 2024-06-18 10:36 (UTC)

On a clean system I tried to install this and received errors causing a failure.

tests/unit/test_session.py .......................................................................... [ 75%] .............................................................................................. [100%]

================================================= FAILURES ================================================== ______ testmock_session _______

mock_http_adapter = <MagicMock name='get_connection' id='123468599450832'>

@patch.object(
    requests.adapters.HTTPAdapter, 'get_connection', side_effect=ValueError('Real request made!')
)
def test_mock_session(mock_http_adapter):
    """Test that the mock_session fixture is working as expected"""
    with get_responses():
        # An error will be raised if a real request is made
      with pytest.raises(ValueError):

E Failed: DID NOT RAISE <class 'ValueError'>

tests/compat/test_responses_load_cache.py:52: Failed ------------------------------------------- Captured stdout call -------------------------------------------- [06-18 06:30:42] INFO request.allowed-passthru init.py:1078 --------------------------------------------- Captured log call --------------------------------------------- INFO responses:init.py:1078 request.allowed-passthru ========================================== short test summary info ========================================== FAILED tests/compat/test_responses_load_cache.py::test_mock_session - Failed: DID NOT RAISE <class 'ValueError'> ================================= 1 failed, 379 passed, 1 skipped in 5.32s ================================== ==> ERROR: A failure occurred in check(). Aborting... -> error making: python-requests-cache-exit status 4

rest of console in pastebin: https://pastebin.com/hXR14MZY

pvdp commented on 2024-02-24 07:41 (UTC) (edited on 2024-02-24 07:43 (UTC) by pvdp)

Fails to build!

E       AssertionError: assert False is True
E        +  where False = CachedResponse(_content=b'', created_at='2024-02-24 07:34:13.140594+00:00', elapsed=datetime.timedelta(microseconds=80...od='GET', url='http+mock://requests-cache.com/200-404'), status_code=200, url='http+mock://requests-cache.com/200-404').is_expired

tests/unit/test_session.py:475: AssertionError

Full log: https://pastebin.com/G9g0Gt9H

carlosal1015 commented on 2024-01-19 16:41 (UTC)

Hi @hearth, please try again.

hearth commented on 2024-01-19 11:20 (UTC)

Incorrect checksum today:

==> Validating source files with sha512sums...
    requests-cache-1.1.1.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!