python / cherry-picker

🐍🍒⛏ Utility script for backporting/cherry-picking CPython changes from master into one of the maintenance branches.
Apache License 2.0
49 stars 39 forks source link

It would be helpful if cherry-picker would be compatible with pipx #51

Closed cclauss closed 2 years ago

cclauss commented 2 years ago

% pipx install cherry_picker

  installed package cherry-picker 2.0.0, Python 3.9.7
  These apps are now globally available
    - cherry_picker
done! ✨ 🌟 ✨

% cherry_picker 8e8f7522171ef82f2f5049940f815e00e38c6f42 3.9

Traceback (most recent call last):
  File "/Users/user12345/.local/bin/cherry_picker", line 5, in <module>
    from cherry_picker import cherry_pick_cli
ImportError: cannot import name 'cherry_pick_cli' from 'cherry_picker'
jaraco commented 2 years ago

This is a duplicate of #26, which is fixed in main, but still broken when installed from pypi due to #48.

jaraco commented 2 years ago

You can work around the issue thus:

cpython main $ pipx install 'cherry_picker@git+https://github.com/python/cherry-picker'
  installed package cherry_picker 2.0.0, Python 3.10.0
  These apps are now globally available
    - cherry_picker
done! ✨ 🌟 ✨
cpython main $ cherry_picker
🐍 🍒 ⛏
Usage: cherry_picker [OPTIONS] [COMMIT_SHA1] [BRANCHES]...
Try 'cherry_picker -h' for help.

Error: At least one branch must be specified.