-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (83 loc) · 2.98 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (83 loc) · 2.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "shiny-plotly"
version = "0.4.0"
description = "Render plotly figures in Shiny for Python with plain plotly.js, without the shinywidgets layer."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Ruben J. Jongejan", email = "ruben.jongejan@gmail.com" },
]
keywords = ["shiny", "plotly", "dashboard", "render", "html"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Visualization",
"Typing :: Typed",
]
# The floor is what `make check-floor` installs and tests: plotly 5.5 is the first with
# to_html(div_id=...), shiny 1.0 is the oldest release the suite runs against, and
# htmltools 0.5.2 is what shiny 1.0 itself requires.
dependencies = [
"shiny>=1.0",
"plotly>=5.5",
"htmltools>=0.5.2",
# plotly.min.js is served brotli-compressed, about 17% smaller than gzip. Under pyodide
# there is nothing to compress (the bundle comes from the shinylive export) and the route
# is skipped, so the marker keeps a 307 kB wasm wheel out of every exported app.
"brotli>=1.1; sys_platform != 'emscripten'",
]
[project.urls]
Homepage = "https://github.com/rvben/shiny-plotly"
Repository = "https://github.com/rvben/shiny-plotly"
Changelog = "https://github.com/rvben/shiny-plotly/blob/main/CHANGELOG.md"
Issues = "https://github.com/rvben/shiny-plotly/issues"
[dependency-groups]
bench = [
"anywidget>=0.11.0",
"shinywidgets>=0.8.1",
]
dev = [
"pytest>=8",
"pytest-cov>=5",
"ruff>=0.6",
"pyright>=1.1.380",
"httpx2>=2.12.0",
"pytest-playwright>=0.9.0",
"numpy>=1.26",
"shinylive-check>=0.1.0",
]
# uv's default cache keys for a local build are the metadata files only, so a source-only
# change would keep serving the previously built wheel to `uv pip install .` (check-floor
# once tested a stale build that way). Key the cache on the shipped source too.
[tool.uv]
cache-keys = [{ file = "pyproject.toml" }, { file = "src/**/*" }]
[tool.hatch.build.targets.wheel]
packages = ["src/shiny_plotly"]
[tool.hatch.build.targets.sdist]
include = ["src/shiny_plotly", "tests", "examples", "README.md", "CHANGELOG.md", "LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = ["error"]
markers = ["browser: drives the package in a real Chromium through playwright"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.pyright]
include = ["src", "tests", "examples", "bench", "tools"]
pythonVersion = "3.10"
typeCheckingMode = "standard"
[tool.ruff.lint.isort]
known-local-folder = ["helpers", "newplot"]