Skip to content

Commit

Permalink
Add possibility for different PyPI and package names
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-kipawa committed Oct 2, 2024
1 parent 16a1064 commit 353f742
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 353f742

Please sign in to comment.