From 11837addf1aa0661cfd65535416117a5c37309b7 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Mon, 3 May 2021 18:15:07 -0400 Subject: [PATCH] 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). --- pyproject.toml | 5 ++++- rfd/VERSION | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0d78e3c..5eaf107 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "rfd" -version = "0.7.0" +version = "0.7.1" description = "view RedFlagDeals.com from the command line" authors = ["Dave Gallant "] license = "GPL-3.0-or-later" @@ -20,6 +20,9 @@ pylint = "^2.8.2" pytest = ">=4.6.6" rope = "0.19.0" +[tool.poetry.scripts] +rfd = "rfd.__main__:cli" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/rfd/VERSION b/rfd/VERSION index faef31a..39e898a 100644 --- a/rfd/VERSION +++ b/rfd/VERSION @@ -1 +1 @@ -0.7.0 +0.7.1