-
-
Notifications
You must be signed in to change notification settings - Fork 681
feat(venv): support data, include, and scripts schemes #3726
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
26
commits into
bazel-contrib:main
Choose a base branch
from
rickeylev:whl.with.data
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.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b4e6496
basic impl
rickeylev c676d6e
fix tests
rickeylev 10ace3b
dont pass select to repo-generated init creation
rickeylev 0fd7c6d
fix testing on workspace
rickeylev 7d2893f
Merge branch 'main' of https://github.com/bazel-contrib/rules_python …
rickeylev 16c5100
format, lint fix
rickeylev 9e53c53
fix pip example
rickeylev 76cc0e0
format
rickeylev 9470aac
test: fix windows paths for whl_with_data test
rickeylev 5b57de2
fix: prevent grouping of top-level bin, include, and data in venvs
rickeylev 103ec9a
fix: add alias for is_venvs_site_packages and add whl_with_data to wo…
rickeylev f41bfda
fix: add WORKSPACE file and export all files in whl_with_data repo
rickeylev fe1ad5f
revert: rename of is_venvs_site_packages and whl_with_data workspace …
rickeylev b35951a
fix: add bazel_skylib to pip_parse_vendored example
rickeylev 52dfac5
fix: add bazel_skylib to multi_python_versions and pip_parse examples
rickeylev 45611a5
docs: add DATA field to VenvSymlinkKind docstring
rickeylev fd6cda6
fix: undefined data_arg in whl_library_targets.bzl
rickeylev 958e61e
fix: robustness in venvs_site_packages_libs_test for Windows paths
rickeylev 194693c
fix: make bin/s3cmd expectation conditional in pip_parse_test.py
rickeylev 82b9acc
refactor: rename is_venvs_site_packages to _is_venvs_site_packages
rickeylev dd2b0b3
pass create_inits() non-selet value, add select value afterwards
rickeylev 3ed727e
change test to enforce windows uses Scripts/Include in venv
rickeylev 7561c72
make pip_parse_test.py work with venv_site_packages
rickeylev 24a94a2
add second wheel with data to test merging/overlap. rename first
rickeylev 1fabeea
format
rickeylev 473966b
revert passing bzlmod/venv_site_packages to pip_parse_test. not neede…
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
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
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 @@ | ||
| exports_files(glob(["*"])) |
1 change: 1 addition & 0 deletions
1
tests/repos/whl_with_data1/whl_with_data1-1.0.data/data/whl_with_data1/data_data_file.txt
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 @@ | ||
| from .data/data |
1 change: 1 addition & 0 deletions
1
tests/repos/whl_with_data1/whl_with_data1-1.0.data/headers/whl_with_data1/header_file.h
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 @@ | ||
| from .data/headers |
1 change: 1 addition & 0 deletions
1
tests/repos/whl_with_data1/whl_with_data1-1.0.data/platlib/whl_with_data1/platlib_file.txt
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 @@ | ||
| from .data/platlib |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/repos/whl_with_data1/whl_with_data1-1.0.data/purelib/whl_with_data1/data_file.txt
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 @@ | ||
| from .data |
1 change: 1 addition & 0 deletions
1
tests/repos/whl_with_data1/whl_with_data1-1.0.data/scripts/whl_script.sh
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 @@ | ||
| #!/bin/sh |
3 changes: 3 additions & 0 deletions
3
tests/repos/whl_with_data1/whl_with_data1-1.0.dist-info/METADATA
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,3 @@ | ||
| Metadata-Version: 2.1 | ||
| Name: whl-with-data1 | ||
| Version: 1.0 |
6 changes: 6 additions & 0 deletions
6
tests/repos/whl_with_data1/whl_with_data1-1.0.dist-info/RECORD
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,6 @@ | ||
| whl_with_data1-1.0.data/platlib/whl_with_data1/platlib_file.txt,sha256=123,123 | ||
| whl_with_data1-1.0.data/scripts/whl_script.sh,sha256=123,123 | ||
| whl_with_data1-1.0.data/headers/whl_with_data1/header_file.h,sha256=123,123 | ||
| whl_with_data1-1.0.data/purelib/whl_with_data1/data_file.txt,sha256=123,123 | ||
| whl_with_data1-1.0.data/data/whl_with_data1/data_data_file.txt,sha256=123,123 | ||
| whl_with_data1-1.0.data/data/whl_with_data1/data_data_file.txt,sha256=123,123 |
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 @@ | ||
| Wheel-Version: 1.0 |
Oops, something went wrong.
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.
This is different from the PR description and the constant elsevhere.