Skip to content

Commit

Permalink
Bug 1764659: Add wgpu bindings to Updatebot r=jimb
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Apr 27, 2022
1 parent f251e7d commit 63ed48b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
43 changes: 43 additions & 0 deletions gfx/wgpu_bindings/moz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Version of this schema
schema: 1

bugzilla:
# Bugzilla product and component for this directory and subdirectories
product: Core
component: "Graphics: WebGPU"

# Document the source of externally hosted code
origin:

# Short name of the package/library
name: wgpu

description: A cross-platform pure-Rust graphics API, modeled on the WebGPU standard

# Full URL for the package's homepage/etc
# Usually different from repository url
url: https://github.com/gfx-rs/wgpu

# Human-readable identifier for this version/release
# Generally "version NNN", "tag SSS", "bookmark SSS"
release: commit 0b61a191

# Revision to pull in
# Must be a long or short commit SHA (long preferred)
revision: 0b61a191

license: ['MIT', 'Apache-2.0']

updatebot:
maintainer-phab: jimb
maintainer-bz: [email protected]
tasks:
- type: vendoring
enabled: true
frequency: 1 week

vendoring:
url: https://github.com/gfx-rs/wgpu
source-hosting: github
vendor-directory: gfx/wgpu_bindings/
flavor: rust
6 changes: 5 additions & 1 deletion python/mozbuild/mozbuild/vendor/moz_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ def _schema_1_additional(filename, manifest, require_license_file=True):
if "vendoring" in manifest and "vendor-directory" in manifest["vendoring"]:
vendor_directory = manifest["vendoring"]["vendor-directory"]

# LICENSE file must exist.
# LICENSE file must exist, except for Rust crates which are exempted
# because the license is required to be specified in the Cargo.toml file
if require_license_file and "origin" in manifest:
files = [f.lower() for f in os.listdir(vendor_directory)]
if not (
Expand All @@ -501,6 +502,9 @@ def _schema_1_additional(filename, manifest, require_license_file=True):
or "license.rst" in files
or "license.html" in files
or "license.md" in files
) and not (
"vendoring" in manifest and
manifest["vendoring"].get("flavor", "regular") == "rust"
):
license = manifest["origin"]["license"]
if isinstance(license, list):
Expand Down

0 comments on commit 63ed48b

Please sign in to comment.