Skip to content

Make commitizen installable via MacPorts #260

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

Closed
harens opened this issue Sep 3, 2020 · 4 comments · Fixed by macports/macports-ports#8666
Closed

Make commitizen installable via MacPorts #260

harens opened this issue Sep 3, 2020 · 4 comments · Fixed by macports/macports-ports#8666
Labels
type: feature A new enhacement proposal

Comments

@harens
Copy link
Contributor

harens commented Sep 3, 2020

Description

Although Homebrew doesn't work very well with Poetry packages, there is a viable method of writing a Portfile for commitizen. This would allow for the following command to install the package.

sudo port install commitizen

Possible Solution

Add a setup.py file to each release/tag of both commitizen and decli via dephell.
Create portfiles for any dependencies that don't already have one.

questionary: macports/macports-ports#8296
decli: macports/macports-ports#8645

Additional context

Poetry currently cannot be built using the --no-binary:all: flag: python-poetry/poetry#1975. This makes it difficult to create a homebrew package #256.

@harens harens added the type: feature A new enhacement proposal label Sep 3, 2020
@harens
Copy link
Contributor Author

harens commented Sep 6, 2020

questionary has now been added to MacPorts. I'm still happy to try and add commitizen as well if this is what you want, but it would be really useful if a setup.py could be added to both decli and commitizen. Thanks.

@Lee-W
Copy link
Member

Lee-W commented Sep 8, 2020

I personally don't like to maintain setup.py. But if we could auto-generate setup.py from pyproject.toml and use it only when we need to update to MacPorts, I'll be fine with it. @woile What do you think?

@woile
Copy link
Member

woile commented Sep 8, 2020

Same. But I don't know how it works. Is it mandatory to track it?

@harens
Copy link
Contributor Author

harens commented Oct 8, 2020

🎉 Commitizen has been added to MacPorts! 🎉

A summary page can be found here. To my knowledge, there is no simple way of automatically updating the portfile with each release. However, it is quite simple to update it manually, and I will be sure to do that as often as I can.

@harens harens closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new enhacement proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants