Skip to content

Commit

Permalink
Install poetry using pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
cauethenorio committed Jan 12, 2023
1 parent f46e674 commit 2244efb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,12 @@ python: asdf brew
log "Python $$LATEST_PY set as global"; \
asdf global python $$LATEST_PY;

@log "Installing python poetry..."
@asdf plugin list | grep -q poetry || asdf plugin-add poetry https://github.com/asdf-community/asdf-poetry.git
@asdf install poetry latest:
@asdf global poetry $$(asdf list poetry | tail -n1 | tr -d ' ' | tr -d '*')

@log "Installing pipx..."
@source $$(brew --prefix asdf)/libexec/asdf.sh && (is-executable pipx || pip install pipx);

@log "Installing python poetry..."
@source $$(brew --prefix asdf)/libexec/asdf.sh && pipx install poetry;


#: install two latest LTS node versions
node: asdf
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Take anything you want, but at your own risk.
- [asdf](https://asdf-vm.com/) language/tool version manager
- 🐍 [Python](https://www.python.org/)
- The three latest versions of Python, managed by [asdf](https://asdf-vm.com/)
- [Poetry](https://python-poetry.org/) dependency manager, managed by [asdf](https://asdf-vm.com/)
- [Pipx](https://github.com/pypa/pipx) package runner (with some packages: [pipx-libs.txt](./install/pipx-libs.txt))
- [Poetry](https://python-poetry.org/) dependency and package manager, managed by [Pipx](https://github.com/pypa/pipx) due [this issue](https://github.com/python-poetry/install.python-poetry.org/issues/24)
- 🦏 Latest two [Node.js](https://nodejs.org/en/) LTS versions, managed by [asdf](https://asdf-vm.com/)
- 🤘 Latest [Rust](https://www.rust-lang.org/), managed by [Homebrew](https://brew.sh) (packages: [Rustfile](./install/Rustfile))
- 🦄 Latest [Golang](https://go.dev/), managed by [Homebrew](https://brew.sh)
Expand Down
1 change: 1 addition & 0 deletions install/pipx-libs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cookiecutter
httpie
poetry

0 comments on commit 2244efb

Please sign in to comment.