pulumi/changelog/pending
Justin Van Patten 87b611b1f4
[sdkgen/python] Use `importlib.metadata` instead of `pkg_resources` (#15266)
This addresses two issues:

1. `pkg_resource` is deprecated in favor of `importlib.resources` and
`importlib.metadata`
(https://setuptools.pypa.io/en/latest/pkg_resources.html)

2. Generated provider SDKs don't indicate that they have a dependency on
`setuptools` (which includes `pkg_resources`), which can cause problems
when installing the package in environments that don't have `setuptools`
installed. That's not often common in Pulumi projects, as the virtual
environment created by the CLI will include `setuptools`, however, if
creating the virtual environment manually with `python -m venv`,
`setuptools` is no longer included in the created virtual environment as
of Python 3.12.

Fixes #12414

Based on #14002, thanks @edgarrmondragon!

---------

Co-authored-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
Co-authored-by: Fraser Waters <fraser@pulumi.com>
2024-01-27 02:13:37 +00:00
..
20230920--programgen--use-importlib-metadata-instead-of-pkg_resources.yaml [sdkgen/python] Use `importlib.metadata` instead of `pkg_resources` (#15266) 2024-01-27 02:13:37 +00:00
20231228--backend-filestate--upgrade-gocloud-dev-to-the-latest-version.yaml upgrade gocloud.dev take 2 (#15202) 2024-01-26 13:14:17 +00:00
20240104--auto-go--add-new-api-to-install-the-pulumi-cli-from-the-automation-api.yaml [auto/go] Add new API to install the Pulumi CLI (#15049) 2024-01-26 16:01:17 +00:00
20240122--auto-python--add-new-api-to-install-the-pulumi-cli.yaml [auto/python] Add new API to install the Pulumi CLI (#15204) 2024-01-26 14:30:19 +00:00
20240122--engine--fix-a-hang-in-preview-import-file.yaml Fix hang in --preview-file (#15203) 2024-01-25 18:03:38 +00:00
20240124--auto-nodejs--allow-disabling-version-validation-when-using-a-custom-pulumicomamnd-instance.yaml Allow disabling version validation when using a custom PulumiCommand isntance (#15242) 2024-01-26 13:41:10 +00:00
20240124--engine--engine-will-now-error-if-aliases-request-a-parent-with-no-urn.yaml Test that an empty parent URN in an alias is treated as the default parent (#15232) 2024-01-26 18:29:22 +00:00
20240125--programgen-nodejs--fixes-generated-expression-for-filebase64-function-to-use-fs-readfilesync-directly-with-base64-encoding-option.yaml [program-gen/ts] Fixes generated expression for filebase64 function to use fs.readFileSync directly (#15253) 2024-01-25 18:14:38 +00:00