diff --git a/.github/workflows/check-pr-template.yml b/.github/workflows/check-pr-template.yml index 54e66f4..0382c56 100644 --- a/.github/workflows/check-pr-template.yml +++ b/.github/workflows/check-pr-template.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aac479b..5f3ef35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4df3a1..492933b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/* diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index e433d26..582d2f8 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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 diff --git a/README.md b/README.md index f268e57..015d6cb 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ -# WebView2.runtime - -**NOTE: This project has been renamed `dotNET.WebView2.WinForms`** +# dotnet-WebView2.WinForms [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/) @@ -14,7 +12,7 @@ Before use, the end-user must have the WebView2 Runtime installed. [Details can ## 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 @@ -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). diff --git a/pyproject.toml b/pyproject.toml index d34a6c2..5323a05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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 diff --git a/src/WebView2/__init__.py b/src/WebView2/__init__.py index 29a7c99..557da71 100644 --- a/src/WebView2/__init__.py +++ b/src/WebView2/__init__.py @@ -5,7 +5,7 @@ import clr -__version__ = version("WebView2.runtime") +__version__ = version("dotnet-WebView2.WinForms") WEBVIEW2_DIR = Path(__file__).parent