Skip to content

Commit

Permalink
Fix installing via pipx
Browse files Browse the repository at this point in the history
Provide a name in the `[project]` section so pipx can use poetry > 2.0
to determine the package name, but then before actually installing, have
it ensure the venv is using poetry < 2.0.
  • Loading branch information
doshitan committed Jan 6, 2025
1 parent b91e4d3 commit 86c5622
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pipx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
python-version: ${{ inputs.python-version }}

- name: Install with pipx
run: pipx install .
run: pipx install --preinstall 'poetry>=1.2.0,<2.0' .

- name: Run --help
run: nava-platform --help
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Be sure `git` exists on your `$PATH`.
Then install the tool with:

```sh
pipx install git+ssh://[email protected]/navapbc/platform-cli
pipx install --preinstall 'poetry>=1.2.0,<2.0' git+ssh://[email protected]/navapbc/platform-cli
```

You can now run `nava-platform`.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[project]
name = "nava-platform-cli"
requires-python = ">=3.11"

[tool.poetry]
Expand Down

0 comments on commit 86c5622

Please sign in to comment.