Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelreneer committed Dec 13, 2024
1 parent 4ec28dd commit e9db14a
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
50 changes: 50 additions & 0 deletions modules/federated_language/0.1.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module(name = "federated_language")

bazel_dep(name = "protobuf", version = "28.3")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_python", version = "0.38.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.9",
)
python.toolchain(
python_version = "3.10",
)
python.toolchain(
is_default = True,
python_version = "3.11",
)
use_repo(python, python = "python_versions")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.9",
requirements_lock = "//:requirements_lock_3_9.txt",
)
pip.parse(
hub_name = "pypi",
python_version = "3.10",
requirements_lock = "//:requirements_lock_3_10.txt",
)
pip.parse(
hub_name = "pypi",
python_version = "3.11",
requirements_lock = "//:requirements_lock_3_11.txt",
)
use_repo(pip, "pypi")
10 changes: 10 additions & 0 deletions modules/federated_language/0.1.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
matrix:
platform: ["ubuntu2004"]
bazel: [7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@federated_language//federated_language'
5 changes: 5 additions & 0 deletions modules/federated_language/0.1.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/google-parfait/federated-language/releases/download/v0.1.0/federated-language-0.1.0.tar.gz",
"integrity": "sha256-7Qoy9VO8m+NPL3ex9RD0lDRoaq24YmMFdbC9CKWAKl0=",
"strip_prefix": "federated-language-0.1.0"
}
16 changes: 16 additions & 0 deletions modules/federated_language/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/google-parfait/federated-language",
"maintainers": [
{
"email": "[email protected]",
"name": "Federated Language Team"
}
],
"repository": [
"github:google-parfait/federated-language"
],
"versions": [
"0.1.0"
],
"yanked_versions": {}
}

0 comments on commit e9db14a

Please sign in to comment.