-
-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Towards release 2.0 #743
Comments
Care to elaborate on the reasons that make you want to switch to Rich 🙂 (I personnally don't like Click but didn't think Rich would offer similar CLI features)? Isn't it going to be a big refactor? |
For many reasons:
|
I see, thanks! Ah, the constant battle of using libraries while reducing dependencies ^^ |
look forward to this feature:
|
Regarding Click/Argparse, what do you think about Typer? https://github.com/tiangolo/typer It does use Click under the hood, which makes testing much simpler. |
@gitpushdashf command-line parsing is not the problem, |
FWIW: @gitpushdashf I converted a large many nested-commands cli app from argparse to typer and it is okay; in my experience typer's windows support was meh (which is a dealbreaker imo). personally I recommend click over typer, and argparse over most things unless you need type-annotation support (where typer and click are both good). EDIT: The overrides feature also looks super nice |
Regarding: "Switch the UI framework to rich, drop click." I've managed to accomplish this and replace all uses of Currently To begin with I wanted to make only minimal changes. So there is still usage of If you are interested in merging this before a With respect to the |
@daylinmorgan Thanks for that, it is awesome. I also prefer to use the rich inline markup for colors. Looking forward to your PR. |
For those who are interested I am already working on a standalone package to replace |
Hi, an alpha prerelease has been created: |
OS: Pop!_OS 22.04 reinstalled pdm with pipx, this works as expected should I make an issue for this? |
@smokeythemonkey Thanks, will fix it soon, you can anyway run |
In my WSL Debian I first installed pdm via pipx and then again via the curl command shown above. This raises a few questions concerning management of the pdm version in the following context. Now pdm exists in two directories under the .local folder as shown below.
Now pipx reports the pdm symlink points to unexpected location. So I can't uninstall pdm 1.15.4 using "pipx uninstall pdm".
I hope this is the appropriate place to ask these questions. I did not see clarification anywhere else in the documentation. |
Just remove the
pipx install/upgrade --pip-args=--pre pdm Git LFS doesn't need to be installed.
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 - --remove |
The 2.0 release is scheduled for this Friday(7/15) and this issue will be closed. Bug reports are better before then than after. Thanks all for testing! |
Planned changes in version 2.0
PEP 665 supportRejectedclick
. Fix(#677): Replace halo, click, and termcolor with rich. #1066 Feature: Replace halo, click, and termcolor with rich #1091pip
Useunearth
as the backend to find and download packages #1096Experiment on sub-resolvers to address the multi specifications for one dependency
It won't happen shortly, at least before PEP 665's finalization.See the Release 2.0 milestone for the latest progress.
The text was updated successfully, but these errors were encountered: