From 353f742d68c5ab59b426c1357f6a109c530b1b70 Mon Sep 17 00:00:00 2001 From: Ryan Murray <74630349+rywm-dhi@users.noreply.github.com> Date: Wed, 2 Oct 2024 10:44:02 +0200 Subject: [PATCH] Add possibility for different PyPI and package names --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e481917..73ea87f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,10 +2,17 @@ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +# location of package relative to the repository root (e.g. alternatively "src/my_library") +# note: the package name 'my_library' can be different from the project name on PyPI +# the project name (PyPI) is used for pip install, whereas the package name is used for imports +packages = ["my_library"] + [tool.hatch.build.targets.sdist] exclude = ["notebooks", "tests", "images"] [project] +# name on PyPI (e.g. pip install my_library) name = "my_library" version = "0.0.1" dependencies = [