Package Details: python-pipreqs 0.5.0-3

Git Clone URL: https://aur.archlinux.org/python-pipreqs.git (read-only, click to copy)
Package Base: python-pipreqs
Description: Pip requirements.txt generator based on imports in project
Upstream URL: https://github.com/bndr/pipreqs
Licenses: Apache-2.0
Submitter: jelly
Maintainer: Misaka13514 (felixonmars)
Last Packager: Misaka13514
Votes: 1
Popularity: 0.75
First Submitted: 2024-04-13 18:19 (UTC)
Last Updated: 2024-04-16 03:47 (UTC)

Latest Comments

1 2 Next › Last »

xensurve commented on 2024-04-28 22:04 (UTC) (edited on 2024-04-28 22:04 (UTC) by xensurve)

I found the ISSUE, so when python updates it leaves the old folder with modules you installed , I deleted 3.11 folder , I should have copied the site packages folder into 3.12 . Thats why Im have python issues

Misaka13514 commented on 2024-04-17 23:33 (UTC)

If you don't mind giving me your installed package list pacman -Q, I can also try to install an Arch similar to yours to debug it.

Misaka13514 commented on 2024-04-17 23:09 (UTC)

I see you tried to run unittest but this command needs to be run under src/pipreqs-0.5.0 (with src/pipreqs-0.5.0/tests/test_pipreqs.py modified)

Misaka13514 commented on 2024-04-17 22:47 (UTC)

According to the information you provided, I still can't know what module (i.e item["name"]) causes the tests to fail, it just shows False is not true which isn't very helpful. In all my attempts I could not reproduce this issue, so without more detailed information I can only suggest you to skip the check using --nocheck. I would appreciate it if you could modify the code and give me the details. Sorry for making it so complicated for you.

xensurve commented on 2024-04-17 20:35 (UTC) (edited on 2024-04-17 20:46 (UTC) by xensurve)

This was ran inside distrobox, I also tried yay instead or pikaur , I also download PKGBUILD and tried to build makepkg


python -m unittest -v

Ran 0 tests in 0.000s

OK

FAIL: test_get_use_local_only (tests.test_pipreqs.TestPipreqs.test_get_use_local_only)
Test without checking PyPI, check to see if names of local
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/cache/private/pikaur/build/python-pipreqs/src/pipreqs-0.5.0/tests/test_pipreqs.py", line 150, in test_get_use_local_only
self.assertTrue(item["name"].lower() in self.local)
AssertionError: False is not true

FAIL: test_init_local_only (tests.test_pipreqs.TestPipreqs.test_init_local_only)
Test that items listed in requirements.text are the same
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/cache/private/pikaur/build/python-pipreqs/src/pipreqs-0.5.0/tests/test_pipreqs.py", line 203, in test_init_local_only
self.assertTrue(item[0].lower() in self.local)
AssertionError: False is not true'

Misaka13514 commented on 2024-04-17 00:00 (UTC)

@xensurve I just tested it in container (docker), it builds without issues. Can you provide more information than AssertionError: False is not true? (Change the test code for example change tests/test_pipreqs.py#L150 to print(item["name"].lower(), item["name"].lower() in self.local) and run python -m unittest -v) Thank you.

xensurve commented on 2024-04-16 16:06 (UTC) (edited on 2024-04-16 16:11 (UTC) by xensurve)

Same ISSUE , It has an issue when in distrobox i.e container, can you fix please

tzok commented on 2024-04-16 12:36 (UTC)

It works when built with makechrootpkg. I have no idea why it fails to pass tests in my regular config. My Arch is up-to-date.

Misaka13514 commented on 2024-04-16 07:25 (UTC)

@tzok I don't know why the two tests failed. It works on my machine and GitHub's machine. I guess there is a different python in your environment variable? Would you mind testing with makechrootpkg? Thanks for your help. (If you don't have much time you can try my pre-built package.)