@@ -20,24 +20,33 @@ A brief description of the categories of changes:
20
20
* Particular sub-systems are identified using parentheses, e.g. ` (bzlmod) ` or
21
21
` (docs) ` .
22
22
23
+ {#v0-0-0}
23
24
## Unreleased
24
25
26
+ [ 0.0.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.0.0
27
+
28
+ {#v0-0-0-changed}
25
29
### Changed
26
30
- Nothing yet
27
31
32
+ {#v0-0-0-fixed}
28
33
### Fixed
29
34
- Nothing yet
30
35
36
+ {#v0-0-0-added}
31
37
### Added
32
38
- Nothing yet
33
39
40
+ {#v0-0-0-removed}
34
41
### Removed
35
42
- Nothing yet
36
43
44
+ {#v0-37-0}
37
45
## [ 0.37.0] - 2024-10-18
38
46
39
- [ x.x.x ] : https://github.com/bazelbuild/rules_python/releases/tag/0.37.0
47
+ [ 0.37.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.37.0
40
48
49
+ {#v0-37-0-changed}
41
50
### Changed
42
51
* ** BREAKING** ` py_library ` no longer puts its source files or generated pyc
43
52
files in runfiles; it's the responsibility of consumers (e.g. binaries) to
@@ -54,6 +63,7 @@ A brief description of the categories of changes:
54
63
{obj}` --@rules_python//python/config_settings:exec_tools_toolchain=disabled ` .
55
64
* (deps) stardoc 0.6.2 added as dependency.
56
65
66
+ {#v0-37-0-fixed}
57
67
### Fixed
58
68
* (bzlmod) The ` python.override(minor_mapping) ` now merges the default and the
59
69
overridden versions ensuring that the resultant ` minor_mapping ` will always
@@ -84,6 +94,7 @@ A brief description of the categories of changes:
84
94
outside of the ` //:BUILD.bazel ` file.
85
95
Fixes [ #2299 ] ( https://github.com/bazelbuild/rules_python/issues/2299 ) .
86
96
97
+ {#v0-37-0-added}
87
98
### Added
88
99
* (py_wheel) Now supports ` compress = (True|False) ` to allow disabling
89
100
compression to speed up development.
@@ -107,17 +118,20 @@ A brief description of the categories of changes:
107
118
108
119
[ 20241008 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20241008
109
120
121
+ {#v0-37-0-removed}
110
122
### Removed
111
123
* (precompiling) {obj}` --precompile_add_to_runfiles ` has been removed.
112
124
* (precompiling) {obj}` --pyc_collection ` has been removed. The ` pyc_collection `
113
125
attribute now bases its default on {obj}` --precompile ` .
114
126
* (precompiling) The {obj}` precompile=if_generated_source ` value has been removed.
115
127
* (precompiling) The {obj}` precompile_source_retention=omit_if_generated_source ` value has been removed.
116
128
129
+ {#v0-36-0}
117
130
## [ 0.36.0] - 2024-09-24
118
131
119
132
[ 0.36.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.36.0
120
133
134
+ {#v0-36-0-changed}
121
135
### Changed
122
136
* (gazelle): Update error messages when unable to resolve a dependency to be more human-friendly.
123
137
* (flags) The {obj}` --python_version ` flag now also returns
@@ -135,6 +149,7 @@ A brief description of the categories of changes:
135
149
available.
136
150
* (bazel) Minimum bazel 7 version that we test against has been bumped to ` 7.1 ` .
137
151
152
+ {#v0-36-0-fixed}
138
153
### Fixed
139
154
* (whl_library): Remove ` --no-index ` and add ` --no-build-isolation ` to the
140
155
` pip install ` command when installing a wheel from a local file, which happens
@@ -161,6 +176,7 @@ A brief description of the categories of changes:
161
176
* (toolchain) The {bzl: obj }` gen_python_config_settings ` has been fixed to include
162
177
the flag_values from the platform definitions.
163
178
179
+ {#v0-36-0-added}
164
180
### Added
165
181
* (bzlmod): Toolchain overrides can now be done using the new
166
182
{bzl: obj }` python.override ` , {bzl: obj }` python.single_version_override ` and
@@ -182,15 +198,18 @@ A brief description of the categories of changes:
182
198
* (toolchains) Added ` //python:none ` , a special target for use with
183
199
{obj}` py_exec_tools_toolchain.exec_interpreter ` to treat the value as ` None ` .
184
200
201
+ {#v0-36-0-removed}
185
202
### Removed
186
203
* (toolchains): Removed accidentally exposed ` http_archive ` symbol from
187
204
` python/repositories.bzl ` .
188
205
* (toolchains): An internal _ is_python_config_setting_ macro has been removed.
189
206
207
+ {#v0-35-0}
190
208
## [ 0.35.0] - 2024-08-15
191
209
192
210
[ 0.35.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.35.0
193
211
212
+ {#v0-35-0-changed}
194
213
### Changed
195
214
* (whl_library) A better log message when the wheel is built from an sdist or
196
215
when the wheel is downloaded using ` download_only ` feature to aid debugging.
@@ -204,6 +223,7 @@ A brief description of the categories of changes:
204
223
disabling it (Requires {obj}` --bootstrap_impl=script ` )
205
224
([ #2060 ] ( https://github.com/bazelbuild/rules_python/issues/2060 ) ).
206
225
226
+ {#v0-35-0-fixed}
207
227
### Fixed
208
228
* (rules) ` compile_pip_requirements ` now sets the ` USERPROFILE ` env variable on
209
229
Windows to work around an issue where ` setuptools ` fails to locate the user's
@@ -245,6 +265,7 @@ A brief description of the categories of changes:
245
265
in the same directory as the main file.
246
266
Fixes [ #1631 ] ( https://github.com/bazelbuild/rules_python/issues/1631 ) .
247
267
268
+ {#v0-35-0-added}
248
269
### Added
249
270
* (rules) ` compile_pip_requirements ` supports multiple requirements input files as ` srcs ` .
250
271
* (rules) ` PYTHONSAFEPATH ` is inherited from the calling environment to allow
@@ -268,10 +289,12 @@ A brief description of the categories of changes:
268
289
[ pytest_bazel ] : https://pypi.org/project/pytest-bazel
269
290
[ 20240726 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240726
270
291
292
+ {#v0-34-0}
271
293
## [ 0.34.0] - 2024-07-04
272
294
273
295
[ 0.34.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.34.0
274
296
297
+ {#v0-34-0-changed}
275
298
### Changed
276
299
* ` protobuf ` /` com_google_protobuf ` dependency bumped to ` v24.4 `
277
300
* (bzlmod): optimize the creation of config settings used in pip to
@@ -283,6 +306,7 @@ A brief description of the categories of changes:
283
306
replaced by {obj}` //python/runtime_env_toolchains:all ` . The old target will be
284
307
removed in a future release.
285
308
309
+ {#v0-34-0-fixed}
286
310
### Fixed
287
311
* (bzlmod): When using ` experimental_index_url ` the ` all_requirements ` ,
288
312
` all_whl_requirements ` and ` all_data_requirements ` will now only include
@@ -313,39 +337,47 @@ A brief description of the categories of changes:
313
337
* (rules) The first element of the default outputs is now the executable again.
314
338
* (pip) Fixed crash when pypi packages lacked a sha (e.g. yanked packages)
315
339
340
+ {#v0-34-0-added}
316
341
### Added
317
342
* (toolchains) {obj}` //python/runtime_env_toolchains:all ` , which is a drop-in
318
343
replacement for the "autodetecting" toolchain.
319
344
* (gazelle) Added new ` python_label_convention ` and ` python_label_normalization ` directives. These directive
320
345
allows altering default Gazelle label format to third-party dependencies useful for re-using Gazelle plugin
321
346
with other rules, including ` rules_pycross ` . See [ #1939 ] ( https://github.com/bazelbuild/rules_python/issues/1939 ) .
322
347
348
+ {#v0-34-0-removed}
323
349
### Removed
324
350
* (pip): Removes the ` entrypoint ` macro that was replaced by ` py_console_script_binary ` in 0.26.0.
325
351
352
+ {#v0-33-2}
326
353
## [ 0.33.2] - 2024-06-13
327
354
328
355
[ 0.33.2 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.33.2
329
356
357
+ {#v0-33-2-fixed}
330
358
### Fixed
331
359
* (toolchains) The {obj}` exec_tools_toolchain_type ` is disabled by default.
332
360
To enable it, set {obj}` --//python/config_settings:exec_tools_toolchain=enabled ` .
333
361
This toolchain must be enabled for precompilation to work. This toolchain will
334
362
be enabled by default in a future release.
335
363
Fixes [ #1967 ] ( https://github.com/bazelbuild/rules_python/issues/1967 ) .
336
364
365
+ {#v0-33-1}
337
366
## [ 0.33.1] - 2024-06-13
338
367
339
368
[ 0.33.1 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.33.1
340
369
370
+ {#v0-33-1-fixed}
341
371
### Fixed
342
372
* (py_binary) Fix building of zip file when using ` --build_python_zip `
343
373
argument. Fixes [ #1954 ] ( https://github.com/bazelbuild/rules_python/issues/1954 ) .
344
374
375
+ {#v0-33-0}
345
376
## [ 0.33.0] - 2024-06-12
346
377
347
378
[ 0.33.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.33.0
348
379
380
+ {#v0-33-0-changed}
349
381
### Changed
350
382
* (deps) Upgrade the ` pip_install ` dependencies to pick up a new version of pip.
351
383
* (toolchains) Optional toolchain dependency: ` py_binary ` , ` py_test ` , and
@@ -374,6 +406,7 @@ A brief description of the categories of changes:
374
406
` python_{version}_host ` keys if you would like to have access to a Python
375
407
interpreter that can be used in a repository rule context.
376
408
409
+ {#v0-33-0-fixed}
377
410
### Fixed
378
411
* (gazelle) Remove ` visibility ` from ` NonEmptyAttr ` .
379
412
Now empty(have no ` deps/main/srcs/imports ` attr) ` py_library/test/binary ` rules will
@@ -406,6 +439,7 @@ A brief description of the categories of changes:
406
439
* (doc) Fix the ` WORKSPACE ` requirement vendoring example. Fixes
407
440
[ #1918 ] ( https://github.com/bazelbuild/rules_python/issues/1918 ) .
408
441
442
+ {#v0-33-0-added}
409
443
### Added
410
444
* (rules) Precompiling Python source at build time is available. but is
411
445
disabled by default, for now. Set
@@ -459,21 +493,25 @@ A brief description of the categories of changes:
459
493
460
494
[ precompile-docs ] : /precompiling
461
495
496
+ {#v0-32-2}
462
497
## [ 0.32.2] - 2024-05-14
463
498
464
499
[ 0.32.2 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.32.2
465
500
501
+ {#v0-32-2-fixed}
466
502
### Fixed
467
503
468
504
* Workaround existence of infinite symlink loops on case insensitive filesystems when targeting linux platforms with recent Python toolchains. Works around an upstream [ issue] [ indygreg-231 ] . Fixes [ #1800 ] [ rules_python_1800 ] .
469
505
470
506
[ indygreg-231 ] : https://github.com/indygreg/python-build-standalone/issues/231
471
507
[ rules_python_1800 ] : https://github.com/bazelbuild/rules_python/issues/1800
472
508
509
+ {#v0-32-0}
473
510
## [ 0.32.0] - 2024-05-12
474
511
475
512
[ 0.32.0 ] : https://github.com/bazelbuild/rules_python/releases/tag/0.32.0
476
513
514
+ {#v0-32-0-changed}
477
515
### Changed
478
516
479
517
* (bzlmod): The ` MODULE.bazel.lock ` ` whl_library ` rule attributes are now
0 commit comments