ofek / userpath

Cross-platform tool for adding locations to the user PATH, no elevated privileges required!
MIT License
151 stars 20 forks source link

Expand history #12

Closed jayvdb closed 4 years ago

jayvdb commented 4 years ago

Wow. Confusing. https://pypi.org/project/adduserpath/ and https://pypi.org/project/userpath/ both link here.

The https://github.com/ofek/userpath/blob/master/HISTORY.rst needs a bit of expanding.

Fedora has https://src.fedoraproject.org/rpms/python-adduserpath

Arch has https://repology.org/project/python:userpath/versions

openSUSE has both in OBS https://build.opensuse.org/package/show/home:aboe76/python-adduserpath and https://build.opensuse.org/package/show/home:jayvdb:py-new/python-userpath which I was hoping to submit soon.

jayvdb commented 4 years ago

Is userpath backwards compatible to adduserpath? It will be helpful to know this when trying to get the Fedora package updated, as they probably want to add "Provides: python-addusername" to the renamed python-userpath package .spec

(ignoring that it now doesnt support some versions of Python which is a typical change)

jayvdb commented 4 years ago

Raised https://bugzilla.redhat.com/show_bug.cgi?id=1761091 about the Fedora package.

jayvdb commented 4 years ago

There is one incompatibility found when trying to use hatch 0.20 with latest userpath

[   51s]   File "/home/abuild/rpmbuild/BUILD/hatch-0.20.0/hatch/commands/conda.py", line 31, in conda
[   51s]     location = userpath.normpath(location)
[   51s] AttributeError: module 'userpath' has no attribute 'normpath'

It is now userpath.utils.normpath and it isnt export to the main namespace userpath. Easy to patch around, but deserves a note somewhere in the release notes.