pulumi/sdk/python
Luke Hoban ebb0e6aaed
Allow Python dynamic provider resources to be constructed outside of __main__ (#7755)
The underlying library `dill` that we use for serializing dynamic providers into Pulumi state for Python dynamic providers serializes classes differently depending on whether they are in `__main__` or in another module.  We need the by-value serialization to be applied in all cases.

https://github.com/uqfoundation/dill/issues/424 is tracking adding the ability into `dill` to specify this by-value serialization explicitly, but until then, we will temporarily re-write the `__module__` of a provder class prior to serialization, so that `dill` behaves as we need for the dynamic provider use case.

Fixes #7453.
2021-08-12 20:02:17 -07:00
..
cmd [sdk/python] Warn when a secret config is read as a non-secret (#7078) 2021-05-18 15:00:30 -07:00
dist Fix windows build 2020-12-07 15:58:30 -08:00
lib Allow Python dynamic provider resources to be constructed outside of __main__ (#7755) 2021-08-12 20:02:17 -07:00
stubs Fix bug in semver usage by enabling typechecking (#6833) 2021-04-21 15:48:57 -04:00
.gitignore add .venv/ to python .gitignore to ignore when using PIPENV_VENV_IN_PROJECT=1 2019-06-19 12:43:04 -07:00
.pylintrc Support remote components in Python (#5375) 2020-09-30 14:09:20 -07:00
Makefile Attempt to avoid triple-building projects in the solution (#7638) 2021-07-28 20:31:11 -04:00
mypy.ini Fix bug in semver usage by enabling typechecking (#6833) 2021-04-21 15:48:57 -04:00
Pipfile Revert "Fix hangs in core SDK when monitor unavailable (#7734)" (#7744) 2021-08-11 17:13:37 -04:00
python.go Avoid double-quailfying venv folder path (#6599) 2021-03-24 15:51:46 -04:00
python_test.go Update pip/setuptools/wheel in virtual environment (#5042) 2020-07-23 13:33:09 -07:00
shim_unix.go Add copyright notice 2020-12-07 14:17:45 -08:00
shim_windows.go Add copyright notice 2020-12-07 14:17:45 -08:00