Bug 1794242 - Please push python3-userpath to f31
Summary: Please push python3-userpath to f31
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-userpath
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-23 02:25 UTC by Martin Jackson
Modified: 2020-02-16 04:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-16 04:12:19 UTC
Type: Bug
Embargoed:
mhjacks: needinfo+


Attachments (Terms of Use)

Description Martin Jackson 2020-01-23 02:25:19 UTC
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

Comment 1 Lumír Balhar 2020-01-23 12:54:11 UTC
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?

Comment 2 Martin Jackson 2020-01-23 13:56:44 UTC
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!

Comment 3 Martin Jackson 2020-01-24 00:45:33 UTC
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.

Comment 4 Lumír Balhar 2020-01-27 09:18:44 UTC
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.

Comment 5 Petr Viktorin (pviktori) 2020-02-04 14:44:28 UTC
Martin, does this work for you?

Comment 6 Martin Jackson 2020-02-05 01:43:36 UTC
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)

Comment 7 Lumír Balhar 2020-02-08 10:03:58 UTC
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.

Comment 8 Ben Cotton 2020-02-11 16:36:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 9 Martin Jackson 2020-02-16 04:12:19 UTC
OK, I'll handle it with explicit deps in f31.  We can close this now.  Thanks!


Note You need to log in before you can comment on or make changes to this bug.