Skip to content

Commit

Permalink
Transition to the src layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Mar 24, 2024
1 parent f8be6aa commit 46a889d
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test = [
]

[tool.hatch.version]
path = "itables/version.py"
path = "src/itables/version.py"

[project.urls]
Homepage = "https://mwouts.github.io/itables/"
Expand All @@ -74,15 +74,15 @@ exclude_lines = [
enable-by-default = true
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["itables/dt_for_itables/dt_bundle.js", "itables/dt_for_itables/dt_bundle.css"]
ensured-targets = ["packages/dt_for_itables/dt_bundle.js", "packages/dt_for_itables/dt_bundle.css"]

[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "itables/dt_for_itables"
path = "packages/dt_for_itables"
build_cmd = "build"
npm = ["npm"]

[tool.hatch.build.targets.sdist]
artifacts = ["itables/dt_for_itables/dt_bundle.js", "itables/dt_for_itables/dt_bundle.css"]
artifacts = ["src/js/dt_bundle.js", "src/js/dt_bundle.css"]

[tool.hatch.build.targets.wheel]
artifacts = ["itables/dt_for_itables/dt_bundle.js", "itables/dt_for_itables/dt_bundle.css"]
artifacts = ["src/js/dt_bundle.js", "src/js/dt_bundle.css"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion itables/options.py → src/itables/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
dt_url = UNPKG_DT_BUNDLE_URL

"""The DataTable bundle for the offline mode"""
dt_bundle = find_package_file("dt_for_itables/dt_bundle.js")
dt_bundle = find_package_file("js/dt_bundle.js")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_update_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import world_bank_data as wb

SAMPLE_DIR = Path(__file__).parent / ".." / "itables" / "samples"
SAMPLE_DIR = Path(__file__).parent / ".." / "src" / "itables" / "samples"


def create_csv_file_if_missing(df, csv_file):
Expand Down

0 comments on commit 46a889d

Please sign in to comment.