DataChefHQ / damavand

Damavand is an opinionated cloud-agnostic pythonic implementation of ARC (Application Resource Controller) pattern for developing cloud-native applications with best practices.
Mozilla Public License 2.0
3 stars 0 forks source link

Pulumi CLI Incompatibility with PDM for Python #5

Open kkiani opened 2 months ago

kkiani commented 2 months ago

Description:

We are experiencing an issue when using Pulumi CLI in conjunction with PDM for dependency management in our Damavand framework, which automates the creation of Infrastructure as Code (IaC). The problem arises when running the pulumi up command, where Pulumi fails to properly install and resolve the required dependencies. This issue seems closely related to Pulumi Issue #14525, where the core problem involves Pulumi’s incompatibility with Python environments managed by PDM.

Steps to Reproduce:

  1. Set up a Python project using PDM as the dependency manager.
  2. Define Pulumi dependencies in pyproject.toml and install them using PDM.
  3. Attempt to run pulumi up from the project root.

Expected Behavior:

Pulumi should successfully resolve and install all dependencies, including both Python and required Go packages, and proceed with the deployment.

Actual Behavior:

Pulumi fails to resolve the dependencies managed by PDM, resulting in an error. The CLI appears unable to recognize or install the necessary packages, leading to deployment failures.

kkiani commented 2 weeks ago

The project Inception which is managing our project configurations is upgraded to 1.6 which is replacing PDM with Poetry. Since Pulumi already has a support for Poetry, upgrading Inception to the latest version should fix this issue.