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.003941
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 »

daregakimeta commented on 2021-12-15 05:21 (UTC)

The installer aborts with the message

ImportError while loading conftest '/home/bruh/.cache/paru/clone/python-requests-cache/src/requests-cache-0.8.1/tests/conftest.py'.
tests/conftest.py:22: in <module>
    from timeout_decorator import timeout
E   ModuleNotFoundError: No module named 'timeout_decorator'
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-requests-cache-0.8.1-4': 
error: packages failed to build: python-requests-cache-0.8.1-4

python-timeout-decorator is of course installed already.

carlosal1015 commented on 2021-12-08 20:10 (UTC)

Thank you dear @JWCook, we are awaiting the new release :D https://github.com/reclosedev/requests-cache/milestone/4

JWCook commented on 2021-12-08 19:47 (UTC)

Just a heads up, another minor release will be coming soon. No dependencies have changed except for development tools. I don't expect any problems with downstream builds, but I'll keep an eye on this just in case.

carlosal1015 commented on 2021-10-28 23:21 (UTC)

Thank you @bpierre, fixed now.

bpierre commented on 2021-10-28 16:26 (UTC)

PYTHONPYCACHEPREFIX should not be set during the install phase as it prevents the inclusion of precompiled optimized bytecode in the final package.

carlosal1015 commented on 2021-10-20 13:43 (UTC) (edited on 2021-10-20 13:57 (UTC) by carlosal1015)

Thank you @bpierre, nice interesting discussion. I will try with the variable GIT_CEILING_DIRECTORIES.

Note around: By the same settings (#BUILDIR=... in /etc/makepkg.conf)

python-requests-cache /usr/
python-requests-cache /usr/lib/
python-requests-cache /usr/lib/python3.9/
python-requests-cache /usr/lib/python3.9/site-packages/
python-requests-cache /usr/lib/python3.9/site-packages/requests_cache-0.8.1.dist-info/
python-requests-cache /usr/lib/python3.9/site-packages/requests_cache-0.8.1.dist-info/LICENSE
python-requests-cache /usr/lib/python3.9/site-packages/requests_cache-0.8.1.dist-info/METADATA
python-requests-cache /usr/lib/python3.9/site-packages/requests_cache-0.8.1.dist-info/RECORD
python-requests-cache /usr/lib/python3.9/site-packages/requests_cache-0.8.1.dist-info/WHEEL
python-requests-cache /usr/share/
python-requests-cache /usr/share/licenses/
python-requests-cache /usr/share/licenses/python-requests-cache/
python-requests-cache /usr/share/licenses/python-requests-cache/LICENSE
python-requests-cache-git /usr/
python-requests-cache-git /usr/lib/
python-requests-cache-git /usr/lib/python3.9/
python-requests-cache-git /usr/lib/python3.9/site-packages/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache-0.8.2.dist-info/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache-0.8.2.dist-info/LICENSE
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache-0.8.2.dist-info/METADATA
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache-0.8.2.dist-info/RECORD
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache-0.8.2.dist-info/WHEEL
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/__init__.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/__init__.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/base.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/dynamodb.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/filesystem.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/gridfs.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/mongodb.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/redis.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/backends/sqlite.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/cache_control.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/cache_keys.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/models/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/models/__init__.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/models/raw_response.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/models/request.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/models/response.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/patcher.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/py.typed
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/serializers/
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/serializers/__init__.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/serializers/cattrs.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/serializers/pipeline.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/serializers/preconf.py
python-requests-cache-git /usr/lib/python3.9/site-packages/requests_cache/session.py
python-requests-cache-git /usr/share/
python-requests-cache-git /usr/share/licenses/
python-requests-cache-git /usr/share/licenses/python-requests-cache/
python-requests-cache-git /usr/share/licenses/python-requests-cache/LICENSE

bpierre commented on 2021-10-20 13:41 (UTC) (edited on 2021-10-20 13:44 (UTC) by bpierre)

OK, so in my case, it's because my dotfiles are versioned with .git, and poetry tries to use that. Workaround:

build() {
  cd "${_base}-${pkgver}"
  # Note: set `GIT_CEILING_DIRECTORIES` to prevent poetry
  # from incorrectly using a parent git checkout info.
  GIT_CEILING_DIRECTORIES="$PWD/.." python -m build --wheel --skip-dependency-check --no-isolation
}

This work for python-url-normalize too (after removing the BUILDDIR attempt at fixing the issue).

bpierre commented on 2021-10-20 13:15 (UTC)

I've created an issue on the build project: https://github.com/pypa/build/issues/384.

bpierre commented on 2021-10-20 13:05 (UTC)

I see indeed that python-url-normalize suffered from the same issue, but that BUILDDIR patch is not right: if you look at the wheel created during the build phase, you'll see that it only contains metadata. Manually installing the python modules during the package phase is not the right fix. It's a poetry and/or build issue. And again, pip has no issue building a valid wheel (e.g. with pip wheel --no-deps --no-build-isolation).

carlosal1015 commented on 2021-10-20 12:51 (UTC)

Hi @bpierre, @willemw. I will fix it with the suggestion in the source array, but the most important is to fix Python files in different cases, this reminds me of python-url-normalize. Please give me two days to fix this.

Thank you so much for the comments.