Skip to content

Commit

Permalink
Convert Python SDK to use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Nov 15, 2024
1 parent d6407b9 commit 2d151d2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 46 deletions.
4 changes: 3 additions & 1 deletion provider/cmd/pulumi-resource-sentry/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/jianyuan/terraform-provider-sentry)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-sentry` repo](https://github.com/pulumiverse/pulumi-sentry/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-sentry` repo](https://github.com/jianyuan/terraform-provider-sentry/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
"pyproject": {}
"pyproject": {
"enabled": true
}
}
},
"config": {
Expand Down
1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func Provider() tfbridge.ProviderInfo {
"pulumi": ">=3.0.0,<4.0.0",
},
PackageName: "pulumiverse_sentry",
PyProject: struct{ Enabled bool }{true},
RespectSchemaVersion: true,
},
Golang: &tfbridge.GolangInfo{
Expand Down
22 changes: 22 additions & 0 deletions sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[project]
name = "pulumiverse_sentry"
description = "A Pulumi package for creating and managing Sentry resources."
dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""]
keywords = ["pulumi", "sentry", "category/cloud"]
readme = "README.md"
requires-python = ">=3.8"
version = "0.0.0a0+dev"
[project.license]
text = "Apache-2.0"
[project.urls]
Homepage = "https://github.com/pulumiverse"
Repository = "https://github.com/pulumiverse/pulumi-sentry"

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool]
[tool.setuptools]
[tool.setuptools.package-data]
pulumiverse_sentry = ["py.typed", "pulumi-plugin.json"]
45 changes: 0 additions & 45 deletions sdk/python/setup.py

This file was deleted.

0 comments on commit 2d151d2

Please sign in to comment.