From 2de1e385f1b284ac15f7ccfe08d08b2aab8fe1dc Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 13 Feb 2024 12:31:22 +0100 Subject: [PATCH 1/2] refactor: rename CLI module --- cachier/{scripts/cli.py => __main__.py} | 0 cachier/scripts/__init__.py | 0 setup.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename cachier/{scripts/cli.py => __main__.py} (100%) delete mode 100644 cachier/scripts/__init__.py diff --git a/cachier/scripts/cli.py b/cachier/__main__.py similarity index 100% rename from cachier/scripts/cli.py rename to cachier/__main__.py diff --git a/cachier/scripts/__init__.py b/cachier/scripts/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/setup.py b/setup.py index 13f92050..c63e486b 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ packages=['cachier', 'cachier.scripts'], entry_points=''' [console_scripts] - cachier=cachier.scripts.cli:cli + cachier=cachier.__naim__:cli ''', install_requires=[ 'watchdog', 'portalocker', From 8bda462877de0915f9805da468458d929dbfaa34 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 13 Feb 2024 12:38:15 +0100 Subject: [PATCH 2/2] find_packages --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c63e486b..a1bbfc32 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup file for the Cachier package.""" +from setuptools.config.expand import find_packages # This file is part of Cachier. # https://github.com/shaypal5/cachier @@ -30,7 +31,7 @@ author='Shay Palachy', author_email='shay.palachy@gmail.com', url='https://github.com/python-cachier/cachier', - packages=['cachier', 'cachier.scripts'], + packages=find_packages(exclude=['tests']), entry_points=''' [console_scripts] cachier=cachier.__naim__:cli