Skip to content

Commit

Permalink
Merge pull request #407 from mwcraig/fix-broken-wheel
Browse files Browse the repository at this point in the history
Include proper files in sdist so they land in the wheel
  • Loading branch information
mwcraig authored Aug 6, 2024
2 parents 5ed867a + 95fd94a commit 6b87f1e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,25 @@ source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "stellarphot/_version.py"

[tool.hatch.build.targets.wheel.shared-data]
"stellarphot/notebooks/photometry" = "share/jupyter/stellarphot/photometry"
"stellarphot/notebooks" = "share/jupyter/stellarphot"
".jp_app_launcher_stellarphot.yaml" = "share/jupyter/jupyter_app_launcher/jp_app_launcher_stellarphot.yaml"
"docs/_static/stellarphot-logo.svg" = "share/jupyter/stellarphot/stellarphot-logo.svg"

[tool.hatch.build.targets.sdist]
# This section determines what files are included in the source distribution
include = [
# The source code
"/stellarphot",
# Logo for JupyterLab launcher
"/docs/_static/stellarphot-logo.svg",
# Configuration for jupyter-app-launcher
"/.jp_app_launcher_stellarphot.yaml"
]

[tool.hatch.build.targets.wheel.shared-data]
# This section determines what data files are included in the wheel
# and where they should eventually be installed in the user's environment.
"docs/_static/stellarphot-logo.svg" = "share/jupyter/stellarphot/stellarphot-logo.svg"
# This includes the notebooks used in the launcher
"stellarphot/notebooks" = "share/jupyter/stellarphot"
".jp_app_launcher_stellarphot.yaml" = "share/jupyter/jupyter_app_launcher/jp_app_launcher_stellarphot.yaml"

[tool.coverage]

[tool.coverage.run]
Expand Down

0 comments on commit 6b87f1e

Please sign in to comment.