Could you please push this to f31 as well? (If you're interested in a co-maintainer, I could comaintain python-userpath and do this.) It is the sole dependency of pipx which I am working on packaging and would like to get into f31. https://bugzilla.redhat.com/show_bug.cgi?id=1790241
Hello. Python module `userpath` is available in python3-adduserpath RPM package in F31. `adduserpath` is the older name for the same piece of software. python-adduserpath is replaced by python-userpath in rawhide. Could you please try to use pipx with python3-adduserpath?
Yes, I didn't see that initially. It looks like this path might be feasible - I will look into this and close this out if I can successfully conditionalize the dependency for f <= 31, and everything works as expected. Thanks!
So...I tried building pipx with a BuildRequires of python3dist(adduserpath): Provides: pipx = 0.15.1.3-1.fc31 python3.7dist(pipx) = 0.15.1.3 python3dist(pipx) = 0.15.1.3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.7 python3.7dist(argcomplete) >= 1.9.4 python3.7dist(argcomplete) < 2 python3.7dist(setuptools) python3.7dist(userpath) Should python3-adduserpath in f31 provide python3.7dist(userpath)? (Otherwise nothing in f31 will provide that...so the package can be built but not installed). I'm new to RPM packaging...I'm not sure if there are some Obsoletes: or other cases involved here with upgrades, but this seems like a situation that might get wonky that way. If I can solve this another way in the pipx packaging I'm happy to do so, though.
You can manually (build)require python3-adduserpath which is provided by both packages (old and new one). Let me know if it does not work for you.
Martin, does this work for you?
Sorry, it doesn't look like it will. This is what I get building against rawhide with an explicit buildrequires on python3dist(adduserpath): setting SOURCE_DATE_EPOCH=1579564800 Wrote: /builddir/build/SRPMS/pipx-0.15.1.3-2.fc32.src.rpm No matches found for the following disable plugin patterns: local, spacewalk fedora 41 kB/s | 14 kB 00:00 No matching package to install: 'python3dist(adduserpath)' Not all dependencies satisfied (So it seems rawhide doesn't provide adduserpath) So trying with the spec: if 0%{?fedora} == 31 BuildRequires: python3-adduserpath %else BuildRequires: python3dist(userpath) %endif The resulting RPM on f31 says: Problem: conflicting requests - nothing provides python3.7dist(userpath) needed by pipx-0.15.1.3-2.fc31.noarch (try to add '--skip-broken' to skip uninstallable packages) (Due to the auto-dependency gnerators)
The latest build in rawhide now provides all the variants of the old name: Provides: python-userpath = 1.3.0-3.fc32 python3-adduserpath = 1.3.0-3.fc32 python3-userpath = 1.3.0-3.fc32 python3.8dist(userpath) = 1.3 python3dist(adduserpath) = 1.3.0-3.fc32 python3dist(userpath) = 1.3 pythondist(adduserpath) = 1.3.0-3.fc32 https://koji.fedoraproject.org/koji/taskinfo?taskID=41432307 Does it work now? It's also possible to disable the dependencies generator and specify runtime dependencies manually.
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
OK, I'll handle it with explicit deps in f31. We can close this now. Thanks!