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/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 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