pulumi/tests/integration/dynamic
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
..
python Add requirements.txt to all test projects 2019-08-23 15:02:58 -07:00
python-broken Fix hanging deployments and improve errmsgs for programs with incorrect typings for output values (#7049) 2021-06-23 11:27:17 -04:00
python-non-main Allow Python dynamic provider resources to be constructed outside of `__main__` (#7755) 2021-08-12 20:02:17 -07:00