Package Details: python-url-normalize 1.4.3-17

Git Clone URL: https://aur.archlinux.org/python-url-normalize.git (read-only, click to copy)
Package Base: python-url-normalize
Description: URL normalization for Python
Upstream URL: https://github.com/niksite/url-normalize
Keywords: normalization uri
Licenses: MIT
Submitter: Kernald
Maintainer: carlosal1015 (JWCook, AutoUpdateBot)
Last Packager: carlosal1015
Votes: 9
Popularity: 0.003274
First Submitted: 2021-05-05 00:38 (UTC)
Last Updated: 2023-05-05 17:33 (UTC)

Latest Comments

1 2 3 4 Next › Last »

carlosal1015 commented on 2023-05-20 23:59 (UTC)

Hi @hexadecagram, is an interesting issue, what is the further problem.

hexadecagram commented on 2023-05-20 23:55 (UTC)

This package still installs into /usr/lib/python3.10/, which breaks the build now that the python package has been upgraded to 3.11.

carlosal1015 commented on 2022-01-20 13:48 (UTC)

Reminder for the future, use python-poetry-core.

carlosal1015 commented on 2022-01-06 00:59 (UTC)

Thank you very much @bpierre for help us.

bpierre commented on 2022-01-05 23:29 (UTC)

IMHO, you could just lighten the build requirements: both the coverage and flakes Pytest plugins only make sense for the maintainer / developer of the package. To disable those:

 PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git i/PKGBUILD w/PKGBUILD
index 9ced4a8..667c654 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -12,7 +12,7 @@ url="https://github.com/niksite/${_base}"
 license=(MIT)
 depends=(python-six)
 makedepends=(python-build python-install python-poetry)
-checkdepends=(python-pytest-cov python-pytest-flakes python-pytest-socket)
+checkdepends=(python-pytest-socket)
 source=(${url}/archive/${pkgver}.tar.gz)
 sha512sums=('46eaa1753b37e89d56cb19818144a7cf5b38653811720eb506732c35bb3732ef0c556420b22a9ee2c08e70e5b408aab7f44cea5e15d1ebe3d717c0c77706bfb8')

@@ -26,7 +26,7 @@ build() {

 check() {
   cd "${_base}-${pkgver}"
-  pytest tests
+  pytest -o addopts=--disable-socket tests
 }

 package() {

carlosal1015 commented on 2022-01-05 22:57 (UTC)

I publish this issue https://github.com/niksite/url-normalize/issues/29 because recently the tests are falling, some hint to modify the PKGBUILD will be appreciated.

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

Thank you @bpierre for inspecting the PKGBUILD, you are right.

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. Minor nitpick: you have a duplicate --optimize=1 argument in the install call.

carlosal1015 commented on 2021-10-02 00:31 (UTC)

Thank you very much @shanewstone and wuggen, also @jxir. Now is installing, no issues anymore. Happy python-requests-cache.

carlosal1015 commented on 2021-09-30 20:56 (UTC) (edited on 2021-10-01 19:54 (UTC) by carlosal1015)

Hi @wuggen, I found the solution!

PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python ... install ...

is very suitable for me.

Now I can confirm the issue 1, 2. The problem arise from python-url-normalize when in /etc/makepkg.conf have #BUILDIR=....

With or without PYTHONPYCACHEPREFIX:

.BUILDINFO
.MTREE
.PKGINFO
usr/
usr/lib/
usr/lib/python3.9/
usr/lib/python3.9/site-packages/
usr/lib/python3.9/site-packages/url_normalize-1.4.3.dist-info/
usr/lib/python3.9/site-packages/url_normalize-1.4.3.dist-info/LICENSE
usr/lib/python3.9/site-packages/url_normalize-1.4.3.dist-info/METADATA
usr/lib/python3.9/site-packages/url_normalize-1.4.3.dist-info/RECORD
usr/lib/python3.9/site-packages/url_normalize-1.4.3.dist-info/WHEEL
usr/share/
usr/share/licenses/
usr/share/licenses/python-url-normalize/
usr/share/licenses/python-url-normalize/LICENSE