Skip to content

Commit

Permalink
Add package path to hatch config
Browse files Browse the repository at this point in the history
See pypa/hatch#845. This was necessary because our project name
is different from our package name, so hatch wasn't able to
locate it in the default path. Note that if the shell has been
built before making this change, it will need to be manually
rebuilt by running `hatch env prune`.
  • Loading branch information
aazuspan committed May 2, 2023
1 parent b9f5a36 commit d27508d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Source = "https://github.com/lemma-osu/scikit-learn-knn"
[tool.hatch.version]
path = "src/sklearn_knn/__about__.py"

[tool.hatch.build.targets.wheel]
packages = ["src/sklearn_knn"]

[tool.hatch.build.targets.sdist]
include = [
"/src",
Expand Down

0 comments on commit d27508d

Please sign in to comment.