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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyviewarr
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  License-File: LICENSE
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: anywidget<0.10,>=0.9
@@ -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
- build_cmd = "build:all"
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"]