Skip to content

Commit

Permalink
Revert python and dotnet requirements
Browse files Browse the repository at this point in the history
- We want to depend on the curret major version for python. This is being fixed in codegen here: pulumi/pulumi#16151
- The default dotnet range resolves to minimum version rather than the latest version which could be problematic.
  • Loading branch information
danielrbradley committed May 9, 2024
1 parent f464965 commit c416a7b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions provider/cmd/pulumi-resource-kafka/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
},
"language": {
"csharp": {
"packageReferences": {
"Pulumi": "3.*"
},
"namespaces": {
"kafka": "Kafka"
},
Expand All @@ -34,6 +37,9 @@
"respectSchemaVersion": true
},
"python": {
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/Mongey/terraform-provider-kafka)\n\u003e distributed under [MIT](https://mit-license.org/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-kafka` repo](https://github.com/pulumi/pulumi-kafka/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-kafka` repo](https://github.com/Mongey/terraform-provider-kafka/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
Expand Down
6 changes: 6 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func Provider() tfbridge.ProviderInfo {
Python: (func() *tfbridge.PythonInfo {
i := &tfbridge.PythonInfo{
RespectSchemaVersion: true,
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
}
i.PyProject.Enabled = true
return i
Expand All @@ -125,6 +128,9 @@ func Provider() tfbridge.ProviderInfo {
},
CSharp: &tfbridge.CSharpInfo{
RespectSchemaVersion: true,
PackageReferences: map[string]string{
"Pulumi": "3.*",
},
Namespaces: map[string]string{
mainPkg: "Kafka",
},
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Pulumi.Kafka.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c416a7b

Please sign in to comment.