pyviewarr 0.3.3__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/PKG-INFO +1 -1
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/pyproject.toml +15 -3
- pyviewarr-0.3.4/src/pyviewarr/static/widget.js +48 -0
- pyviewarr-0.3.3/src/pyviewarr/static/widget.js +0 -48
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/.gitignore +0 -0
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/LICENSE +0 -0
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/README.md +0 -0
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/src/pyviewarr/__init__.py +0 -0
- {pyviewarr-0.3.3 → pyviewarr-0.3.4}/src/pyviewarr/static/widget.css +0 -0
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["hatchling"]
|
|
2
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyviewarr"
|
|
7
|
-
version = "0.3.3"
|
|
8
7
|
dependencies = ["anywidget>=0.9,<0.10", "numpy>=2.0,<3"]
|
|
9
8
|
readme = "README.md"
|
|
10
9
|
requires-python = ">=3.10"
|
|
10
|
+
dynamic = ["version"]
|
|
11
|
+
|
|
12
|
+
# Single source of truth for the version: the monorepo git tag (e.g. v0.3.4),
|
|
13
|
+
# shared with jupyterlab-fitsview so both packages always release the same
|
|
14
|
+
# version. root = ".." points setuptools_scm at the monorepo root (.git).
|
|
15
|
+
[tool.hatch.version]
|
|
16
|
+
source = "vcs"
|
|
17
|
+
raw-options = { root = "..", local_scheme = "no-local-version" }
|
|
11
18
|
|
|
12
19
|
# For projects not using `uv`, you can install these development dependencies with:
|
|
13
20
|
# `pip install -e ".[dev]"`
|
|
@@ -33,7 +40,12 @@ dependencies = ["hatch-jupyter-builder>=0.5.0"]
|
|
|
33
40
|
|
|
34
41
|
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
|
|
35
42
|
npm = "npm"
|
|
36
|
-
|
|
43
|
+
# Monorepo single-source: bundle the widget from the already-built shared
|
|
44
|
+
# viewarr/pkg (`build`), rather than recompiling the WASM with wasm-pack
|
|
45
|
+
# (`build:all`). The editable-install path runs this hook even when
|
|
46
|
+
# skip-if-exists matches, and wasm-pack is intentionally not installed
|
|
47
|
+
# outside the build-viewarr CI job. Build viewarr first (see root README).
|
|
48
|
+
build_cmd = "build"
|
|
37
49
|
|
|
38
50
|
[tool.pytest.ini_options]
|
|
39
51
|
testpaths = ["tests"]
|