Skip to content

Commit

Permalink
added workaround for poetry include issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 7, 2020
1 parent 0ef8e66 commit 68ba08c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ installcmd := pip3 install .
endif

build: aw_qt/resources.py
# Workaround for https://github.com/python-poetry/poetry/issues/1338#issuecomment-571618450
sed -i 's/^aw_qt\/resources.py/\#aw_qt\/resources.py/' .gitignore
$(installcmd)
sed -i 's/.*aw_qt\/resources.py/aw_qt\/resources.py/' .gitignore

install:
bash scripts/config-autostart.sh
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ description = "Trayicon for ActivityWatch"
authors = ["Erik Bjäreholt <erik@bjareho.lt>"]
license = "MPL-2.0"
include = ["aw_qt/resources.py"] # resources.py is in .gitignore and generated before build
packages = [
{ include = "aw_qt" },
]

[tool.poetry.scripts]
aw-qt = "aw_qt:main"
Expand Down

0 comments on commit 68ba08c

Please sign in to comment.