Package Details: python-requests-cache 1.2.0-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: 30
Popularity: 0.004456
First Submitted: 2015-09-21 13:55 (UTC)
Last Updated: 2024-02-18 07:57 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

timhs commented on 2022-07-05 11:38 (UTC)

can't update package:

ERROR Missing dependencies:
setuptools_scm~=6.4
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

How can I fix that?

JWCook commented on 2022-06-29 23:15 (UTC)

Done, requests-cache 0.9.5 is out on PyPI now.

Once #75188 is done, I believe that will fix all 3 of the issues described below.

bpierre commented on 2022-06-29 22:54 (UTC)

@JWCook: requests-cache 0.9.4, and yes, currently Arch Linux version of cattrs is 22.1.0.

JWCook commented on 2022-06-29 22:47 (UTC)

@bpierre Did you see those errors related to bson and ujson when using requests-cache 0.9 with cattrs 22.1? That is a known issue, and I had pinned that dependency here.

There's an unreleased change here that fixes this. I can backport that to 0.9 and make a patch release soon.

JWCook commented on 2022-06-29 22:32 (UTC)

Hmm, none of the optional dependencies listed here are supposed to be required for unit tests. I'll look into that.

The the exception handling in requests_cache/__init__.py was meant for a fairly specific case with an older packaging setup (e.g., for getting package information via python setup.py before installing into a new virtualenv). That's no longer needed, so I will go ahead and remove that.

carlosal1015 commented on 2022-06-29 20:17 (UTC)

Thanks for suggestion, when python-requests-cache deprecated python-bson I will do the same in the PKGBUILD.

bpierre commented on 2022-06-29 18:47 (UTC)

Also, I think python-bson should be removed from the optional dependency: it has not been updated for a while, and the testsuite does not pass when using it instead of the bson module provided by python-pymongo (cattrs is also using the later).

bpierre commented on 2022-06-29 18:39 (UTC) (edited on 2022-06-29 18:42 (UTC) by bpierre)

Can you re-raise the (real) exception as the root of the problem in requests_cache/__init__.py? There might be another missing dependency. Or alternatively install python-exceptiongroup so the warning is about the root exception (note python-exceptiongroup check phase is failing on my side).

There's a least 3 issues: - some missing dependencies for running the tests - the exception handling in requests_cache/__init__.py - the missing python-exceptiongroup dependency for python-cattrs exception handling

carlosal1015 commented on 2022-06-29 18:24 (UTC) (edited on 2022-06-29 18:28 (UTC) by carlosal1015)

Yes, the different error in check() function, but not workaround yet. Video here. Dear upstream fill an issue on cattrs GitHub repository.

bpierre commented on 2022-06-29 17:52 (UTC)

Do you still get the same exact exception output when python-pymongo is installed?