-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (95 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (95 loc) · 3.31 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
95
96
97
98
99
100
101
102
103
104
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pymyio"
dynamic = ["version"]
description = "Python bindings for the myIO d3.js chart library"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [{ name = "Morton Analytics" }]
keywords = ["d3", "visualization", "charts", "jupyter", "anywidget", "myio"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"anywidget>=0.10.0,<0.11",
"traitlets>=5.9,<6",
"ipywidgets>=8.0",
"numpy>=1.24",
"scipy>=1.11",
]
[project.optional-dependencies]
shiny = ["shinywidgets>=0.8.0", "shiny>=1.0"]
pandas = ["pandas>=1.5"]
polars = ["polars>=0.20"]
dev = [
"pytest>=7",
"pytest-playwright>=0.5",
"pandas>=1.5",
"shinywidgets>=0.8.0",
"shiny>=1.0",
"ruff>=0.4",
]
[project.urls]
Homepage = "https://github.com/mortonanalytics/pymyIO"
Source = "https://github.com/mortonanalytics/pymyIO"
"Sister R package" = "https://github.com/mortonanalytics/myIO"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/pymyio/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/pymyio"]
# Skip the symlinks under static/ — force-include below materializes them
# from the submodule so the wheel contains a single, canonical copy.
exclude = [
"src/pymyio/static/myIOapi.js",
"src/pymyio/static/style.css",
"src/pymyio/static/lib/d3.min.js",
"src/pymyio/static/lib/d3-hexbin.js",
"src/pymyio/static/lib/d3-sankey.min.js",
]
# Materialize the engine into the wheel by following the symlinks under
# src/pymyio/static/ that point into the vendored myIO submodule. This way
# end-users who `pip install pymyio` get real files even though developers
# work from a single source of truth in vendor/myIO/.
[tool.hatch.build.targets.wheel.force-include]
"vendor/myIO/inst/htmlwidgets/myIO/myIOapi.js" = "pymyio/static/myIOapi.js"
"vendor/myIO/inst/htmlwidgets/myIO/style.css" = "pymyio/static/style.css"
"vendor/myIO/inst/htmlwidgets/lib/d3.min.js" = "pymyio/static/lib/d3.min.js"
"vendor/myIO/inst/htmlwidgets/lib/d3-hexbin.js" = "pymyio/static/lib/d3-hexbin.js"
"vendor/myIO/inst/htmlwidgets/lib/d3-sankey.min.js" = "pymyio/static/lib/d3-sankey.min.js"
"vendor/myIO/inst/myio-schema.json" = "pymyio/myio-schema.json"
# Sdist must include the submodule contents so wheels can be built from the
# tarball alone (PyPI doesn't fetch git submodules).
[tool.hatch.build.targets.sdist]
include = [
"src/pymyio",
"vendor/myIO/inst/htmlwidgets",
"vendor/myIO/inst/myio-schema.json",
"vendor/myIO/tests/fixtures/validate-conformance.json",
"vendor/myIO/LICENSE",
"tests",
"examples",
"README.md",
"LICENSE",
"pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py39"