Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (60 loc) · 2.45 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (60 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lattice-grid-jupyter"
version = "1.101.5.0"
description = "Edit a pandas DataFrame as a Lattice Grid in Jupyter, with a live round-trip back to Python."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Proprietary" }
keywords = ["jupyter", "anywidget", "pandas", "dataframe", "datagrid", "lattice-grid", "spreadsheet"]
dependencies = [
"anywidget>=0.9",
"pandas>=1.5",
"lattice-grid-pandas==1.101.5.0",
]
[project.optional-dependencies]
# large data from a Parquet file or a Polars frame (card 1618)
large = [
"duckdb>=1.0",
"pyarrow>=14",
]
dev = [
"pytest>=7",
"playwright>=1.40",
"jupyterlab>=4",
"ipykernel",
"nbconvert",
"duckdb>=1.0",
"pyarrow>=14",
"polars>=1.0",
]
[project.urls]
Homepage = "https://latticegrid.dev"
# Both this package and lattice-grid-dash have a `tests/test_smoke_browser.py`.
# Under pytest's default `prepend` import mode the second of the two to be
# collected is refused -- "import file mismatch" -- because the basename is
# already a module name. It never bit while the browser tests skipped for want
# of playwright; it bit the moment CI installed a browser and ran both suites in
# one command (BACKLOG-0001110). importlib mode imports by path, so two modules
# may share a basename.
[tool.pytest.ini_options]
addopts = "--import-mode=importlib"
# This package's pyproject sits at the monorepo root, so scope the sdist to just
# this package's own files -- otherwise hatchling sweeps in the sibling packages,
# their node_modules and the dist dir.
[tool.hatch.build.targets.sdist]
only-include = ["src/lattice_grid_jupyter", "tests", "examples", "README.md", "pyproject.toml"]
exclude = ["**/node_modules", "**/__pycache__", "**/.pytest_cache", "packages", "dist", "dist-1.41"]
# Vendor the published grid bundle into the wheel so offline=True works with no
# network at render time. Comment this block out to ship a CDN-only wheel.
[tool.hatch.build.targets.wheel]
packages = ["src/lattice_grid_jupyter"]
artifacts = [
"src/lattice_grid_jupyter/static/lattice-grid.min.js",
"src/lattice_grid_jupyter/static/lattice-grid.min.css",
]
[tool.hatch.build.targets.wheel.force-include]
"src/lattice_grid_jupyter/static/lattice-grid.min.js" = "lattice_grid_jupyter/static/lattice-grid.min.js"
"src/lattice_grid_jupyter/static/lattice-grid.min.css" = "lattice_grid_jupyter/static/lattice-grid.min.css"