Skip to content

Commit

Permalink
chore: Update to poetry 2.0
Browse files Browse the repository at this point in the history
There is a breaking change in 2.0, where `tool.poetry.include` items
no longer include format = wheel by default. This breaks reading all
resource files, so at least that needed to be fixed, or the poetry-core
in build-system needed to be version pinned.

Took this opportunity to migrate most settings to under project, which
poetry 2.0 supports. Unfortunately deptry gets confused about this
(fpgmaas/deptry#1002) so disable it for now.
  • Loading branch information
caksoylar committed Jan 6, 2025
1 parent a2a3b37 commit cd5a29c
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 318 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
key: venv-${{ runner.os }}-3.10-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: poetry install --with dev --no-interaction
run: poetry install -E dev --no-interaction

- name: Black
run: poetry run black --check keymap_drawer
Expand All @@ -51,4 +51,4 @@ jobs:

- name: Deptry
run: poetry run deptry .
if: success() || failure()
if: false # success() || failure()
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ To get started, [install Poetry](https://python-poetry.org/docs/#installation),
```sh
git clone https://github.com/caksoylar/keymap-drawer.git
cd keymap-drawer
poetry install # --with dev,lsp optional dependencies
poetry install # -E dev -E lsp (optional dependencies)
```

`poetry shell` will activate a virtual environment with the `keymap_drawer` module in Python path and `keymap` executable available.
Activate a virtual environment with the `keymap_drawer` module in Python path and `keymap` executable available by running the output of `poetry env activate`.
Changes you make in the source code will be reflected when using the module or the command.

If you prefer not to use Poetry, you can get an editable install with `pip install --editable .` inside the `keymap-drawer` folder.
Expand Down
Loading

0 comments on commit cd5a29c

Please sign in to comment.