@@ -27,6 +27,11 @@ BEGIN_UNRELEASED_TEMPLATE
2727## Unreleased 
2828
2929[0.0.0]: https://github.com/bazel-contrib/rules_python/releases/tag/0.0.0 
30+ and the sha256 values 
31+   behave differently when using `github.com` and the private mirror that mirrors 
32+   `github.com`. The contents of the `.sha256` files differ. What is more, to be able 
33+   to use the private mirror I need to set the `base_url` attribute in the uv.configure. 
34+   The bazel downloader config is not enough. 
3035
3136{#v0-0-0-changed} 
3237### Changed 
@@ -66,8 +71,8 @@ END_UNRELEASED_TEMPLATE
6671*  (rules) On Windows, {obj}` --bootstrap_impl=system_python `  is forced. This
6772  allows setting ` --bootstrap_impl=script `  in bazelrc for mixed-platform
6873  environments.
69- *  (rules) {obj}` pip_compile `  now generates a ` .test `  target. The  ` _test `  target is deprecated 
70-   and will be removed in the next major release.
74+ *  (rules) {obj}` compile_pip_requirements `  now generates a ` .test `  target. The
75+   ` _test `  target is deprecated  and will be removed in the next major release.
7176  ([ #2794  ] ( https://github.com/bazel-contrib/rules_python/issues/2794 ) 
7277*  (py_wheel) py_wheel always creates zip64-capable wheel zips
7378
@@ -86,6 +91,12 @@ END_UNRELEASED_TEMPLATE
8691  multiple times.
8792*  (tools/wheelmaker.py) Extras are now preserved in Requires-Dist metadata when using requires_file
8893  to specify the requirements.
94+ *  (pypi) Use bazel downloader for direct URL references and correctly detect the filenames from
95+   various URL formats - URL encoded version strings get correctly resolved, sha256 value can be
96+   also retrieved from the URL as opposed to only the ` --hash `  parameter. Fixes
97+   [ #2363  ] ( https://github.com/bazel-contrib/rules_python/issues/2363 ) .
98+ *  (pypi) ` whl_library `  now infers file names from its ` urls `  attribute correctly.
99+ *  (py_test, py_binary) Allow external files to be used for main
89100
90101{#v0-0-0-added}
91102### Added  
@@ -99,6 +110,8 @@ END_UNRELEASED_TEMPLATE
99110  Set the ` RULES_PYTHON_ENABLE_PIPSTAR=1 `  environment variable to enable it.
100111*  (uv) Handle ` .netrc `  and ` auth_patterns `  auth when downloading ` uv ` . Work towards
101112  [ #1975  ] ( https://github.com/bazel-contrib/rules_python/issues/1975 ) .
113+ *  (utils) Add a way to run a REPL for any ` rules_python `  target that returns
114+   a ` PyInfo `  provider.
102115
103116{#v0-0-0-removed}
104117### Removed  
@@ -185,7 +198,7 @@ END_UNRELEASED_TEMPLATE
185198  packages through SimpleAPI unless they are pulled through direct URL
186199  references. Fixes [ #2023  ] ( https://github.com/bazel-contrib/rules_python/issues/2023 ) .
187200  In case you see issues with ` rules_python `  being too eager to fetch the SimpleAPI
188-   metadata, you can use the newly added {attr}` pip.parse.experimental_skip_sources  ` 
201+   metadata, you can use the newly added {attr}` pip.parse.simpleapi_skip  ` 
189202  to skip metadata fetching for those packages.
190203*  (uv) A {obj}` lock `  rule that is the replacement for the
191204  {obj}` compile_pip_requirements ` . This may still have rough corners
@@ -246,7 +259,7 @@ END_UNRELEASED_TEMPLATE
246259
247260{#v1-3-0-added}
248261### Added  
249- *  (python) {attr }` python.defaults `  has been added to allow users to
262+ *  (python) {obj }` python.defaults `  has been added to allow users to
250263  set the default python version in the root module by reading the
251264  default version number from a file or an environment variable.
252265*  {obj}` //python/bin:python ` : convenience target for directly running an
@@ -266,7 +279,7 @@ END_UNRELEASED_TEMPLATE
266279  and py_library rules
267280  ([ #1647  ] ( https://github.com/bazel-contrib/rules_python/issues/1647 ) )
268281*  (rules) Added env-var to allow additional interpreter args for stage1 bootstrap.
269-   See {obj }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS `  environment variable.
282+   See {any }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS `  environment variable.
270283  Only applicable for {obj}` --bootstrap_impl=script ` .
271284*  (rules) Added {obj}` interpreter_args `  attribute to ` py_binary `  and ` py_test ` ,
272285  which allows pass arguments to the interpreter before the regular args.
@@ -372,7 +385,7 @@ END_UNRELEASED_TEMPLATE
372385  values. Fixes [ #2466  ] ( https://github.com/bazel-contrib/rules_python/issues/2466 ) .
373386*  (py_proto_library) Fix import paths in Bazel 8.
374387*  (whl_library) Now the changes to the dependencies are correctly tracked when
375-   PyPI packages used in {bzl : obj } ` whl_library `  during the ` repository_rule `  phase
388+   PyPI packages used in ` whl_library `  during the repository rule  phase
376389  change. Fixes [ #2468  ] ( https://github.com/bazel-contrib/rules_python/issues/2468 ) .
377390+  (gazelle) Gazelle no longer ignores ` setup.py `  files by default. To restore
378391  this behavior, apply the ` # gazelle:python_ignore_files setup.py `  directive.
@@ -391,7 +404,7 @@ END_UNRELEASED_TEMPLATE
391404*  (pypi) Freethreaded packages are now fully supported in the
392405  {obj}` experimental_index_url `  usage or the regular ` pip.parse `  usage.
393406  To select the free-threaded interpreter in the repo phase, please use
394-   the documented [ env] ( / environment-variables.html )  variables.
407+   the documented [ env] ( environment-variables )  variables.
395408  Fixes [ #2386  ] ( https://github.com/bazel-contrib/rules_python/issues/2386 ) .
396409*  (toolchains) Use the latest astrahl-sh toolchain release [ 20241206]  for Python versions:
397410    *  3.9.21
@@ -485,7 +498,7 @@ Other changes:
485498  for the latest toolchain versions for each minor Python version. You can control
486499  the toolchain selection by using the
487500  {bzl: obj }` //python/config_settings:py_linux_libc `  build flag.
488- *  (providers) Added {obj}` py_runtime_info .site_init_template`  and
501+ *  (providers) Added {obj}` PyRuntimeInfo .site_init_template`  and
489502  {obj}` PyRuntimeInfo.site_init_template `  for specifying the template to use to
490503  initialize the interpreter via venv startup hooks.
491504*  (runfiles) (Bazel 7.4+) Added support for spaces and newlines in runfiles paths
@@ -683,8 +696,8 @@ Other changes:
683696*  (bzlmod) The default value for the {obj}` --python_version `  flag will now be
684697  always set to the default python toolchain version value.
685698*  (bzlmod) correctly wire the {attr}` pip.parse.extra_pip_args `  all the
686-   way to {obj} ` whl_library ` . What is more we will pass the ` extra_pip_args `  to
687-   {obj} ` whl_library `  for ` sdist `  distributions when using
699+   way to ` whl_library ` . What is more we will pass the ` extra_pip_args `  to
700+   ` whl_library `  for ` sdist `  distributions when using
688701  {attr}` pip.parse.experimental_index_url ` . See
689702  [ #2239  ] ( https://github.com/bazel-contrib/rules_python/issues/2239 ) .
690703*  (whl_filegroup): Provide per default also the ` RECORD `  file
@@ -732,8 +745,8 @@ Other changes:
732745
733746{#v0-37-0-removed}
734747### Removed  
735- *  (precompiling) {obj} ` --precompile_add_to_runfiles `  has been removed.
736- *  (precompiling) {obj} ` --pyc_collection `  has been removed. The ` pyc_collection ` 
748+ *  (precompiling) ` --precompile_add_to_runfiles `  has been removed.
749+ *  (precompiling) ` --pyc_collection `  has been removed. The ` pyc_collection ` 
737750  attribute now bases its default on {obj}` --precompile ` .
738751*  (precompiling) The {obj}` precompile=if_generated_source `  value has been removed.
739752*  (precompiling) The {obj}` precompile_source_retention=omit_if_generated_source `  value has been removed.
@@ -785,7 +798,7 @@ Other changes:
785798  in extra_requires in py_wheel rule.
786799*  (rules) Prevent pytest from trying run the generated stage2
787800  bootstrap .py file when using {obj}` --bootstrap_impl=script ` 
788- *  (toolchain) The {bzl : obj } ` gen_python_config_settings `  has been fixed to include
801+ *  (toolchain) The ` gen_python_config_settings `  has been fixed to include
789802  the flag_values from the platform definitions.
790803
791804{#v0-36-0-added}
@@ -1200,9 +1213,9 @@ Other changes:
12001213  depend on legacy labels instead of the hub repo aliases and you use the
12011214  ` experimental_requirement_cycles ` , now is a good time to migrate.
12021215
1203- [ python_default_visibility ] : gazelle/README.md#directive-python_default_visibility 
1216+ [ python_default_visibility ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_default_visibility
12041217[ test_file_pattern_issue ] : https://github.com/bazel-contrib/rules_python/issues/1816 
1205- [ test_file_pattern_docs ] : gazelle/README.md#directive-python_test_file_pattern 
1218+ [ test_file_pattern_docs ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_test_file_pattern
12061219[ 20240224 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240224. 
12071220[ 20240415 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240415. 
12081221
0 commit comments