Skip to content

Commit

Permalink
0.9.0: Update wgpu-native to 0.19.4.1 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyryM authored Apr 19, 2024
1 parent c5918c2 commit 2ab7ba7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions codegen/fetch_wgpu_bins.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def download_file(url: str, local_path: str) -> None:


class Lib:
def __init__(self, src, dest=None):
def __init__(self, src: str, dest: Optional[str]=None):
self.src = src
self.dest = dest
if self.dest is None:
Expand All @@ -78,12 +78,12 @@ def __init__(self, src, dest=None):
}


def fix_name(name):
def fix_name(name: str) -> str:
return ALIASES.get(name, name)


BASE_URL = "https://github.com/gfx-rs/wgpu-native/releases/download/"
VERSION = "0.19.3.1"
VERSION = "0.19.4.1"

SYSNAME = uname().system.lower()
IS_WINDOWS = SYSNAME == "windows" or ("microsoft" in uname().release.lower())
Expand All @@ -95,7 +95,7 @@ def make_url(osname: str, arch: str) -> str:
return f"{BASE_URL}v{VERSION}/wgpu-{osname}-{arch}-release.zip"


def unzip_to(url: str, dest: str):
def unzip_to(url: str, dest: str) -> None:
print(f'Downloading release from: "{url}" -> "{dest}"')
download_file(url, "wgpu_native.zip")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "xgpu"
version = "0.8.1"
version = "0.9.0"
readme = "README.md"
requires-python = ">=3.7"
dependencies = ["cffi"]
Expand Down

0 comments on commit 2ab7ba7

Please sign in to comment.