From f5f8332aa1136c3fc878f410e56cddbcc7f143fb Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 8 Feb 2021 23:30:54 -0500 Subject: [PATCH] Move from script to using entry point in setup.py --- bin/lightcards | 5 ----- {bin => contrib}/kvtml2html.py | 0 setup.py | 4 +++- 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100755 bin/lightcards rename {bin => contrib}/kvtml2html.py (100%) diff --git a/bin/lightcards b/bin/lightcards deleted file mode 100755 index fec8f88..0000000 --- a/bin/lightcards +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env python - -import lightcards - -lightcards.lightcards.main() diff --git a/bin/kvtml2html.py b/contrib/kvtml2html.py similarity index 100% rename from bin/kvtml2html.py rename to contrib/kvtml2html.py diff --git a/setup.py b/setup.py index 93ca495..0f60632 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,9 @@ setup( packages=["lightcards"], install_requires=["beautifulsoup4", "markdown"], data_files=[("man/man1", ["man/lightcards.1"])], - scripts=["bin/lightcards"], + entry_points={ + "console_scripts": ["lightcards=lightcards:main"], + }, classifiers=[ "Intended Audience :: Education", "Environment :: Console :: Curses", -- 2.39.2