Skip to content
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

Drop the click dependency #96

Merged
merged 1 commit into from
Oct 2, 2021
Merged

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Dec 31, 2019

This reduces the number of external dependencies and relies more on Python's standard library.

It drops the --no-push option since argparse doesn't support having a --option / --no-option. That's also the default and this makes it clearer to the user what the default is.

The help text's formatting is slightly different. Mostl visible are that the description and epilog are no longer indented.

@ekohl
Copy link
Contributor Author

ekohl commented Apr 9, 2020

Looks like 3.4 failed because the env is no longer available.

@ekohl
Copy link
Contributor Author

ekohl commented Apr 24, 2020

#99 drops 3.4

@ekohl
Copy link
Contributor Author

ekohl commented Jun 23, 2020

Rebased on master

Copy link

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Tatsh added a commit to Tatsh/tatsh-overlay that referenced this pull request May 14, 2021
See msiemens/PyGitUp#96

Package-Manager: Portage-3.0.18, Repoman-3.0.3
@msiemens
Copy link
Owner

Hey @ekohl, sorry for never getting back to you on this! I've always procrastinated responding to this PR as I'm torn on the question whether or not having Click as a dependency is worth it. On the one hand, we don't use most of Click's advanced features like subcommands and fancy argument parsing. But on the other hand, to me depending on the extra code has never bothered me too much.

Anyways, thinking about this I don't see any good reason to keep using Click if we don't need the extra features.

@ekohl Could you rebase this unto the latest version of PyGitUp so we can get this merged?

This reduces the number of external dependencies and relies more on
Python's standard library.

It drops the --no-push option since argparse doesn't support having a
--option / --no-option. That's also the default and this makes it
clearer to the user what the default is.

The help text's formatting is slightly different. Mostly visible are
that the description and epilog are no longer indented.
@ekohl
Copy link
Contributor Author

ekohl commented Sep 23, 2021

Better late than never. Having been a long time open source maintainer I know what goes through your head.

My main motivation was easier packaging. I prefer to install my tooling as RPMs and fewer dependencies makes that easier.

I've rebased it now. I hand edited the poetry.lock file and I hope it's ok, but I've never used poetry myself.

@msiemens msiemens merged commit 215b1c4 into msiemens:master Oct 2, 2021
@msiemens
Copy link
Owner

msiemens commented Oct 2, 2021

Thanks a lot! I'll publish a new release of PyGitUp in a second 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants