From 4bdee1981795850d6f8f90cf963872185f0c6dd3 Mon Sep 17 00:00:00 2001 From: Luke Schreiber <131496683+Luke-Schreiber@users.noreply.github.com> Date: Wed, 29 Oct 2025 10:49:34 -0600 Subject: [PATCH 1/2] Remove setup file unused --- setup.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 setup.py diff --git a/setup.py b/setup.py deleted file mode 100644 index 8dc1469..0000000 --- a/setup.py +++ /dev/null @@ -1,21 +0,0 @@ -from setuptools import setup, find_packages -import tomllib -from pathlib import Path - -pyproject_path = Path(__file__).with_name("pyproject.toml") -pyproject = tomllib.loads(pyproject_path.read_text()) -version = pyproject["project"]["version"] - -setup( - name='loon-utils', - version=version, - packages=find_packages(), - install_requires=[ - # Add your dependencies here - ], - entry_points={ - 'console_scripts': [ - 'print-hello=loon_utils.main:hello', - ], - }, -) \ No newline at end of file From 5abab2fed4bfbcdec3c22515c6739a7cce3bc6a9 Mon Sep 17 00:00:00 2001 From: Luke Schreiber <131496683+Luke-Schreiber@users.noreply.github.com> Date: Wed, 29 Oct 2025 10:50:02 -0600 Subject: [PATCH 2/2] Fix: Command line script path --- pyproject.toml | 8 +++++--- src/loon_utils/main.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b664c2d..65dc652 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,9 +28,11 @@ dev = [ "pytest>=8.3.5", ] -[tool.hatch.build.packages.find] -where = "src" -include = ["loon_utils"] +[tool.hatch.build.targets.sdist] +include = ["src/loon_utils"] + +[tool.hatch.build.targets.wheel] +packages = ["src/loon_utils"] [project.scripts] hello = "loon_utils.main:hello" diff --git a/src/loon_utils/main.py b/src/loon_utils/main.py index 1602191..c5c6c66 100644 --- a/src/loon_utils/main.py +++ b/src/loon_utils/main.py @@ -1,2 +1,2 @@ def hello(): - print("Hello, world!") \ No newline at end of file + print("Hello from Loon Utilities!") \ No newline at end of file