0.6.0
WORKSPACE setup:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502",
strip_prefix = "rules_python-0.6.0",
url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz",
)
Breaking Changes
If you used the gazelle plugin, the workspace call to modules_mapping()
should now be moved to a BUILD file as it is a regular rule. See the updates to examples/build_file_generation
in https://github.com/bazelbuild/rules_python/pull/578/files
Users of pip_parse
(or pip_repository(incremental=True)
) will have the generated repositories change, e.g. from @pip_pypi__amqp//:pkg
to @amqp//:pkg
. If you use the requirements()
helper, this won't affect you, but if you referred to the generated labels directly it will.
You can add the attribute repo_prefix = "pip_pypi__"
on pip_parse
to restore the previous default.
What's Changed
- Fix regression in parsing requirements due to invalid entry points config. by @UebelAndre in #536
- Add tags pypi_name and pypi_version to generated py_library targets by @alexeagle in #530
- Exposed docs for
compile_pip_requirements
by @UebelAndre in #534 - Revert "py_library generated from wheel shouldn't include tests/ fold… by @alexeagle in #539
- Updated min tested Bazel version to 4.0.0 by @UebelAndre in #533
- Added additional tests for
pip_parse
andpip_install
utilties by @UebelAndre in #524 - docs: enforce that api docs are up-to-date by @alexeagle in #540
- fix: rules_python 0.4.0 is not recent enough for pip_install example by @thundergolfer in #547
- Typo: s/requiremenst/requirements by @b0ri5 in #552
- fix bazel_integration_test runner to allow non-release URLs by @alexeagle in #556
- Remove 'experimental' from pip_parse section by @jvolkman in #551
- Update docstrings for packaging rules/macros by @thundergolfer in #535
- Turn
//python/private
into a package. by @UebelAndre in #555 - Added
stamp
attribute topy_wheel
by @UebelAndre in #554 - Add support for relative requirements in pip_install by @aaliddell in #433
- Release 0.5.0 by @alexeagle in #558
- Fixed
stamp.bzl
missing form@rules_python//:bzl
target. by @UebelAndre in #560 - Fix minor typo in stamp.bzl by @thundergolfer in #559
- Fix #507 - Always run from WORKSPACE root in compile_pip_requirements update exe by @thundergolfer in #564
- Use 0.5.0 in README by @SUPERCILEX in #562
- Fixed stable stamping of wheels by @UebelAndre in #567
- pip: entry_point: Add support for exit codes by @gibfahn in #550
- Gazelle extension for Python by @f0rmiga in #514
- Remove return code type check. by @phst in #573
- Ignore
__pycache__
contents and*.pyc
files in external dependencies by @UebelAndre in #570 - fix(gazelle): include file path in manifest parsing error message by @mattem in #579
- Allow controlling the prefix added to repos/packages by @person142 in #459
- Deleted legacy pip_import rule by @UebelAndre in #582
- sorted imports statements and apply "black" formatting by @UebelAndre in #583
- Fix broken pre-commit hook by @UebelAndre in #590
- Make spread_purelib_into_root behave like the wheel was installed by pip by @hrfuller in #581
- Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.8 by @dependabot in #584
- Fix entry point discovery on Windows. by @phst in #572
- Remove forgotten fragments of
pip_import
rule. by @UebelAndre in #588 - Simplify release by @alexeagle in #587
- fix: release tags don't include v prefix by @alexeagle in #591
- Add missing file for release automation by @alexeagle in #592
- Enabled CI for Windows by @UebelAndre in #585
- Update README to say that using
requirement()
is optional by @person142 in #594 - fix release automation: script was not chmod u+x by @alexeagle in #593
- refactor: make modules_mapping a regular rule by @f0rmiga in #578
New Contributors
- @b0ri5 made their first contribution in #552
- @jvolkman made their first contribution in #551
- @aaliddell made their first contribution in #433
- @SUPERCILEX made their first contribution in #562
- @gibfahn made their first contribution in #550
- @f0rmiga made their first contribution in #514
- @phst made their first contribution in #573
Full Changelog: 0.4.0...0.6.0