pytest-ipywidgets 1.31.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.
@@ -0,0 +1,89 @@
1
+ *.o
2
+ *.so
3
+ *.mkv
4
+ *.mk4
5
+ #/*.png
6
+ *.eps
7
+ *.pgm
8
+ *.pdf
9
+ *.fld
10
+ *.vtk
11
+ *.mp4
12
+ */**/*.pyc
13
+ *.pyc
14
+ jenkins/jenkins.war
15
+ /nosetests.xml
16
+ /.idea
17
+ misc/experiments/
18
+ /.coverage
19
+ /coverage.xml
20
+
21
+
22
+ Untitled*.ipynb
23
+
24
+ /experiments/*
25
+ /htmlcov
26
+
27
+ InterestingSubspacesNew.txt
28
+ Makefile.in
29
+ config.guess
30
+ config.sub
31
+ libtool
32
+ ltmain.sh
33
+ m4/libtool.m4
34
+ m4/ltoptions.m4
35
+ m4/ltversion.m4
36
+ m4/lt~obsolete.m4
37
+ aclocal.m4
38
+ autom4te.cache
39
+ config.h
40
+ config.h.in
41
+ config.log
42
+ config.status
43
+ configure
44
+ depcomp
45
+ install-sh
46
+ missing
47
+ src/.deps/
48
+ src/.libs
49
+ src/Makefile
50
+ src/Makefile.in
51
+ src/libsubfind.a
52
+ subspacefind*.tar.gz
53
+ src/subspacefind?la*
54
+ **/*.pyc
55
+ data/*
56
+ build/
57
+ doc
58
+ docs/build
59
+ meeting
60
+ #misc
61
+ /**/.DS_Store
62
+ /**/.ipynb_checkpoints
63
+ #app
64
+ dist
65
+ lib
66
+ python/.idea
67
+ test/.idea
68
+ venv
69
+ .venv
70
+ tmp
71
+ python/vaex/version.py # gets generated
72
+ **/*.egg-info/
73
+ .eggs/
74
+ bin/.idea
75
+ *.npy
76
+ __pycache__
77
+ .vscode
78
+
79
+ # output file from the docs
80
+ build/
81
+
82
+ ./tmp
83
+ ./examples
84
+ node_modules
85
+ packages/assets/cdn
86
+ packages/assets/dist/*
87
+
88
+ solara-env
89
+ states
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Maarten A. Breddels
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.3
2
+ Name: pytest-ipywidgets
3
+ Version: 1.31.0
4
+ Dynamic: Summary
5
+ Project-URL: Home, https://github.com/widgetti/solara/tree/master/packages/pytest-ipywidgets
6
+ Project-URL: Documentation, https://solara.dev
7
+ Author-email: "Maarten A. Breddels" <maartenbreddels@gmail.com>
8
+ License: The MIT License (MIT)
9
+
10
+ Copyright (c) 2022 Maarten A. Breddels
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in
20
+ all copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28
+ THE SOFTWARE.
29
+ License-File: LICENSE
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Requires-Dist: pillow
32
+ Requires-Dist: pixelmatch
33
+ Requires-Dist: playwright; python_version > '3.6'
34
+ Requires-Dist: pytest
35
+ Requires-Dist: pytest-playwright; python_version > '3.6'
36
+ Requires-Dist: solara-server[starlette]==1.31.0
37
+ Requires-Dist: solara-ui==1.31.0
38
+ Provides-Extra: all
39
+ Requires-Dist: pytest-ipywidgets[jupyterlab]; extra == 'all'
40
+ Requires-Dist: pytest-ipywidgets[notebook]; extra == 'all'
41
+ Requires-Dist: pytest-ipywidgets[voila]; extra == 'all'
42
+ Provides-Extra: jupyterlab
43
+ Requires-Dist: jupyterlab<4; extra == 'jupyterlab'
44
+ Provides-Extra: notebook
45
+ Requires-Dist: notebook<7; extra == 'notebook'
46
+ Provides-Extra: solara
47
+ Provides-Extra: voila
48
+ Requires-Dist: voila; extra == 'voila'
49
+ Description-Content-Type: text/markdown
50
+
51
+ Test ipywidgets with playwright and pytest.
52
+
53
+
54
+ # Installation
55
+
56
+ ```bash
57
+ pip install "pytest-ipywidgets[all]"
58
+ ```
59
+
60
+ *(Note that the optional `[all]` installs all dependencies, including compatible versions of notebook, jupyterlab and voila.)*
61
+
62
+ # Usage
63
+
64
+ ## Using solara-server (in-process)
65
+
66
+ If you want to test your ipywidgets with playwright in-process, you can use the `solara_test` fixture, use `display` to
67
+ show your widget in the browser.
68
+
69
+ ```python
70
+ import ipywidgets as widgets
71
+ import playwright.sync_api
72
+ from IPython.display import display
73
+
74
+ def test_widget_button_solara(solara_test, page_session: playwright.sync_api.Page):
75
+ # this all runs in-process
76
+ button = widgets.Button(description="Click Me!")
77
+
78
+ def change_description(obj):
79
+ button.description = "Tested event"
80
+
81
+ button.on_click(change_description)
82
+ display(button)
83
+ button_sel = page_session.locator("text=Click Me!")
84
+ button_sel.wait_for()
85
+ button_sel.click()
86
+ page_session.locator("text=Tested event").wait_for()
87
+ ```
88
+
89
+ # Testing in the main Jupyter Environments (Notebook, Lab, Voila & Solara)
90
+
91
+ See https://solara.dev/documentation/advanced/howto/testing for more information.
@@ -0,0 +1,41 @@
1
+ Test ipywidgets with playwright and pytest.
2
+
3
+
4
+ # Installation
5
+
6
+ ```bash
7
+ pip install "pytest-ipywidgets[all]"
8
+ ```
9
+
10
+ *(Note that the optional `[all]` installs all dependencies, including compatible versions of notebook, jupyterlab and voila.)*
11
+
12
+ # Usage
13
+
14
+ ## Using solara-server (in-process)
15
+
16
+ If you want to test your ipywidgets with playwright in-process, you can use the `solara_test` fixture, use `display` to
17
+ show your widget in the browser.
18
+
19
+ ```python
20
+ import ipywidgets as widgets
21
+ import playwright.sync_api
22
+ from IPython.display import display
23
+
24
+ def test_widget_button_solara(solara_test, page_session: playwright.sync_api.Page):
25
+ # this all runs in-process
26
+ button = widgets.Button(description="Click Me!")
27
+
28
+ def change_description(obj):
29
+ button.description = "Tested event"
30
+
31
+ button.on_click(change_description)
32
+ display(button)
33
+ button_sel = page_session.locator("text=Click Me!")
34
+ button_sel.wait_for()
35
+ button_sel.click()
36
+ page_session.locator("text=Tested event").wait_for()
37
+ ```
38
+
39
+ # Testing in the main Jupyter Environments (Notebook, Lab, Voila & Solara)
40
+
41
+ See https://solara.dev/documentation/advanced/howto/testing for more information.
@@ -0,0 +1,56 @@
1
+ [build-system]
2
+ requires = ["hatchling==1.22.2"]
3
+ build-backend = "hatchling.build"
4
+
5
+
6
+ [project]
7
+ name = "pytest-ipywidgets"
8
+ readme = "README.md"
9
+ authors = [{name = "Maarten A. Breddels", email = "maartenbreddels@gmail.com"}]
10
+ license = {file = "LICENSE"}
11
+ classifiers = ["License :: OSI Approved :: MIT License"]
12
+ dynamic = ["description"]
13
+ version = "1.31.0"
14
+ dependencies = [
15
+ "solara-ui==1.31.0",
16
+ "solara-server[starlette]==1.31.0",
17
+ "pytest",
18
+ "playwright; python_version > '3.6'",
19
+ "pytest-playwright; python_version > '3.6'",
20
+ "pillow",
21
+ "pixelmatch",
22
+ ]
23
+
24
+ [project.urls]
25
+ Home = "https://github.com/widgetti/solara/tree/master/packages/pytest-ipywidgets"
26
+ Documentation = "https://solara.dev"
27
+
28
+ [project.optional-dependencies]
29
+ all = [
30
+ "pytest-ipywidgets[voila]",
31
+ "pytest-ipywidgets[jupyterlab]",
32
+ "pytest-ipywidgets[notebook]",
33
+ ]
34
+ # currently empty, but in the future we want to make the core package not depend
35
+ # on solara, but now we can have the docs future compatible.
36
+ solara = [
37
+ ]
38
+
39
+ voila = [
40
+ "voila",
41
+ ]
42
+ jupyterlab = [
43
+ "jupyterlab<4",
44
+ ]
45
+ notebook = [
46
+ "notebook<7",
47
+ ]
48
+
49
+ [project.entry-points.pytest11]
50
+ solara = "solara.test.pytest_plugin"
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ include = ["LICENSE"]
54
+
55
+ [tool.hatch.build.targets.sdist]
56
+ include = ["LICENSE"]