From ea90081108c649fdf64cc2a114318f3e5f791c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 4 Oct 2020 15:16:45 +0100 Subject: Move console_scripts definition to setup.cfg. --- setup.cfg | 4 ++++ setup.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index d737af1..4389dbd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,6 +37,10 @@ python_requires = ~= 3.7 lib/udev/rules = udev/69-glucometerutils.rules +[options.entry_points] +console_scripts = + glucometer = glucometerutils.glucometer:main + [tool:pytest] addopts = --color=yes diff --git a/setup.py b/setup.py index 115a0ad..a209093 100644 --- a/setup.py +++ b/setup.py @@ -43,5 +43,4 @@ extras_require["all"] = all_require setup( extras_require=extras_require, - entry_points={"console_scripts": ["glucometer=glucometerutils.glucometer:main"]}, ) -- cgit v1.2.3