-
-
Notifications
You must be signed in to change notification settings - Fork 34
Comparing changes
Open a pull request
base repository: aspect-build/rules_py
base: v1.1.0
head repository: aspect-build/rules_py
compare: v1.2.0
- 16 commits
- 73 files changed
- 9 contributors
Commits on Jan 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a01323e - Browse repository at this point
Copy the full SHA a01323eView commit details
Commits on Jan 20, 2025
-
fix: propagate
target_compatible_with
to_py_env
when creating a … (Configuration menu - View commit details
-
Copy full SHA for c4aca6e - Browse repository at this point
Copy the full SHA c4aca6eView commit details -
chore: test on Bazel 8.0.0 (#478)
Picks up bazel-contrib/.github#25 Also test Bazel 8 on BCR presubmit. --- ### Changes are visible to end-users: no
Configuration menu - View commit details
-
Copy full SHA for d49da0f - Browse repository at this point
Copy the full SHA d49da0fView commit details
Commits on Jan 22, 2025
-
fix: make py_binary#resolutions and py_test#resolutions identical. (#487
) Closes #466 - Make resolutions consistent between `py_binary` and `py_test` - Allow a list to be passed to `from_requirements` - Add an example of `virtual_deps` feature --- ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: > - Fix: Make resolutions consistent between `py_binary` and `py_test` > - Feature: Allow a list to be passed to `from_requirements` > - Docs: Add an example of `virtual_deps` feature ### Test plan - Manual testing; please provide instructions so we can reproduce: Added an example
Configuration menu - View commit details
-
Copy full SHA for 66bc9be - Browse repository at this point
Copy the full SHA 66bc9beView commit details -
refactor(ci): re-enable testing against prior release artifacts (#496)
May be useful to assert that coverage support is working, since we have a hard time compiling rust tools under --collect_code_coverage --- ### Changes are visible to end-users: no
Configuration menu - View commit details
-
Copy full SHA for 3c1a6c3 - Browse repository at this point
Copy the full SHA 3c1a6c3View commit details -
Fix py_image_layers tar options (#494)
upstream bazel-contrib/bazel-lib#989 in `bazel-lib` released with `v2.10.0` now contain `--options gzip:!timestamp` by default. This leads to warnings when a downstream projects uses a recent version of `bazel-lib`. --- ### Changes are visible to end-users: no ### Test plan - Covered by existing test cases
Configuration menu - View commit details
-
Copy full SHA for 82f445b - Browse repository at this point
Copy the full SHA 82f445bView commit details -
feat: add coverage output to py_pytest_main (#492)
If the user runs with coverage enabled, Bazel sets an environment variable pointing to the files to be instrumented. When that's present, attempt to import the coverage.py package, and use it to instrument and gather coverage, writing lcov directly. Note the user must provide the coverage.py package and it must be version 6.3 or greater, so that lcov reporting is built-in. Fixes #353 Tested: `bazel test --collect_code_coverage --combined_report=lcov -s examples/pytest:pytest_test`
Configuration menu - View commit details
-
Copy full SHA for 5e07460 - Browse repository at this point
Copy the full SHA 5e07460View commit details
Commits on Jan 23, 2025
-
chore(deps): update dependency aspect_bazel_lib to v2.10.0 (#482)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_bazel_lib](https://redirect.github.com/bazel-contrib/bazel-lib) | http_archive | minor | `v2.9.4` -> `v2.10.0` | --- ### Release Notes <details> <summary>bazel-contrib/bazel-lib (aspect_bazel_lib)</summary> ### [`v2.10.0`](https://redirect.github.com/bazel-contrib/bazel-lib/releases/tag/v2.10.0) [Compare Source](https://redirect.github.com/bazel-contrib/bazel-lib/compare/v2.9.4...v2.10.0) #### Using Bzlmod with Bazel 6: 1. Enable with `common --enable_bzlmod` in `.bazelrc`. 2. Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_bazel_lib", version = "2.10.0") ``` > Read more about bzlmod: <https://blog.aspect.dev/bzlmod> #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_bazel_lib", sha256 = "7b39d9f38b82260a8151b18dd4a6219d2d7fc4a0ac313d4f5a630ae6907d205d", strip_prefix = "bazel-lib-2.10.0", url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.10.0/bazel-lib-v2.10.0.tar.gz", ) load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains") ### Required bazel-lib dependencies aspect_bazel_lib_dependencies() ### Register bazel-lib toolchains aspect_bazel_lib_register_toolchains() ``` #### What's Changed - fix(tar): handle directories with spaces in name by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/984](https://redirect.github.com/bazel-contrib/bazel-lib/pull/984) - feat: bats_test: add junit report to test results by [@​pjjw](https://redirect.github.com/pjjw) in [https://github.com/bazel-contrib/bazel-lib/pull/982](https://redirect.github.com/bazel-contrib/bazel-lib/pull/982) - docs: Update jq docs to show correct escaping by [@​ChrisChinchilla](https://redirect.github.com/ChrisChinchilla) in [https://github.com/bazel-contrib/bazel-lib/pull/983](https://redirect.github.com/bazel-contrib/bazel-lib/pull/983) - refactor: Fix no-else-after-return by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/bazel-contrib/bazel-lib/pull/988](https://redirect.github.com/bazel-contrib/bazel-lib/pull/988) - fix: honor umask in write_source_file by [@​sitaktif](https://redirect.github.com/sitaktif) in [https://github.com/bazel-contrib/bazel-lib/pull/986](https://redirect.github.com/bazel-contrib/bazel-lib/pull/986) - fix: Disable the non-deterministic time header when using gzip compression by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/bazel-contrib/bazel-lib/pull/989](https://redirect.github.com/bazel-contrib/bazel-lib/pull/989) - fix(deps): update module golang.org/x/sys to v0.28.0 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/981](https://redirect.github.com/bazel-contrib/bazel-lib/pull/981) - chore(deps): update dependency bazel to v7.4.1 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/971](https://redirect.github.com/bazel-contrib/bazel-lib/pull/971) - fix(bats_test): use env var rather than symbolic link by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/991](https://redirect.github.com/bazel-contrib/bazel-lib/pull/991) - chore(deps): Enable renovate for pre-commit by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/bazel-contrib/bazel-lib/pull/994](https://redirect.github.com/bazel-contrib/bazel-lib/pull/994) - chore: start testing on Bazel 8 by [@​alexeagle](https://redirect.github.com/alexeagle) in [https://github.com/bazel-contrib/bazel-lib/pull/972](https://redirect.github.com/bazel-contrib/bazel-lib/pull/972) - chore(deps): update pre-commit hook keith/pre-commit-buildifier to v7 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/1000](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1000) - chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v5 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/1001](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1001) - chore(deps): update pre-commit hook commitizen-tools/commitizen to v4 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/999](https://redirect.github.com/bazel-contrib/bazel-lib/pull/999) - chore(deps): update pre-commit hook crate-ci/typos to v1.28.2 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/997](https://redirect.github.com/bazel-contrib/bazel-lib/pull/997) - feat(bzlmod): mark toolchains extension as reproducible by [@​cerisier](https://redirect.github.com/cerisier) in [https://github.com/bazel-contrib/bazel-lib/pull/970](https://redirect.github.com/bazel-contrib/bazel-lib/pull/970) - feat: Forward RunEnvironmentInfo if present by [@​molar](https://redirect.github.com/molar) in [https://github.com/bazel-contrib/bazel-lib/pull/1008](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1008) - ci(pre-commit): Add pre-commit CI job by [@​hofbi](https://redirect.github.com/hofbi) in [https://github.com/bazel-contrib/bazel-lib/pull/1002](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1002) - chore(deps): update dependency bazel to v8 by [@​renovate](https://redirect.github.com/renovate) in [https://github.com/bazel-contrib/bazel-lib/pull/1004](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1004) - fix(tar): handle strip_prefix of root directory in mtree_mutate by [@​j-eid](https://redirect.github.com/j-eid) in [https://github.com/bazel-contrib/bazel-lib/pull/995](https://redirect.github.com/bazel-contrib/bazel-lib/pull/995) #### New Contributors - [@​ChrisChinchilla](https://redirect.github.com/ChrisChinchilla) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/983](https://redirect.github.com/bazel-contrib/bazel-lib/pull/983) - [@​sitaktif](https://redirect.github.com/sitaktif) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/986](https://redirect.github.com/bazel-contrib/bazel-lib/pull/986) - [@​cerisier](https://redirect.github.com/cerisier) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/970](https://redirect.github.com/bazel-contrib/bazel-lib/pull/970) - [@​molar](https://redirect.github.com/molar) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/1008](https://redirect.github.com/bazel-contrib/bazel-lib/pull/1008) - [@​j-eid](https://redirect.github.com/j-eid) made their first contribution in [https://github.com/bazel-contrib/bazel-lib/pull/995](https://redirect.github.com/bazel-contrib/bazel-lib/pull/995) **Full Changelog**: bazel-contrib/bazel-lib@v2.9.4...v2.10.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/aspect-build/rules_py). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e618b75 - Browse repository at this point
Copy the full SHA e618b75View commit details -
chore: Autoformat with buildifier (#480)
Follow up of #474 running buildifier on all files. A follow up PR will fix the remaining `buildifier-lint` warnings and add pre-commit to CI similar to bazel-contrib/rules-template#130. Co-authored-by: Alex Eagle <alex@aspect.dev>
Configuration menu - View commit details
-
Copy full SHA for 1d6cd38 - Browse repository at this point
Copy the full SHA 1d6cd38View commit details -
docs/example-pytest-fixtures (#452)
Adds an example of test fixtures and `chdir`. This option was quite hard to discover, however test fixtures are common. Co-authored-by: Alex Eagle <alex@aspect.dev>
Configuration menu - View commit details
-
Copy full SHA for e83fb49 - Browse repository at this point
Copy the full SHA e83fb49View commit details -
ci: Add pre-commit GitHub action (#500)
Follow up of #480 adding a pre-commit GH action, fixing last formatting, and remaining buildifier warnings (split in 3 commit) --- ### Changes are visible to end-users: no
Configuration menu - View commit details
-
Copy full SHA for 0173cb5 - Browse repository at this point
Copy the full SHA 0173cb5View commit details -
chore: gitignore node_modules folder (#499)
One of the tools, maybe `prettier` creates a `node_modules` folder locally which should be ignored. --- ### Changes are visible to end-users: no ### Test plan no testing required
Configuration menu - View commit details
-
Copy full SHA for 082db55 - Browse repository at this point
Copy the full SHA 082db55View commit details -
docs: fix example of py_image_layer (#491)
It's named `binary` rather than `py_binary`
Configuration menu - View commit details
-
Copy full SHA for a17eb3d - Browse repository at this point
Copy the full SHA a17eb3dView commit details -
chore: report the coverage from the e2e/use_release test (#498)
So we can see that it's working, based on comments that get posted to the PR. Notes: - I had to move the files to a `src` subfolder so I can use an `--instrumentation_filter` that doesn't include `//...` since that's causing external repos to get instrumented. - The GHA setup here is fighting me on referencing the combined_report in bazel-out so I just look for **/coverage.dat - actually it's not required to ask bazel to merge the coverage reports for this case. --- ### Changes are visible to end-users: no ### Test plan - New test cases added
Configuration menu - View commit details
-
Copy full SHA for 1b1fcd0 - Browse repository at this point
Copy the full SHA 1b1fcd0View commit details
Commits on Jan 24, 2025
-
chore: build on aspect workflows (#505)
Set up an Aspect Workflows pipeline to build rules_py. --- ### Changes are visible to end-users: no ### Test plan - Manual testing; please provide instructions so we can reproduce: Yeet --------- Co-authored-by: Alex Eagle <alex@aspect.dev>
Configuration menu - View commit details
-
Copy full SHA for 0090277 - Browse repository at this point
Copy the full SHA 0090277View commit details -
chore: Add typos pre-commit hook (#503)
Automated typo fixes --- ### Changes are visible to end-users: yes Typos were mainly fixed in the docs/docstrings --------- Co-authored-by: Alex Eagle <alex@aspect.build>
Configuration menu - View commit details
-
Copy full SHA for 23f0f01 - Browse repository at this point
Copy the full SHA 23f0f01View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.1.0...v1.2.0