@@ -20,7 +20,7 @@ pip install webview_python
20
20
### Display Inline HTML:
21
21
22
22
``` python
23
- from webview import Webview
23
+ from webview.webview import Webview
24
24
from urllib.parse import quote
25
25
26
26
html = """
@@ -38,7 +38,7 @@ webview.run()
38
38
### Load Local HTML File:
39
39
40
40
``` python
41
- from webview import Webview
41
+ from webview.webview import Webview
42
42
import os
43
43
44
44
webview = Webview()
@@ -51,7 +51,7 @@ webview.run()
51
51
### Load Remote URL:
52
52
53
53
``` python
54
- from webview import Webview
54
+ from webview.webview import Webview
55
55
webview = Webview()
56
56
webview.navigate(" https://www.python.org" )
57
57
webview.run()
@@ -60,7 +60,7 @@ webview.run()
60
60
### Python-JavaScript Bindings:
61
61
62
62
``` python
63
- from webview import Webview, Size, SizeHint
63
+ from webview.webview import Webview, Size, SizeHint
64
64
from urllib.parse import quote
65
65
66
66
webview = Webview(debug = True )
@@ -169,8 +169,19 @@ webview_python/
169
169
### Release Process
170
170
171
171
For maintainers who want to release a new version:
172
+ 1 . ** Test**
173
+ ``` bash
174
+ # Install dependencies if not installed
175
+ pip install -r requirements.txt
176
+
177
+ # Run tests
178
+ pytest
179
+
180
+ # Build wheels
181
+ python -m build -n -w
182
+ ```
172
183
173
- 1 . ** Update Version**
184
+ 2 . ** Update Version**
174
185
``` bash
175
186
# Ensure you have the latest code
176
187
git pull origin main
@@ -179,7 +190,7 @@ For maintainers who want to release a new version:
179
190
# Edit version = "x.y.z" to new version number
180
191
```
181
192
182
- 2 . ** Create Release**
193
+ 3 . ** Create Release**
183
194
``` bash
184
195
# Commit changes
185
196
old_version=0.99.0
@@ -197,7 +208,7 @@ For maintainers who want to release a new version:
197
208
--notes " Full Changelog: https://github.com/congzhangzh/webview_python/compare/v${old_version} ...v${new_version} "
198
209
```
199
210
200
- 3 . ** Monitor Release**
211
+ 4 . ** Monitor Release**
201
212
- Check GitHub Actions progress in the Actions tab
202
213
- Verify package on PyPI after workflow completion
203
214
0 commit comments