Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
check-pr-template:
name: Check PR template
permissions:
pull-requests: read
contents: read
uses: beeware/.github/.github/workflows/pr-checklist.yml@84508d17a1d29ee3b82ce2e467dcd38c4a0c6a5a # main
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
- name: Install Dependencies
run: |
python -m pip install -U pip
python -m pip install --pre -f ./dist WebView2.runtime
python -m pip install --pre -f ./dist dotnet-WebView2.WinForms

- name: Test package
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
gh release create "${GITHUB_REF_NAME}" \
--title "${VERSION}" \
--notes "v${VERSION} of the Microsoft WebView2 runtime." \
--notes "Includes v${VERSION} of the Microsoft WebView2 runtime." \
--draft \
--verify-tag \
dist/*
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
with:
repository: ${{ github.repository }}
fetch-depth: 0 # Fetch all refs so update.py can compare against release tags
# Don't persist the token in .git/config (avoids the artipacked
# credential-leak vector); pushes are authenticated via the gh
# credential helper configured in "Configure git" below.
persist-credentials: false

- name: Set up Python
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# WebView2.runtime

**NOTE: This project has been renamed `dotNET.WebView2.WinForms`**
# dotnet-WebView2.WinForms

[<img src="http://beeware.org/static/images/defaultlogo.png" width="72px" alt="Generic BeeWare Logo">](https://beeware.org/)

[![Python Versions](https://img.shields.io/pypi/pyversions/WebView2.runtime.svg)](https://pypi.python.org/pypi/WebView2.runtime) [![PyPI Version](https://img.shields.io/pypi/v/WebView2.runtime.svg)](https://pypi.python.org/pypi/WebView2.runtime) [![Maturity](https://img.shields.io/pypi/status/WebView2.runtime.svg)](https://pypi.python.org/pypi/WebView2.runtime) [![BSD License](https://img.shields.io/pypi/l/WebView2.runtime.svg)](https://github.com/beeware/WebView2.runtime/blob/main/LICENSE) [![Discord server](https://img.shields.io/discord/836455665257021440?label=Discord%20Chat&logo=discord&style=plastic)](https://beeware.org/bee/chat/)
[![Python Versions](https://img.shields.io/pypi/pyversions/dotnet-WebView2.WinForms.svg)](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [![PyPI Version](https://img.shields.io/pypi/v/dotnet-WebView2.WinForms.svg)](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [![Maturity](https://img.shields.io/pypi/status/dotnet-WebView2.WinForms.svg)](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [![BSD License](https://img.shields.io/pypi/l/dotnet-WebView2.WinForms.svg)](https://github.com/beeware/dotnet-WebView2.WinForms/blob/main/LICENSE) [![Discord server](https://img.shields.io/discord/836455665257021440?label=Discord%20Chat&logo=discord&style=plastic)](https://beeware.org/bee/chat/)

This is the [Microsoft WebView2 runtime](https://www.nuget.org/packages/Microsoft.Web.WebView2) binaries, packaged with a light [Python.NET](http://pythonnet.github.io) wrapper, to enable easy use of WebView2 in Winforms applications.
This package contains the [Microsoft.Web.WebView2](https://www.nuget.org/packages/Microsoft.Web.WebView2) binaries, packaged with a light [Python.NET](http://pythonnet.github.io) wrapper. It provides a WebView2 WinForms control.

For details on usage and distribution, see [the Microsoft WebView2 documentation](https://docs.microsoft.com/en-us/microsoft-edge/webview2/)

Before use, the end-user must have the WebView2 Runtime installed. [Details can be found here](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section).

## Usage

Once installed in an environment that also has Python.NET installed, importing the WebView2 package will load the WebView2 assemblies. The `Microsoft.Web.WebView2` libraries can then be imported and used:
Once installed in an environment that also has Python.NET installed, importing the `WebView2` package will load the WebView2 assemblies. The `Microsoft.Web.WebView2` libraries can then be imported and used:

# Load the WebView2 assemblies
import WebView2
Expand Down Expand Up @@ -49,4 +47,4 @@ We foster a welcoming and respectful community as described in our [BeeWare Comm

## Contributing

If you experience problems with this package, [log them on GitHub](https://github.com/beeware/WebView2.runtime/issues). If you want to contribute, please [fork the project](https://github.com/beeware/WebView2.runtime) and [submit a pull request](https://github.com/beeware/WebView2.runtime/pulls).
If you experience problems with this package, [log them on GitHub](https://github.com/beeware/dotnet-WebView2.WinForms/issues). If you want to contribute, please [fork the project](https://github.com/beeware/dotnet-WebView2.WinForms) and [submit a pull request](https://github.com/beeware/dotnet-WebView2.WinForms/pulls).
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ requires = [
build-backend = "setuptools.build_meta"

[project]
name = "WebView2.runtime"
name = "dotnet-WebView2.WinForms"
dynamic = ["version"]
description = "A Python package providing the Microsoft.Web.WebView2 runtime DLLs"
description = "Python.NET bindings to the Microsoft.Web.WebView2 Winforms component"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
Expand Down Expand Up @@ -37,10 +37,10 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/beeware/WebView2.runtime"
Homepage = "https://github.com/beeware/dotnet-WebView2.WinForms"
Funding = "https://beeware.org/contributing/membership/"
Tracker = "https://github.com/beeware/WebView2.runtime/issues"
Source = "https://github.com/beeware/WebView2.runtime"
Tracker = "https://github.com/beeware/dotnet-WebView2.WinForms/issues"
Source = "https://github.com/beeware/dotnet-WebView2.WinForms"

[dependency-groups]
# Extras used by developers *of* this library are pinned to specific versions to
Expand Down
2 changes: 1 addition & 1 deletion src/WebView2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import clr

__version__ = version("WebView2.runtime")
__version__ = version("dotnet-WebView2.WinForms")

WEBVIEW2_DIR = Path(__file__).parent

Expand Down