mirror of https://github.com/pulumi/pulumi.git
fd7a9a88c0
In preparation for supporting Python 3.12... These tests have a `requirements.txt` file that depends on the released version of the `pulumi` package, but that package depends on the old `grpcio` package that does not work Python 3.12. Note that `ProgramTest` first installs `requirements.txt` in the virtual environment it creates, then it installs any local dependencies specified via `ProgramTestOptions.Dependencies`. To make these tests work on Python 3.12, remove `pulumi` from `requirements.txt`. After we publish a new `pulumi` package that supports Python 3.12, we could consider reverting this change. Aside: I considered changing `ProgramTest` to install `ProgramTestOptions.Dependencies` deps _before_ `requirements.txt` deps. That would avoid the need to change these `requirements.txt` files and would work for the most part. If the version specified in `requirements.txt` is satisfied by the already installed local version, then pip doesn't install the version from `requirements.txt`. Where this doesn't work is if `requirements.txt` specifies an older version range. Then the local dependency would be uninstalled and the older version from `requirements.txt` would be installed. Which isn't the behavior we want. And there's very likely `requirements.txt` files in other repos in this situation (there were even some in this PR that depend on v2.x!) and I didn't want to change the behavior for those. We'd have to make it an opt-in `ProgramTestOptions` option. It seemed simpler to just modify these `requirements.txt` files. Note: The change to `tests/integration/python/stack_truncate/main_dir_specified/bar/requirements.txt` depends on https://github.com/pulumi/pulumi/pull/15225. It's going to fail without that change. |
||
---|---|---|
.. | ||
Pulumi.yaml | ||
__main__.py | ||
requirements.txt |