Skip to content

Commit 4de262e

Browse files
committed
minor fix
1 parent d8bdb4d commit 4de262e

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pip install webview_python
2020
### Display Inline HTML:
2121

2222
```python
23-
from webview import Webview
23+
from webview.webview import Webview
2424
from urllib.parse import quote
2525

2626
html = """
@@ -38,7 +38,7 @@ webview.run()
3838
### Load Local HTML File:
3939

4040
```python
41-
from webview import Webview
41+
from webview.webview import Webview
4242
import os
4343

4444
webview = Webview()
@@ -51,7 +51,7 @@ webview.run()
5151
### Load Remote URL:
5252

5353
```python
54-
from webview import Webview
54+
from webview.webview import Webview
5555
webview = Webview()
5656
webview.navigate("https://www.python.org")
5757
webview.run()
@@ -60,7 +60,7 @@ webview.run()
6060
### Python-JavaScript Bindings:
6161

6262
```python
63-
from webview import Webview, Size, SizeHint
63+
from webview.webview import Webview, Size, SizeHint
6464
from urllib.parse import quote
6565

6666
webview = Webview(debug=True)
@@ -169,8 +169,19 @@ webview_python/
169169
### Release Process
170170

171171
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+
```
172183

173-
1. **Update Version**
184+
2. **Update Version**
174185
```bash
175186
# Ensure you have the latest code
176187
git pull origin main
@@ -179,7 +190,7 @@ For maintainers who want to release a new version:
179190
# Edit version = "x.y.z" to new version number
180191
```
181192

182-
2. **Create Release**
193+
3. **Create Release**
183194
```bash
184195
# Commit changes
185196
old_version=0.99.0
@@ -197,7 +208,7 @@ For maintainers who want to release a new version:
197208
--notes "Full Changelog: https://github.com/congzhangzh/webview_python/compare/v${old_version}...v${new_version}"
198209
```
199210

200-
3. **Monitor Release**
211+
4. **Monitor Release**
201212
- Check GitHub Actions progress in the Actions tab
202213
- Verify package on PyPI after workflow completion
203214

0 commit comments

Comments
 (0)