Add poetry script as a replacement for console_scripts (#92)

After switching to poetry, the console script `rfd` was removed meaning the `rfd` command did not work.

This fixes the issue by using [poetry scripts](https://python-poetry.org/docs/pyproject/#scripts).
This commit is contained in:
Dave Gallant
2021-05-03 18:15:07 -04:00
parent 185700447e
commit 11837addf1
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "rfd" name = "rfd"
version = "0.7.0" version = "0.7.1"
description = "view RedFlagDeals.com from the command line" description = "view RedFlagDeals.com from the command line"
authors = ["Dave Gallant <davegallant@gmail.com>"] authors = ["Dave Gallant <davegallant@gmail.com>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
@@ -20,6 +20,9 @@ pylint = "^2.8.2"
pytest = ">=4.6.6" pytest = ">=4.6.6"
rope = "0.19.0" rope = "0.19.0"
[tool.poetry.scripts]
rfd = "rfd.__main__:cli"
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"

View File

@@ -1 +1 @@
0.7.0 0.7.1