forked from bazelbuild/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import rules pycross as part of bazelbuild#1360
- Loading branch information
Showing
80 changed files
with
10,372 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
# For stardoc to reference the files | ||
exports_files([ | ||
"defs.bzl", | ||
"workspace.bzl", | ||
]) | ||
|
||
toolchain_type( | ||
name = "toolchain_type", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
bzl_library( | ||
name = "repositories", | ||
srcs = ["repositories.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pycross/private:internal_repo", | ||
"//pycross/private:pycross_deps_core_lock", | ||
"//pycross/private:pycross_deps_lock", | ||
"@bazel_tools//tools/build_defs/repo:http.bzl", | ||
"@bazel_tools//tools/build_defs/repo:utils.bzl", | ||
], | ||
) | ||
|
||
bzl_library( | ||
name = "defs", | ||
srcs = ["defs.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pycross/private:lock_file", | ||
"//pycross/private:pdm_lock_model", | ||
"//pycross/private:poetry_lock_model", | ||
"//pycross/private:pypi_file", | ||
"//pycross/private:target_environment", | ||
"//pycross/private:wheel_build", | ||
"//pycross/private:wheel_library", | ||
"//pycross/private:wheel_zipimport_library", | ||
], | ||
) | ||
|
||
bzl_library( | ||
name = "workspace", | ||
srcs = ["workspace.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pycross/private:lock_file_repo", | ||
"//pycross/private:lock_repo", | ||
"//pycross/private:pdm_lock_model", | ||
"//pycross/private:poetry_lock_model", | ||
"//pycross/private:toolchain_helpers", | ||
], | ||
) | ||
|
||
bzl_library( | ||
name = "toolchain", | ||
srcs = ["toolchain.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pycross/private:providers", | ||
"@bazel_skylib//lib:paths", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"Public build rule API re-exports" | ||
|
||
load("//pycross/private:lock_attrs.bzl", _package_annotation = "package_annotation") | ||
load("//pycross/private:lock_file.bzl", _pycross_lock_file = "pycross_lock_file") | ||
load("//pycross/private:pdm_lock_model.bzl", _pycross_pdm_lock_model = "pycross_pdm_lock_model") | ||
load("//pycross/private:poetry_lock_model.bzl", _pycross_poetry_lock_model = "pycross_poetry_lock_model") | ||
load("//pycross/private:providers.bzl", _PycrossWheelInfo = "PycrossWheelInfo") | ||
load("//pycross/private:pypi_file.bzl", _pypi_file = "pypi_file") | ||
load("//pycross/private:target_environment.bzl", _pycross_target_environment = "pycross_target_environment") | ||
load("//pycross/private:wheel_build.bzl", _pycross_wheel_build = "pycross_wheel_build") | ||
load("//pycross/private:wheel_library.bzl", _pycross_wheel_library = "pycross_wheel_library") | ||
load("//pycross/private:wheel_zipimport_library.bzl", _pycross_wheel_zipimport_library = "pycross_wheel_zipimport_library") | ||
|
||
PycrossWheelInfo = _PycrossWheelInfo | ||
|
||
package_annotation = _package_annotation | ||
pycross_lock_file = _pycross_lock_file | ||
pycross_pdm_lock_model = _pycross_pdm_lock_model | ||
pycross_poetry_lock_model = _pycross_poetry_lock_model | ||
pycross_target_environment = _pycross_target_environment | ||
pycross_wheel_build = _pycross_wheel_build | ||
pycross_wheel_library = _pycross_wheel_library | ||
pycross_wheel_zipimport_library = _pycross_wheel_zipimport_library | ||
pypi_file = _pypi_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
exports_files([ | ||
"environments.bzl", | ||
"lock_file.bzl", | ||
"lock_import.bzl", | ||
"lock_repos.bzl", | ||
"pycross.bzl", | ||
]) | ||
|
||
bzl_library( | ||
name = "environments", | ||
srcs = ["environments.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["//pycross/private/bzlmod:environments"], | ||
) | ||
|
||
bzl_library( | ||
name = "lock_file", | ||
srcs = ["lock_file.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["//pycross/private/bzlmod:lock_file"], | ||
) | ||
|
||
bzl_library( | ||
name = "lock_import", | ||
srcs = ["lock_import.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["//pycross/private/bzlmod:lock_import"], | ||
) | ||
|
||
bzl_library( | ||
name = "lock_repos", | ||
srcs = ["lock_repos.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["//pycross/private/bzlmod:lock_repos"], | ||
) | ||
|
||
bzl_library( | ||
name = "pycross", | ||
srcs = ["pycross.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["//pycross/private/bzlmod:pycross"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""The environments extension.""" | ||
|
||
load("//pycross/private/bzlmod:environments.bzl", _environments = "environments") | ||
|
||
environments = _environments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""The lock_repos extension.""" | ||
|
||
load("//pycross/private/bzlmod:lock_file.bzl", _lock_file = "lock_file") | ||
|
||
lock_file = _lock_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""The lock_import extension.""" | ||
|
||
load("//pycross/private/bzlmod:lock_import.bzl", _lock_import = "lock_import") | ||
|
||
lock_import = _lock_import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""The lock_repos extension.""" | ||
|
||
load("//pycross/private/bzlmod:lock_repos.bzl", _lock_repos = "lock_repos") | ||
|
||
lock_repos = _lock_repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""The lock_import extension.""" | ||
|
||
load("//pycross/private/bzlmod:pycross.bzl", _pycross = "pycross") | ||
|
||
pycross = _pycross |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
alias( | ||
name = "repair_wheel", | ||
actual = "//pycross/private/tools/repairwheel:repair_wheel_hook", | ||
visibility = ["//visibility:public"], | ||
) |
Oops, something went wrong.