pulumi/pkg/codegen/testing/test/testdata/output-funcs
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
..
docs [go/sdk-gen] Generate output-versioned invokes for functions without inputs (#13694) 2023-10-02 12:53:06 +00:00
dotnet Generate output-versioned invokes for functions without inputs 2023-08-08 14:00:30 +02:00
dotnet-extras/Tests export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go [go/sdk-gen] Fixes plain and optional properties for generated types for Go SDKs using generics (#14616) 2023-11-21 16:43:51 +00:00
go-extras/tests Replace PropertyValue type casts with method calls (#14538) 2023-11-12 20:10:47 +00:00
nodejs Support returning plain values from methods (#13592) 2023-11-18 06:02:06 +00:00
nodejs-extras/tests [codegen/node] Implement support for lazy-loaded Node modules (#10538) 2022-09-01 18:42:44 -04:00
python [sdkgen/python] Use `importlib.metadata` instead of `pkg_resources` (#15266) 2024-01-27 02:13:37 +00:00
python-extras/tests export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
schema.json [go/sdk-gen] Generating SDK with generics (#13828) 2023-09-19 10:28:50 +00:00