Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
f400682
pip-tools: 6.6.2 -> 6.8.0 (#762)
groodt Jul 18, 2022
4b3c2b3
Make hermetic interpreters compatible to disallow_empty_glob (#761)
martis42 Jul 26, 2022
d278223
[gazelle] Use filepath.WalkDir instead of filepath.Walk (#770)
dzbarsky Jul 28, 2022
9cdb4f3
Exclude static libraries and tests to reduce zipped Python executable…
tetsuok Jul 28, 2022
07ead72
exec_compatible_with -> target_compatible_with #704 (#747)
molar Aug 1, 2022
e67e7dd
fix: fail if the user is root (#749)
f0rmiga Aug 1, 2022
73e2490
Simplify glob pattern to exclude static libraries (#771)
tetsuok Aug 1, 2022
ac5b973
. (#774)
groodt Aug 1, 2022
1045ca1
Fix download of Windows Python toolchain on Linux (#769)
jesseschalken Aug 3, 2022
8048ff7
chore: remove pkginfo from bzlmod file (#778)
alexeagle Aug 4, 2022
ebeb822
709/from imports (#760)
aptenodytes-forsteri Aug 4, 2022
e69c2ae
Add a consistent `python` interpreter symlink (#782)
mattyclarkson Aug 10, 2022
e99bd61
Exclude unused libpython{python_version}.so to reduce the size of zip…
tetsuok Aug 10, 2022
73300c0
Update Python minor toolchain versions to allow smaller Python binari…
tetsuok Aug 10, 2022
d484807
Added importlib + reqs to pip-compile for python < 3.8 (#781)
asafflesch Aug 10, 2022
0609001
feat(gazelle_python_manifest): provide a target with the given name (…
mattem Aug 10, 2022
c9b70d1
fix(gazelle): handle purelib and platlib packages that don't set 'Roo…
mattem Aug 10, 2022
d7ae311
Ran black and isort to fix files missed by commit hook (#790)
UebelAndre Aug 14, 2022
599ddb8
Fix leading forward slashes in RECORD files produced by `py_wheel`. (…
UebelAndre Aug 14, 2022
a2b7f42
Add type annotations to runfiles library (#764)
dzbarsky Aug 14, 2022
e0a7829
Added label to py_wheel progress message. (#791)
UebelAndre Aug 16, 2022
6a43ebd
Add option to use "pip download" instead of "pip wheel" to download w…
jesseschalken Aug 27, 2022
4999f63
Revert "Add option to use "pip download" instead of "pip wheel" to do…
groodt Aug 27, 2022
dd2e947
Fix missing python includes for Unix hosts (#809)
UebelAndre Aug 27, 2022
5ff0dc8
Fix ability to download windows toolchains on case sensitive unix sys…
UebelAndre Aug 27, 2022
edfd9f4
Revert "pip_compile: remove external/workspace_name prefix from gener…
alexeagle Aug 27, 2022
cf6542d
Revert "Revert "Add option to use "pip download" instead of "pip whee…
groodt Aug 29, 2022
0dfc546
Make gazelle_python_manifest output deterministic (#813)
abhishekshivanna Aug 30, 2022
ad0b8f8
specify timeout for gazelle manifest test (#817)
garymm Aug 30, 2022
ccbb05e
Allow overriding config attrs in pip_parse-generated install_deps (#751)
jvolkman Sep 7, 2022
03dc137
fix pip_compile pip_compile select_golden_requirements_file invocatio…
lripoche Sep 12, 2022
a364fca
Disable `//python/tests/toolchains:python_3_8_10_x86_64-apple-darwin_…
meteorcloudy Sep 16, 2022
f0efec5
Standardise on pip_parse (#807)
groodt Sep 24, 2022
b8d6b2f
Use bazel 5.3.1 (#837)
hanneskaeufler Sep 25, 2022
62a4249
Use json.encode(<struct>) (#838)
groodt Sep 26, 2022
cdd2758
Revert "Use bazel 5.3.1" (#842)
hanneskaeufler Sep 26, 2022
0e44ffa
Fixed unsound issue in wheel examples
UebelAndre Aug 31, 2022
f0e4743
Fixed deprecation warnings in //examples/wheel tests
UebelAndre Aug 31, 2022
2f764ce
Add CI job for RBE.
UebelAndre Aug 30, 2022
369074e
Add .bzl files explicitly to toolchain tests to detect .bzl file chan…
fishcakez Sep 28, 2022
301704b
Allow extra files to be added to distinfo directory within the wheel.…
pstradomski Oct 1, 2022
7f30113
fix: assert expected bazel version (#847)
f0rmiga Oct 5, 2022
2aeff3b
bump: pre-commit linters (#848)
f0rmiga Oct 5, 2022
fa4c408
Move construction of the METADATA file from wheelmaker to .bzl (#844)
pstradomski Oct 5, 2022
44d41ee
Include ignore_root_user_error in repository_rule keys (#835)
keith Oct 5, 2022
b15e15f
Allow requirements_in to be generated (#829)
philsc Oct 5, 2022
a523bfe
Clarify location of gazelle_python.yaml
alexeagle Oct 7, 2022
d983577
bump: ubuntu version on CI
f0rmiga Oct 7, 2022
85c8186
fix: replace cc_import with cc_library for libpython (#820)
scasagrande Oct 10, 2022
2cdad9e
fix: re-enable python_3_8_10_x86_64-apple-darwin_test (#851)
f0rmiga Oct 10, 2022
26526a5
refactor: ci with multiple tasks (#855)
f0rmiga Oct 12, 2022
d314e96
chore: update go dependencies (#854)
f0rmiga Oct 12, 2022
8dff175
Updating docs (#868)
chrislovecnm Oct 25, 2022
b095f6f
Updating Gazelle version in example (#857)
chrislovecnm Oct 25, 2022
6d9080f
Update bzlmod example to use latest Bazel release (#867)
kormide Oct 26, 2022
f8945f4
Remove defunct owners, add new owners (#873)
rickeylev Nov 2, 2022
7f65a6d
Add hrfuller as code owner for pip_parse (#874)
rickeylev Nov 2, 2022
a08cc0e
Update `pip_install` to `pip_parse` in README.md (#852)
kekesh Nov 2, 2022
b1546b6
chore: add f0rmiga as codeowner for toolchains (#875)
f0rmiga Nov 2, 2022
bd42ad2
Support annotations on pip packages with extras. (#865)
william-smith-skydio Nov 4, 2022
ba69aec
Create a requirements file parser in stalark for bzlmod
kormide Nov 1, 2022
af354c2
Create a pip_parse bzlmod extension
kormide Nov 1, 2022
b8b9092
Prepare for bzlmod release
kormide Nov 1, 2022
24a8b74
Setup fixed releaser for Publish to BCR app (#878)
kormide Nov 8, 2022
3f0d62d
fix(determinism): copy two missing entries from data_excludes (#881)
alexeagle Nov 10, 2022
912a505
fix: make conftest.py special with gazelle (#879)
f0rmiga Nov 10, 2022
a3b6943
Expose python3n.lib as libpython's interface_library (#890)
jlaxson Nov 19, 2022
4a0c763
Fix //docs:update (#876)
philsc Nov 19, 2022
e093bc1
fix: correct bcr metadata template filename (#892)
kormide Nov 21, 2022
0054574
fix: fix a bug where some transitive deps could not be resolved via b…
kormide Nov 21, 2022
17a1573
feat: multi-toolchain support (#846)
f0rmiga Nov 28, 2022
b95f639
bump: python toolchain releases (#902)
f0rmiga Nov 28, 2022
7e3c89c
Correctly reference os-specific labels from central alias repo (#889)
jlaxson Nov 28, 2022
6095ae2
Document how to get started working on rules_python (#891)
rickeylev Nov 28, 2022
b69431e
fix: #895 append _py if ending with .py
rbuckland Nov 23, 2022
518c873
fix: missing RunEnvironmentInfo (#904)
f0rmiga Nov 29, 2022
b5f2d06
fix: pip_compile to handle multiple generated requirements.in (#909)
f0rmiga Dec 1, 2022
c572cdc
ci: add debian11 to the matrix (#910)
f0rmiga Dec 1, 2022
ce977e1
Fail if Python 2 values are specified (#887)
rickeylev Dec 1, 2022
9b47b75
fix: windows on ci (#911)
f0rmiga Dec 1, 2022
d170eb9
Add gazelle distribution and enable build_file_generation test (#913)
aignas Dec 5, 2022
6574e34
feat: gazelle manifest exclude_patterns (#917)
f0rmiga Dec 6, 2022
9fc69da
Add f0rmiga as codeowner of build_file_example (#918)
rickeylev Dec 6, 2022
9bf7c49
fix: don't test on release (#920)
f0rmiga Dec 6, 2022
4528038
fix: gazelle panics when "# gazelle:ignore" doesn't have a value (#915)
stdll00 Dec 7, 2022
222ec4b
Remove unused code (#933)
groodt Dec 19, 2022
fcd0328
Various updates build_file_generation example (#869)
chrislovecnm Dec 21, 2022
8331522
Fix CI after bazel 6.0.0 (#938)
groodt Dec 21, 2022
72ac64a
Refactor wheel_installer (#937)
groodt Dec 24, 2022
bcd7109
Updates lockfiles (#943)
groodt Dec 24, 2022
b455267
fix: embed stamped version in py_wheel METADATA (#935)
mattoberle Dec 24, 2022
1ceb620
chore(gazelle): clarify a particular failure message (#939)
srabraham Dec 24, 2022
8a6b15d
pip: 22.2.1 -> 22.3.1; build: 0.8.0 -> 0.9.0; installer: 0.5.1 -> 0.6…
groodt Dec 26, 2022
7e59c5c
Update name of `compile_pip_requirements` (#945)
groodt Dec 26, 2022
50ba3ed
Rename `BUILD` -> `BUILD.bazel` (#946)
groodt Dec 26, 2022
b3bf124
Add missing .gitignore for //examples/pip_parse_vendored (#947)
groodt Dec 26, 2022
d400f6b
Removes unused "incremental" property (#948)
groodt Dec 27, 2022
9a9c844
Disable bytecode optimization during wheel installation (#949)
groodt Dec 27, 2022
def63ad
Fix broken link. (#955)
phst Dec 29, 2022
7262403
Don’t use keyword argument for TestEnvironment. (#954)
phst Dec 29, 2022
2c29f40
Fix hyphen in requirement didn't work with bzlmod (#952) (#957)
acr92 Dec 30, 2022
3c4ed56
chore(docs): fix bad html formatting (#959)
alexeagle Jan 2, 2023
4dde147
Fully switch to bazel 6.0.0 in all places (#960)
aignas Jan 2, 2023
9022291
Use 'os' instead of 'ioutil' in gazelle tests (#962)
aignas Jan 2, 2023
70cce26
Refactor and separate concerns of external python package handling co…
groodt Jan 10, 2023
7e2d4ec
Update runfiles lib (#982)
fmeum Jan 12, 2023
07c1741
Refactor poor naming and unused code in wheel_installer (#990)
groodt Jan 14, 2023
1487a0c
Add new Python versions including 3.11 (#992)
jvolkman Jan 18, 2023
3ebd927
runfiles: Drop outdated comments about vendoring (#986)
fmeum Jan 18, 2023
0d3c4f7
Implement py_proto_library (#832)
comius Jan 18, 2023
c988c0a
runfiles: Fix usage instructions (#985)
fmeum Jan 18, 2023
aab11ab
chore: fix red CI - buildifier was broken by #832 (#996)
alexeagle Jan 19, 2023
a475144
runfiles: Import `CurrentRepository` from Bazel (#988)
fmeum Jan 19, 2023
63379a4
Fix misleading error message (#927)
suzaku Jan 20, 2023
9662139
runfiles: Apply repo mapping to Rlocation path (#998)
fmeum Jan 20, 2023
bd3a719
fix(deps): declare our dependency on bazel_skylib (#1001)
alexeagle Jan 21, 2023
1722988
chore: publish a runfiles library as a wheel (#995)
alexeagle Jan 21, 2023
b4a47a4
feat: allow patching the interpreter fetched via toolchains (#1004)
mattem Jan 23, 2023
767e3ce
Redirect stdout when checking imports. (#1007)
aptenodytes-forsteri Jan 23, 2023
5f166c1
Fix Python interpreter target labels with @@ prefixes. (#940)
oxidase Jan 23, 2023
1d283fc
cleanup: remove vendored copy of skylib (#1003)
alexeagle Jan 23, 2023
0943375
generate py_test without __test__ (#999)
linzhp Jan 23, 2023
8081ca6
Add runtime dependencies to gazelle extension (#993)
linzhp Jan 23, 2023
64d287b
fix: allow omitting the `strip_prefix` in `tool_versions` (#975)
lummax Jan 23, 2023
0ee2a7e
refactor(gazelle): Move plugin to a separate directory. (#983)
aignas Jan 24, 2023
ba45af0
fix: windows `*.lib` interface in `python_headers` (#976)
lummax Jan 24, 2023
f94c195
python_repository: Exclude pycache files (#907)
illicitonion Jan 24, 2023
86b01a3
runfiles: Remove dead code (#1011)
fmeum Jan 25, 2023
da106c5
runfiles: Add proper test coverage for an edge case (#1012)
fmeum Jan 25, 2023
6c6c70b
refactor: pull implementations out of packaging.bzl (#1013)
alexeagle Jan 25, 2023
43e18f0
Fix requirement parser (#1009)
tgeng Jan 25, 2023
fd5f531
feat(gazelle)!: Move the plugin to a separate workspace (#972)
aignas Jan 25, 2023
9960253
refactor: py_wheel now a macro (#1014)
alexeagle Jan 25, 2023
fa3e2d5
fix: ensure 'patches' attr is included for the canonical representati…
mattem Jan 26, 2023
68b0213
feat: produce publishable distribution archives (#1019)
alexeagle Jan 26, 2023
d196451
fix(release): use correct GH workflows syntax (#1020)
alexeagle Jan 26, 2023
7761231
feat: allow absolute urls in `tool_versions` (#973)
lummax Jan 27, 2023
3aefaed
chore: revert publish wheel on releases (#1022)
alexeagle Jan 27, 2023
58c7958
Using label as id for py targets (#1023)
linzhp Jan 27, 2023
82c8f0a
Handling imports from sibling modules (#1027)
linzhp Jan 28, 2023
018e355
Add missing copyright headers (#1030)
rickeylev Jan 30, 2023
3fe06a1
feat: allow extra dependencies to be passed to pip-compile (#1026)
f0rmiga Jan 30, 2023
488a037
feat(coverage): Register coverage.py to hermetic toolchains (#977)
aignas Jan 31, 2023
e0f2f56
Manually generate distribution archives (#1032)
rickeylev Jan 31, 2023
b122f3a
fix: use 'repo' as prefix when constructing annotations label (#1033)
mattem Jan 31, 2023
9fc7cfa
Resolving sibling modules with absolute imports (#1029)
linzhp Jan 31, 2023
6e5a564
fix: reorder imports (#1034)
f0rmiga Feb 1, 2023
3d17505
Revert "Resolving sibling modules with absolute imports" (#1035)
f0rmiga Feb 1, 2023
a47c6cd
Fix glob includes/exclues (#1038)
illicitonion Feb 1, 2023
0e55ced
Fixed glob includes for ignore_root_user_error (#1037)
linzhp Feb 2, 2023
2607797
Pass cpp flags through in all cases to repository rule compilations (…
shs96c Feb 3, 2023
b832d50
feat: add logic from #1029 back with fix (#1039)
f0rmiga Feb 3, 2023
7948858
clean up UUID (#1028)
linzhp Feb 6, 2023
8984efd
Use go_test to verify manifest (#1044)
linzhp Feb 6, 2023
e7b51d7
fix: move coverage pkg to end of sys.path to avoid collisions (#1045)
f0rmiga Feb 7, 2023
68ede14
fix(release): minimum needed to run twine to publish (#1021)
alexeagle Feb 7, 2023
c4d8cf4
release: publish our runfiles wheel to pypi (#1048)
alexeagle Feb 7, 2023
339c7e2
Add requires-network to pip requirements update. (#1050)
matts1 Feb 8, 2023
13a9120
Document the pypi user and how to manage it. (#1049)
rickeylev Feb 8, 2023
6c8ae76
fix(release): wrong replacement for $(location) during code review (#…
alexeagle Feb 8, 2023
d9ed9c9
Making exclusions more strict (#1054)
linzhp Feb 9, 2023
6bcee35
docs: fix requirement line for runfiles example (#1052)
alexeagle Feb 9, 2023
6905e63
fix: make py_proto_library respect PyInfo imports (#1046)
aignas Feb 11, 2023
fab77f7
Make toolchain acceptance tests work with latest Bazel build CI pipel…
rickeylev Feb 11, 2023
4f8ca60
Only set `py_runtime.coverage_tool` for Bazel 6 and higher. (#1061)
rickeylev Feb 11, 2023
aef1abf
Allow building with unreleased Bazel versions. (#1063)
rickeylev Feb 11, 2023
2f29f12
Extending server process timeout (#1060)
linzhp Feb 13, 2023
e35cd88
chore: regenerate gazelle_python.yaml manifest (#1066)
aignas Feb 13, 2023
0051393
feat: wheel publishing (#1015)
alexeagle Feb 13, 2023
767b050
fix: checked-in requirements imports generated requirements (#1053)
f0rmiga Feb 13, 2023
2893d85
fix: Propagate testonly et al for wheel `.dist` targets (#1064)
rickeylev Feb 16, 2023
64d9d6f
fix: correctly advertise minimum supported version (#1065)
aignas Feb 16, 2023
2ab842d
refactor: starlark reimplementation of pip_repository (#1043)
aignas Feb 16, 2023
076d874
Add some docs about how to configure coverage. (#1074)
rickeylev Feb 16, 2023
f439695
Remove empty line between copyright and build file docstring. (#1084)
rickeylev Feb 22, 2023
b986547
cleanup: Remove license type comment; they're no longer required (#1078)
rickeylev Feb 23, 2023
5419e23
fix: Use GitHub download URL for BCR URL instead of archive URL. (#1093)
rickeylev Feb 24, 2023
797c2d0
Add a script to add missing license headers (#1094)
rickeylev Feb 24, 2023
bce3ccd
fix: Update pre-commit dependency versions so isort works. (#1096)
rickeylev Feb 25, 2023
f97e008
docs: doc that the Conventional Commit style should be used for merge…
rickeylev Feb 25, 2023
c504355
test(core): Add analysis tests for base Python rules. (#1102)
rickeylev Feb 27, 2023
51458e8
chore: fix some lingering GH archive URLs (#1108)
alexeagle Mar 5, 2023
7d82f06
feat: add bzlmod support for gazelle plugin (#1077)
aignas Mar 6, 2023
de8f428
docs: Simplify pull request template (#1100)
rickeylev Mar 6, 2023
c73dc0c
chore: fix syntax that stardoc misunderstands as HTML (#1110)
alexeagle Mar 6, 2023
244c606
fix: update gazelle to properly handle dot in package name. (#1083)
OniOni Mar 7, 2023
0ba98a6
fix(bzlmod): expose ignore_root_user_error attribute from python_regi…
alexeagle Mar 7, 2023
7ffe2f7
feat: add bzl_library for defs.bzl and its dependencies (#1115)
rickeylev Mar 8, 2023
8400610
fix: docs for ignore_root_user_error at the module level (#1112)
stonier Mar 8, 2023
5ff514a
fix: generation of toolchain aliases //:defs.bzl file. (#1088)
oxidase Mar 8, 2023
1c5b92b
feat: make variable substitution for py_wheel abi, python_tag args (#…
stonier Mar 9, 2023
3aa221f
feat: add bzl_library for proto.bzl (#1116)
rickeylev Mar 9, 2023
25e4175
cleanup: Remove license comment in proto build file (#1118)
rickeylev Mar 9, 2023
9ef11b9
fix: restrict proto package visibility to private (#1117)
rickeylev Mar 9, 2023
31d0efd
cleanup: rename proto BUILD -> BUILD.bazel (#1119)
rickeylev Mar 9, 2023
756264a
feat: bzl file per rule/provider (#1122)
rickeylev Mar 9, 2023
c0c08a3
cleanup: fix typo: libraries, not libaries (#1127)
rickeylev Mar 11, 2023
4e3d01c
feat: add public entry point for PyCcLinkParamsInfo (#1128)
rickeylev Mar 11, 2023
31bc04b
cleanup: reformat defs.bzl doc string. (#1126)
rickeylev Mar 13, 2023
c394c46
fix: Include filename when parsing imports for gazelle (#1133)
jlaxson Mar 16, 2023
3b9c85e
cleanup: factor reexports.bzl into the respective implementation file…
rickeylev Mar 23, 2023
260a08b
fix: bump installer to handle windows better (#1138)
f0rmiga Mar 23, 2023
64684ae
build: Fixing buildifier (#1148)
chrislovecnm Apr 3, 2023
03ebeb7
docs: Updating documentation for bzlmod (#1149)
chrislovecnm Apr 3, 2023
00dd72d
fix: use a consistent buildifier version for CI and pre-commit (#1151)
aignas Apr 4, 2023
ee8cecf
chore: bump buildifier to 6.1.0 (#1152)
aignas Apr 4, 2023
52e14b7
fix: correct the labels returned by all_requirements lists (#1146)
aignas Apr 5, 2023
86eadf1
fix: gazelle correctly adds new py_test rules (#1143)
amartani Apr 8, 2023
b80b8fd
fix: respect kind mapping (#1158)
OniOni Apr 8, 2023
1e869d8
test: cleanup gazelle tests and run them in parallel (#1159)
aignas Apr 10, 2023
ebe81b7
[docs] Fixing rule name in coverage.md docs (#1162)
anfelbar Apr 11, 2023
c72c7bc
feat: Support specifying multiple download URLs in tool_versions. (#1…
quval Apr 11, 2023
73aec8f
fix: remove reference to @bazel_tools//tools/python/private:defs.bzl …
comius Apr 24, 2023
c5f24dd
docs: Tell how to use GitHub to find commits in an upcoming release. …
rickeylev Apr 25, 2023
9528806
fix: compile_pip_requirements test from external repositories (#1124)
Rasrack Apr 25, 2023
ba2a903
feat: add Python 3.8.16 (#1168)
jml-derek Apr 25, 2023
fb6f49f
test: Set mac platform for test_mac_requires_darwin_for_execution (#1…
rickeylev Apr 26, 2023
600dbe1
fix: Don't reference deleted private bazel_tools bzl file (#1180)
rickeylev Apr 26, 2023
2882bb6
docs: Add starlark directive to code snippet (#1170)
blorente Apr 27, 2023
548ced5
tests: Upgrade rules_testing to 0.0.5 (#1184)
rickeylev Apr 27, 2023
ce74914
tests: Set linux platform for test_non_mac_doesnt_require_darwin_for_…
rickeylev Apr 28, 2023
1d1efe9
fix(bzlmod): correctly template repository macros for requirements, e…
aignas May 1, 2023
c20aa1a
type:docs Update README.md (#1186)
yuanweixin May 1, 2023
2df3259
fix: Allow passing a tuple to the `tags` attribute. (#1191)
rickeylev May 2, 2023
81a200b
tests: Add skylib to various test dependencies to fix CI (#1199)
chrislovecnm May 3, 2023
96b4fa1
feat: removing bzlmod from example (#1200)
chrislovecnm May 3, 2023
e400791
feat: propagate visibility attribute for py_wheel publishing (#1203)
chrislovecnm May 3, 2023
fc94642
docs: fix typos in pip_repository docs (#1202)
martis42 May 3, 2023
532f07a
tests: Force analysis test labels to resolve within @rules_python con…
rickeylev May 3, 2023
262c699
fix(update_deleted_packages.sh): allow to run from anywhere in the re…
aignas May 4, 2023
0912bba
feat(bzlmod): expose platform-agnostic repo target for toolchain inte…
chrislovecnm May 4, 2023
23cf6b6
fix(update_deleted_packages.sh): wheels example should not be include…
aignas May 4, 2023
799e63f
fix: Strip trailing newline from python output (#1212)
illicitonion May 8, 2023
0efcd94
fix: manually ignore bazel-* directories to make using custom Bazel b…
rickeylev May 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
580 changes: 552 additions & 28 deletions .bazelci/presubmit.yml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Normally these are ignored, but if you're using a custom
# build of Bazel with a custom --output_user_root value, Bazel
# tries to follow the symlinks of the other builds and finds
# the WORKSPACE, BUILD, etc files and tries to build them.
bazel-rules_python
bazel-bin
bazel-out
bazel-testlogs
5 changes: 2 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# This lets us glob() up all the files inside the examples to make them inputs to tests
# (Note, we cannot use `common --deleted_packages` because the bazel version command doesn't support it)
# To update these lines, run tools/bazel_integration_test/update_deleted_packages.sh
build --deleted_packages=examples/build_file_generation,examples/bzlmod,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_import,examples/relative_requirements,tests/pip_repository_entry_points,tests/pip_deps
query --deleted_packages=examples/build_file_generation,examples/bzlmod,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_import,examples/relative_requirements,tests/pip_repository_entry_points,tests/pip_deps
build --deleted_packages=examples/build_file_generation,examples/build_file_generation/get_url,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/runfiles,examples/multi_python_versions,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_import,examples/py_proto_library,examples/relative_requirements,tests/compile_pip_requirements,tests/pip_repository_entry_points,tests/pip_deps
query --deleted_packages=examples/build_file_generation,examples/build_file_generation/get_url,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/runfiles,examples/multi_python_versions,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_import,examples/py_proto_library,examples/relative_requirements,tests/compile_pip_requirements,tests/pip_repository_entry_points,tests/pip_deps

test --test_output=errors

Expand All @@ -18,5 +18,4 @@ build --incompatible_default_to_explicit_init_py

# Windows makes use of runfiles for some rules
build --enable_runfiles
# TODO(f0rmiga): remove this so that other features don't start relying on it.
startup --windows_enable_symlinks
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.0
6.0.0
17 changes: 17 additions & 0 deletions .bcr/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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.

fixedReleaser:
login: f0rmiga
email: [email protected]
20 changes: 20 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"homepage": "https://github.com/bazelbuild/rules_python",
"maintainers": [
{
"name": "Richard Levasseur",
"email": "[email protected]",
"github": "rickeylev"
},
{
"name": "Thulio Ferraz Assis",
"email": "[email protected]",
"github": "f0rmiga"
}
],
"repository": [
"github:bazelbuild/rules_python"
],
"versions": [],
"yanked_versions": {}
}
24 changes: 24 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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: "examples/bzlmod"
matrix:
platform: ["debian11", "macos", "ubuntu2004", "windows"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_python-{TAG}.tar.gz"
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
docs/*.md linguist-generated=true
tools/publish/*.txt linguist-generated=true
22 changes: 8 additions & 14 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# NB: Last matching rule takes precedence in CODEOWNERS.

# Fall-through to community maintainers.
* @thundergolfer

# Core Python rules belong to the Bazel team.
/python/ @brandjon @lberki
# But not everything under python/ is the core Python rules.
/python/pip.bzl @thundergolfer
/python/requirements.txt @thundergolfer
* @rickeylev

# Directory containing the Gazelle extension and Go code.
/gazelle/ @f0rmiga
/examples/build_file_generation/ @f0rmiga

# The proposals dir corresponds to the Bazel proposals process, documented
# here: https://bazel.build/designs/index.html
/proposals/ @brandjon @lberki
# Toolchains
/python/repositories.bzl @f0rmiga
/python/private/toolchains_repo.bzl @f0rmiga
/python/tests/toolchains/ @f0rmiga

# Certain repo metadata files should stay as-is, particularly these.
/LICENSE @brandjon @lberki
/CONTRIBUTING.md @brandjon @lberki
# pip_parse related code
/python/pip_install/ @hrfuller
55 changes: 11 additions & 44 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,11 @@
## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)


## PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

- [ ] Bugfix
- [ ] Feature (please, look at the "Scope of the project" section in the README.md file)
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

Issue Number: N/A


## What is the new behavior?


## Does this PR introduce a breaking change?

- [ ] Yes
- [ ] No


<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->


## Other information

PR Instructions/requirements
* Title uses `type: description` format. See CONTRIBUTING.md for types.
* Common types are: build, docs, feat, fix, refactor, revert, test
* Breaking changes include "!" after the type and a "BREAKING CHANGES:"
section at the bottom.
* Body text describes:
* Why this change is being made, briefly.
* Before and after behavior, as applicable
* References issue number, as applicable
* Update docs and tests, as applicable
* Delete these instructions prior to sending the PR
8 changes: 0 additions & 8 deletions .github/workflows/ci.bazelrc

This file was deleted.

98 changes: 98 additions & 0 deletions .github/workflows/create_archive_and_notes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#!/usr/bin/env bash
# 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.

set -o errexit -o nounset -o pipefail

# Set by GH actions, see
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
TAG=${GITHUB_REF_NAME}
# A prefix is added to better match the GitHub generated archives.
PREFIX="rules_python-${TAG}"
ARCHIVE="rules_python-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

cat > release_notes.txt << EOF
## Using Bzlmod with Bazel 6

Add to your \`MODULE.bazel\` file:

\`\`\`starlark
bazel_dep(name = "rules_python", version = "${TAG}")

pip = use_extension("@rules_python//python:extensions.bzl", "pip")

pip.parse(
name = "pip",
requirements_lock = "//:requirements_lock.txt",
)

use_repo(pip, "pip")

# (Optional) Register a specific python toolchain instead of using the host version
python = use_extension("@rules_python//python:extensions.bzl", "python")

python.toolchain(
name = "python3_9",
python_version = "3.9",
)

use_repo(python, "python3_9_toolchains")

register_toolchains(
"@python3_9_toolchains//:all",
)
\`\`\`

## Using WORKSPACE

Paste this snippet into your \`WORKSPACE\` file:

\`\`\`starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_python",
sha256 = "${SHA}",
strip_prefix = "${PREFIX}",
url = "https://github.com/bazelbuild/rules_python/releases/download/${TAG}/rules_python-${TAG}.tar.gz",
)

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()
\`\`\`

### Gazelle plugin

Paste this snippet into your \`WORKSPACE\` file:

\`\`\`starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python_gazelle_plugin",
sha256 = "${SHA}",
strip_prefix = "${PREFIX}/gazelle",
url = "https://github.com/bazelbuild/rules_python/releases/download/${TAG}/rules_python-${TAG}.tar.gz",
)

# To compile the rules_python gazelle extension from source,
# we must fetch some third-party go dependencies that it uses.

load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps")

_py_gazelle_deps()
\`\`\`
EOF
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

# Cut a release whenever a new tag is pushed to the repo.
name: Release

Expand All @@ -12,16 +26,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: bazel test //...
- name: Create release archive and notes
run: .github/workflows/create_archive_and_notes.sh
- name: Publish wheel dist
env:
# Bazelisk will download bazel to here
XDG_CACHE_HOME: ~/.cache/bazel-repo
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //...
- name: Prepare workspace snippet
run: .github/workflows/workspace_snippet.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
# This special value tells pypi that the user identity is supplied within the token
TWINE_USERNAME: __token__
# Note, the PYPI_API_TOKEN is for the rules-python pypi user, added by @rickylev on
# https://github.com/bazelbuild/rules_python/settings/secrets/actions
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: bazel run --stamp --embed_label=${{ github.ref_name }} //python/runfiles:wheel.publish
- name: Release
uses: softprops/action-gh-release@v1
with:
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
fail_on_unmatched_files: true
files: rules_python-*.tar.gz
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

# See https://github.com/marketplace/actions/close-stale-issues

name: Mark stale issues and pull requests
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/workspace_snippet.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,5 @@ user.bazelrc
*.swp
*.swo

# Go/Gazelle files
# These otherwise match patterns above
!go.mod
!BUILD.out

# Python cache
**/__pycache__/
Loading