-
-
Notifications
You must be signed in to change notification settings - Fork 672
chore: split sphinxdocs into its own module #3629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rickeylev
wants to merge
7
commits into
bazel-contrib:main
Choose a base branch
from
rickeylev:sphinxdocs.split
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+322
−105
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0f1dccc
initial split
rickeylev 951564c
dont use internal rules_python helpers
rickeylev 97ac4da
add bcr config
rickeylev e8d4338
rm windows in bcr
rickeylev 502d507
add bazelrc
rickeylev 701d1de
fixup bazlerc
rickeylev 3f0f040
format
rickeylev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,21 @@ | ||
| { | ||
| "homepage": "https://github.com/bazel-contrib/rules_python", | ||
| "maintainers": [ | ||
| { | ||
| "name": "Richard Levasseur", | ||
| "email": "richardlev@gmail.com", | ||
| "github": "rickeylev" | ||
| }, | ||
| { | ||
| "name": "Ignas Anikevicius", | ||
| "email": "bcr-ignas@use.startmail.com", | ||
| "github": "aignas" | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:bazelbuild/rules_python", | ||
| "github:bazel-contrib/rules_python" | ||
| ], | ||
| "versions": [], | ||
| "yanked_versions": {} | ||
| } |
This file contains hidden or 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,37 @@ | ||
| # Copyright 2023 The Bazel Authors. All rights reserved. | ||
| # | ||
| # 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. | ||
|
|
||
| bcr_test_module: | ||
| module_path: "integration_tests/bcr" | ||
| matrix: | ||
| platform: ["debian11", "macos", "ubuntu2204"] | ||
| bazel: [7.*, 8.*, 9.*] | ||
| tasks: | ||
| run_tests: | ||
| name: "Run test module" | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| shell_commands: | ||
| - "echo 'common --override_module=rules_python=' >> .bazelrc" | ||
| batch_commands: | ||
| - "echo common --override_module=rules_python= >> .bazelrc" | ||
| test_flags: | ||
| # Minimum bazel supported C++ | ||
| - "--keep_going" | ||
| - '--cxxopt=-std=c++17' | ||
| - '--host_cxxopt=-std=c++17' | ||
| build_targets: | ||
| - "//..." | ||
| test_targets: | ||
| - "//..." |
This file contains hidden or 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 @@ | ||
| { | ||
| "integrity": "", | ||
| "strip_prefix": "{REPO}-{VERSION}/sphinxdocs", | ||
| "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_python-{TAG}.tar.gz" | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
| import %workspace%/.bazelrc.deleted_packages | ||
|
|
||
| test --test_output=errors | ||
|
|
||
| build --incompatible_default_to_explicit_init_py | ||
| build --@rules_python//python/config_settings:incompatible_default_to_explicit_init_py=True | ||
|
|
||
| # Ensure ongoing compatibility with this flag. | ||
| common --incompatible_disallow_struct_provider_syntax | ||
| # Makes Bazel 7 act more like Bazel 8 | ||
| common --incompatible_use_plus_in_repo_names | ||
|
|
||
| # Explicitly enable for Windows | ||
| build --enable_runfiles | ||
|
|
||
| # Local disk cache greatly speeds up builds if the regular cache is lost | ||
| common --disk_cache=~/.cache/bazel/bazel-disk-cache | ||
|
|
||
| common --incompatible_python_disallow_native_rules | ||
| common --incompatible_no_implicit_file_export | ||
|
|
||
| build --lockfile_mode=update |
This file contains hidden or 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 @@ | ||
| common --deleted_packages=integration_tests/bcr |
This file contains hidden or 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 @@ | ||
| 8.x |
This file contains hidden or 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 hidden or 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,27 @@ | ||
| module( | ||
| name = "sphinxdocs", | ||
| version = "0.0.0", | ||
| compatibility_level = 1, | ||
| ) | ||
|
|
||
| bazel_dep(name = "bazel_skylib", version = "1.8.2") | ||
| bazel_dep(name = "stardoc", version = "0.7.2", repo_name = "io_bazel_stardoc") | ||
| bazel_dep(name = "platforms", version = "0.0.11") | ||
| bazel_dep(name = "protobuf", version = "29.0-rc2", repo_name = "com_google_protobuf") | ||
| bazel_dep(name = "rules_python", version = "0.0.0") | ||
| local_path_override( | ||
| module_name = "rules_python", | ||
| path = "..", | ||
| ) | ||
|
|
||
| dev_pip = use_extension( | ||
| "@rules_python//python/extensions:pip.bzl", | ||
| "pip", | ||
| dev_dependency = True, | ||
| ) | ||
| dev_pip.parse( | ||
| hub_name = "dev_pip", | ||
| python_version = "3.11", | ||
| requirements_lock = "@rules_python//docs:requirements.txt", | ||
| ) | ||
| use_repo(dev_pip, "dev_pip") |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're making
util_bzlpublic here, but thesphinxdocsmodule is introducing its own copy ofutil.bzlinstead of using this one. This leads to code duplication and is confusing. If the intent is to decouplesphinxdocsfromrules_python's private implementation details (likePyInfo), it would be better to not make this target public and stick with the copied version insphinxdocs. If this visibility change is no longer needed, please revert it to avoid confusion.