pyvis-optimized 4.3.1__tar.gz → 4.5.0__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.
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/CHANGELOG.md +87 -19
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/MANIFEST.in +0 -1
- {pyvis_optimized-4.3.1/pyvis_optimized.egg-info → pyvis_optimized-4.5.0}/PKG-INFO +9 -9
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/README.md +6 -5
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyproject.toml +4 -5
- pyvis_optimized-4.5.0/pyvis/_version.py +1 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/network.py +745 -189
- pyvis_optimized-4.5.0/pyvis/node.py +63 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/shiny/__init__.py +8 -3
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/shiny/bindings.js +17 -1
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/shiny/wrapper.py +72 -7
- pyvis_optimized-4.5.0/pyvis/templates/lib/vis-10.1.2/vis-network.min.css +2 -0
- pyvis_optimized-4.5.0/pyvis/templates/lib/vis-10.1.2/vis-network.min.js +78 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/templates/template.html +3 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/base.py +9 -2
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/common.py +13 -2
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/edges.py +5 -1
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/nodes.py +4 -1
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/physics.py +9 -1
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/utils.py +2 -2
- pyvis_optimized-4.5.0/pyvis/vis_config.py +57 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0/pyvis_optimized.egg-info}/PKG-INFO +9 -9
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis_optimized.egg-info/SOURCES.txt +2 -2
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis_optimized.egg-info/requires.txt +1 -1
- pyvis_optimized-4.3.1/pyvis/_version.py +0 -1
- pyvis_optimized-4.3.1/pyvis/node.py +0 -35
- pyvis_optimized-4.3.1/pyvis/templates/lib/vis-10.0.2/vis-network.min.css +0 -2
- pyvis_optimized-4.3.1/pyvis/templates/lib/vis-10.0.2/vis-network.min.js +0 -78
- pyvis_optimized-4.3.1/pyvis/vis_config.py +0 -24
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/LICENSE_BSD.txt +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/examples/edge_attribute_editing_example.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/examples/shiny_demo.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/examples/shiny_editor_demo.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/examples/shiny_simple_demo.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/01_basics.ipynb +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/02_networkx.ipynb +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/03_typed_options.ipynb +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/04_advanced.ipynb +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/NetworkOfThrones.csv +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/notebooks/test.dot +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/__init__.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/edge.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/shiny/styles.css +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/templates/lib/bindings/utils.js +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/templates/lib/tom-select/tom-select.complete.min.js +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/templates/lib/tom-select/tom-select.css +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/__init__.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/configure.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/interaction.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/layout.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/manipulation.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis/types/network.py +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis_optimized.egg-info/dependency_links.txt +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/pyvis_optimized.egg-info/top_level.txt +0 -0
- {pyvis_optimized-4.3.1 → pyvis_optimized-4.5.0}/setup.cfg +0 -0
|
@@ -4,6 +4,93 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [4.5.0] - 2026-10-24
|
|
8
|
+
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
- **Duplicate node ids raise.** `add_node()` (and so `add_nodes()`/`from_nx()`)
|
|
11
|
+
raises `ValueError` when the id already exists, instead of warning and
|
|
12
|
+
ignoring the call. This reverses 4.3.0's "warn on duplicate nodes"; use
|
|
13
|
+
`update_node()` to change an existing node.
|
|
14
|
+
- **`Font(align="right")` is rejected.** vis-network honours `center`/`left`
|
|
15
|
+
for node labels and `horizontal`/`top`/`middle`/`bottom` for edge labels;
|
|
16
|
+
`NodeOptions`/`EdgeOptions` now raise `ValueError` for an align that does
|
|
17
|
+
nothing on that element.
|
|
18
|
+
- **`show()` follows `Network(notebook=...)`.** It used to default to notebook
|
|
19
|
+
mode regardless of the constructor. Since `Network()` defaults to
|
|
20
|
+
`notebook=False`, a bare `net.show("g.html")` in Jupyter now opens a browser
|
|
21
|
+
tab instead of returning an inline IFrame (a warning is emitted when a
|
|
22
|
+
Jupyter kernel is detected). Use `Network(notebook=True)` or
|
|
23
|
+
`show(..., notebook=True)` in notebooks.
|
|
24
|
+
- **`update_node(font_color=...)`** now sets the label colour instead of
|
|
25
|
+
storing a stray `font_color` key.
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- Graph query helpers: `get_node_ids()`, `get_edge_ids()`, `get_neighbors()`,
|
|
29
|
+
`get_node_degree()` and `has_edge()`.
|
|
30
|
+
- `CDNResource` enum in `pyvis.vis_config` (string-compatible) for
|
|
31
|
+
`cdn_resources`.
|
|
32
|
+
- `update_node()`/`update_edge()` accept a plain dict as `options=`, like
|
|
33
|
+
`add_node()`/`add_edge()`.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- **Label colour precedence is the same on every path:** a per-node
|
|
37
|
+
`font_color` beats a colour inside `font`, which beats
|
|
38
|
+
`Network(font_color=...)`. Previously the plain-kwargs path let the network
|
|
39
|
+
colour overwrite `font={"color": ...}`.
|
|
40
|
+
- A string `font` such as `"14px arial"` is kept as given instead of being
|
|
41
|
+
replaced by `{"color": ...}`; a `font_color` passed with it is ignored with a
|
|
42
|
+
warning.
|
|
43
|
+
- `add_nodes(options=dict)` behaves like `add_nodes(options=NodeOptions(...))`
|
|
44
|
+
and no longer injects the default `shape`/`color`.
|
|
45
|
+
- `set_group()` styling now reaches vis-network (merged into
|
|
46
|
+
`options.groups`), and a node with a `group` no longer has `shape="dot"`
|
|
47
|
+
forced on it; groups without a shape still render as dots.
|
|
48
|
+
- `add_legend(step_x=..., step_y=...)` is deprecated; both never had an effect.
|
|
49
|
+
- Edge lookups in `update_edge()`/`remove_edge()` use an index (O(1)).
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
- `add_nodes()` options paths coerce numpy ids, deep-copy options per node and
|
|
53
|
+
no longer validate kwargs they then ignore.
|
|
54
|
+
- `font_color` inside an `options` dict is applied instead of stored as a
|
|
55
|
+
stray key; caller `font` and edge option dicts are no longer mutated.
|
|
56
|
+
- `from_nx()` drops an edge `options` attribute as it already did for nodes.
|
|
57
|
+
- `get_network_json()` warns for DOT networks; `generate_html()` warns when
|
|
58
|
+
`edge_attribute_edit` overrides `manipulation.enabled=False`.
|
|
59
|
+
- Legend edges draw `from` and `both` arrowheads.
|
|
60
|
+
- Shiny: `cluster_node_properties` is sent as vis.js `clusterNodeProperties`
|
|
61
|
+
(it was silently ignored) and `stabilize(iterations=0)` is honoured.
|
|
62
|
+
- Docs: tutorial, install guide, API reference, Shiny guide and developer docs
|
|
63
|
+
match the current API.
|
|
64
|
+
- Packaging: `notebooks/lib` re-synced with the package (tom-select 2.4.3),
|
|
65
|
+
conda recipes check the same files, `environment.yml` uses `shiny>=1.0`.
|
|
66
|
+
|
|
67
|
+
## [4.4.0] - 2026-09-06
|
|
68
|
+
|
|
69
|
+
### Breaking Changes
|
|
70
|
+
- **Python 3.10 is now the minimum.** 3.9 is dropped. Under 3.9 the resolver
|
|
71
|
+
silently installed Shiny 1.5.0 while development targeted 1.7.0, so the
|
|
72
|
+
version actually being tested was not the version being shipped.
|
|
73
|
+
|
|
74
|
+
### Added
|
|
75
|
+
- `network_destroy(session, output_id)` and `PyVisNetworkController.destroy()`
|
|
76
|
+
tear down the client-side network without removing its element. Intended for
|
|
77
|
+
`session.on_destroy` / `session.on_ended`, so a closing session releases the
|
|
78
|
+
vis instance instead of leaving it registered.
|
|
79
|
+
- End-to-end tests that run a real Shiny app in a real browser, covering the
|
|
80
|
+
module UI, the namespaced output id, and the `show_controls` physics path.
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
- A resize callback scheduled just before teardown no longer runs against a
|
|
84
|
+
destroyed network. Disconnecting the ResizeObserver stops new callbacks but
|
|
85
|
+
does not cancel a pending debounce timer, so the late call raised "Cannot
|
|
86
|
+
read properties of undefined (reading 'setSize')" during a re-render.
|
|
87
|
+
- The browser test harness now loads `styles.css`, so the flex layout the
|
|
88
|
+
canvas sizing depends on is present and resize behaviour is observed
|
|
89
|
+
faithfully rather than against collapsed block flow.
|
|
90
|
+
|
|
91
|
+
### Changed
|
|
92
|
+
- Bundled vis-network upgraded from 10.0.2 to 10.1.2.
|
|
93
|
+
|
|
7
94
|
## [4.3.1] - 2026-09-06
|
|
8
95
|
|
|
9
96
|
Packaging-only release. 4.3.0 was tagged but never published: both publish
|
|
@@ -33,25 +120,6 @@ described under 4.3.0 below ships here instead.
|
|
|
33
120
|
- pass font_color to template and validate against CSS injection
|
|
34
121
|
|
|
35
122
|
### Fixed
|
|
36
|
-
- preserve per-node font_color through from_nx
|
|
37
|
-
- validate every Literal field, correct font align and arrow type sets
|
|
38
|
-
- release listeners and registry entries when a network output is cleared or removed
|
|
39
|
-
- null args, command queueing, container sizing, config fallback and configChange
|
|
40
|
-
- keep numeric node ids intact in updateData, search restore and edge editing
|
|
41
|
-
- drop unsupported cluster() and omit absent arguments instead of sending null
|
|
42
|
-
- correct update_data and package docstrings, pin the output config attribute
|
|
43
|
-
- resolve module namespaces for controller and standalone network commands
|
|
44
|
-
- apply module physics toggle on a copy and only when the control is rendered
|
|
45
|
-
- build module networks from the documented dict spec
|
|
46
|
-
- drop dead configure plumbing and repair the edge editing example
|
|
47
|
-
- isolate get_network_json, harden edge keys and from_nx, correct docstrings
|
|
48
|
-
- copy local lib resources beside the HTML file and refresh stale copies
|
|
49
|
-
- detect cycles and validate dict keys in from_nx numpy coercion
|
|
50
|
-
- recurse into lists/dicts when coercing numpy scalars in from_nx
|
|
51
|
-
- accept plain dict options in add_node/add_edge and apply font_color on the typed path
|
|
52
|
-
- coerce numpy scalars in from_nx instead of dropping attributes
|
|
53
|
-
- load the notebook template lazily in generate_html
|
|
54
|
-
- render when physics is a bool or a node title is not a string
|
|
55
123
|
- parameterize collection types, constrain Literal fields, add type guard tests, fix layout doctype
|
|
56
124
|
- CI subshell bug, duplicate tests, float string conversion, addEventListener, legend validation, renames cache, recipe guards
|
|
57
125
|
- add error context to write_html file operations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyvis-optimized
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.0
|
|
4
4
|
Summary: A Python network graph visualization library - Optimized Edition
|
|
5
5
|
Author-email: Jose Unpingco <datascience@westhealth.org>
|
|
6
6
|
Maintainer: PyVis Contributors
|
|
@@ -17,21 +17,20 @@ Classifier: Intended Audience :: Science/Research
|
|
|
17
17
|
Classifier: License :: OSI Approved :: BSD License
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
24
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.10
|
|
28
27
|
Description-Content-Type: text/markdown
|
|
29
28
|
License-File: LICENSE_BSD.txt
|
|
30
29
|
Requires-Dist: jinja2>=2.9.6
|
|
31
30
|
Requires-Dist: networkx>=1.11
|
|
32
31
|
Requires-Dist: jsonpickle>=1.4.1
|
|
33
32
|
Provides-Extra: shiny
|
|
34
|
-
Requires-Dist: shiny>=
|
|
33
|
+
Requires-Dist: shiny>=1.0; extra == "shiny"
|
|
35
34
|
Requires-Dist: htmltools; extra == "shiny"
|
|
36
35
|
Provides-Extra: notebook
|
|
37
36
|
Requires-Dist: ipython>=5.3.0; extra == "notebook"
|
|
@@ -70,7 +69,7 @@ PyVis is a Python library for creating and visualizing interactive network graph
|
|
|
70
69
|
|
|
71
70
|
## Installation
|
|
72
71
|
|
|
73
|
-
**Requires Python >= 3.
|
|
72
|
+
**Requires Python >= 3.10**
|
|
74
73
|
|
|
75
74
|
```bash
|
|
76
75
|
pip install pyvis-optimized
|
|
@@ -102,7 +101,7 @@ pip install .
|
|
|
102
101
|
| [jinja2](https://jinja.palletsprojects.com/) >= 2.9.6 | HTML template rendering |
|
|
103
102
|
| [jsonpickle](https://jsonpickle.github.io/) >= 1.4.1 | JSON serialization |
|
|
104
103
|
|
|
105
|
-
Optional: [ipython](https://ipython.org/) >= 5.3.0 (`pyvis-optimized[notebook]`), [shiny](https://shiny.posit.co/py/) >=
|
|
104
|
+
Optional: [ipython](https://ipython.org/) >= 5.3.0 (`pyvis-optimized[notebook]`), [shiny](https://shiny.posit.co/py/) >= 1.0 and [htmltools](https://pypi.org/project/htmltools/) (`pyvis-optimized[shiny]`)
|
|
106
105
|
|
|
107
106
|
## Quick Start
|
|
108
107
|
|
|
@@ -228,14 +227,15 @@ See the [Shiny Integration Guide](docs/SHINY_INTEGRATION_GUIDE.md) for complete
|
|
|
228
227
|
|
|
229
228
|
- **[API Reference](docs/API_REFERENCE.md)** — Complete reference for Network class, typed options (44 dataclasses), Shiny integration, and all public methods
|
|
230
229
|
- **[Shiny Integration Guide](docs/SHINY_INTEGRATION_GUIDE.md)** — Detailed guide for using PyVis with Shiny for Python
|
|
230
|
+
- **[Releasing](docs/RELEASING.md)** — How a release is cut and published to PyPI and anaconda.org, and how to retry a failed one
|
|
231
231
|
|
|
232
232
|
## Testing
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
|
-
pytest pyvis/tests/ --ignore=pyvis/tests/test_html.py -v
|
|
235
|
+
pytest pyvis/tests/ --ignore=pyvis/tests/test_html.py --ignore=pyvis/tests/test_bindings_js.py --ignore=pyvis/tests/test_shiny_e2e.py -v
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
That command runs
|
|
238
|
+
That command runs the non-browser tests (the same set CI's `test` job runs), covering core network operations, typed options, Shiny integration, security, error handling, and regression tests for edge cases. The three ignored files are the Playwright browser tests, which need `pip install pyvis-optimized[test]` followed by `python -m playwright install chromium`. Run `pytest --co -q` for the current counts.
|
|
239
239
|
|
|
240
240
|
## Versioning
|
|
241
241
|
|
|
@@ -260,7 +260,7 @@ pyvis/
|
|
|
260
260
|
shiny/ # Shiny for Python integration
|
|
261
261
|
wrapper.py # Controller, standalone functions, rendering
|
|
262
262
|
bindings.js # JavaScript binding for vis-network
|
|
263
|
-
tests/ #
|
|
263
|
+
tests/ # Test suite (see `pytest --co` for the current count)
|
|
264
264
|
auto_version.py # Version bump + changelog + tag script
|
|
265
265
|
```
|
|
266
266
|
|
|
@@ -17,7 +17,7 @@ PyVis is a Python library for creating and visualizing interactive network graph
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
-
**Requires Python >= 3.
|
|
20
|
+
**Requires Python >= 3.10**
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
pip install pyvis-optimized
|
|
@@ -49,7 +49,7 @@ pip install .
|
|
|
49
49
|
| [jinja2](https://jinja.palletsprojects.com/) >= 2.9.6 | HTML template rendering |
|
|
50
50
|
| [jsonpickle](https://jsonpickle.github.io/) >= 1.4.1 | JSON serialization |
|
|
51
51
|
|
|
52
|
-
Optional: [ipython](https://ipython.org/) >= 5.3.0 (`pyvis-optimized[notebook]`), [shiny](https://shiny.posit.co/py/) >=
|
|
52
|
+
Optional: [ipython](https://ipython.org/) >= 5.3.0 (`pyvis-optimized[notebook]`), [shiny](https://shiny.posit.co/py/) >= 1.0 and [htmltools](https://pypi.org/project/htmltools/) (`pyvis-optimized[shiny]`)
|
|
53
53
|
|
|
54
54
|
## Quick Start
|
|
55
55
|
|
|
@@ -175,14 +175,15 @@ See the [Shiny Integration Guide](docs/SHINY_INTEGRATION_GUIDE.md) for complete
|
|
|
175
175
|
|
|
176
176
|
- **[API Reference](docs/API_REFERENCE.md)** — Complete reference for Network class, typed options (44 dataclasses), Shiny integration, and all public methods
|
|
177
177
|
- **[Shiny Integration Guide](docs/SHINY_INTEGRATION_GUIDE.md)** — Detailed guide for using PyVis with Shiny for Python
|
|
178
|
+
- **[Releasing](docs/RELEASING.md)** — How a release is cut and published to PyPI and anaconda.org, and how to retry a failed one
|
|
178
179
|
|
|
179
180
|
## Testing
|
|
180
181
|
|
|
181
182
|
```bash
|
|
182
|
-
pytest pyvis/tests/ --ignore=pyvis/tests/test_html.py -v
|
|
183
|
+
pytest pyvis/tests/ --ignore=pyvis/tests/test_html.py --ignore=pyvis/tests/test_bindings_js.py --ignore=pyvis/tests/test_shiny_e2e.py -v
|
|
183
184
|
```
|
|
184
185
|
|
|
185
|
-
That command runs
|
|
186
|
+
That command runs the non-browser tests (the same set CI's `test` job runs), covering core network operations, typed options, Shiny integration, security, error handling, and regression tests for edge cases. The three ignored files are the Playwright browser tests, which need `pip install pyvis-optimized[test]` followed by `python -m playwright install chromium`. Run `pytest --co -q` for the current counts.
|
|
186
187
|
|
|
187
188
|
## Versioning
|
|
188
189
|
|
|
@@ -207,7 +208,7 @@ pyvis/
|
|
|
207
208
|
shiny/ # Shiny for Python integration
|
|
208
209
|
wrapper.py # Controller, standalone functions, rendering
|
|
209
210
|
bindings.js # JavaScript binding for vis-network
|
|
210
|
-
tests/ #
|
|
211
|
+
tests/ # Test suite (see `pytest --co` for the current count)
|
|
211
212
|
auto_version.py # Version bump + changelog + tag script
|
|
212
213
|
```
|
|
213
214
|
|
|
@@ -7,7 +7,7 @@ name = "pyvis-optimized"
|
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
description = "A Python network graph visualization library - Optimized Edition"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
11
|
license = {text = "BSD"}
|
|
12
12
|
authors = [
|
|
13
13
|
{name = "Jose Unpingco", email = "datascience@westhealth.org"}
|
|
@@ -23,7 +23,6 @@ classifiers = [
|
|
|
23
23
|
"License :: OSI Approved :: BSD License",
|
|
24
24
|
"Operating System :: OS Independent",
|
|
25
25
|
"Programming Language :: Python :: 3",
|
|
26
|
-
"Programming Language :: Python :: 3.9",
|
|
27
26
|
"Programming Language :: Python :: 3.10",
|
|
28
27
|
"Programming Language :: Python :: 3.11",
|
|
29
28
|
"Programming Language :: Python :: 3.12",
|
|
@@ -41,7 +40,7 @@ dependencies = [
|
|
|
41
40
|
[project.optional-dependencies]
|
|
42
41
|
# Shiny integration support
|
|
43
42
|
shiny = [
|
|
44
|
-
"shiny>=
|
|
43
|
+
"shiny>=1.0",
|
|
45
44
|
"htmltools",
|
|
46
45
|
]
|
|
47
46
|
|
|
@@ -105,7 +104,7 @@ python_functions = "test_*"
|
|
|
105
104
|
|
|
106
105
|
[tool.black]
|
|
107
106
|
line-length = 100
|
|
108
|
-
target-version = ['
|
|
107
|
+
target-version = ['py310', 'py311', 'py312', 'py313']
|
|
109
108
|
include = '\.pyi?$'
|
|
110
109
|
exclude = '''
|
|
111
110
|
/(
|
|
@@ -122,7 +121,7 @@ exclude = '''
|
|
|
122
121
|
'''
|
|
123
122
|
|
|
124
123
|
[tool.mypy]
|
|
125
|
-
python_version = "3.
|
|
124
|
+
python_version = "3.10"
|
|
126
125
|
warn_return_any = true
|
|
127
126
|
warn_unused_configs = true
|
|
128
127
|
disallow_untyped_defs = false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.5.0'
|