-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
#!/bin/bash | ||
|
||
version=$(cat VERSION) | ||
|
||
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 generate \ | ||
-i https://raw.githubusercontent.com/localstack/openapi/refs/heads/main/openapi/emulators/localstack-spec-latest.yml \ | ||
--skip-validate-spec \ | ||
-g python \ | ||
-o /local//packages/localstack-sdk-generated \ | ||
--global-property models,apis,supportingFiles \ | ||
-p packageName=localstack.sdk \ | ||
-p packageVersion=$version \ | ||
--template-dir /local/packages/localstack-sdk-generated/templates \ | ||
--global-property apiTests=false,modelTests=false \ | ||
--global-property apiDocs=false,modelDocs=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "localstack-sdk-generated" | ||
version = "0.0.4" | ||
dynamic = ["version"] | ||
description = "LocalStack REST API - Generated Code" | ||
authors = [ | ||
{ name = "LocalStack Contributors", email = "[email protected]" } | ||
|
@@ -18,13 +18,17 @@ dev-dependencies = [ | |
] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" | ||
root = "../.." | ||
|
||
[tool.setuptools] | ||
package-dir = { "" = "."} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["*"] | ||
exclude = ["tests*"] | ||
exclude = ["tests*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "localstack-sdk-generated" | ||
version = "{{{packageVersion}}}" | ||
dynamic = ["version"] | ||
description = "LocalStack REST API - Generated Code" | ||
authors = [ | ||
{ name = "LocalStack Contributors", email = "[email protected]" } | ||
|
@@ -18,13 +18,17 @@ dev-dependencies = [ | |
] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" | ||
root = "../.." | ||
|
||
[tool.setuptools] | ||
package-dir = { "" = "."} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["*"] | ||
exclude = ["tests*"] | ||
exclude = ["tests*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ description = "Python SDK for LocalStack" | |
authors = [ | ||
{ name = "LocalStack Team", email = "[email protected]"} | ||
] | ||
version = "0.0.4" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"localstack-sdk-generated" | ||
] | ||
|
@@ -17,9 +17,13 @@ Repository = "https://github.com/localstack/localstack-sdk-python.git" | |
Issues = "https://github.com/localstack/localstack-sdk-python/issues" | ||
|
||
[build-system] | ||
requires = ["setuptools>=64"] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_file = "localstack-sdk-python/localstack/sdk/version.py" | ||
local_scheme = "no-local-version" | ||
|
||
[tool.setuptools.dynamic] | ||
readme = { file = ["README.md"], content-type = "text/markdown"} | ||
|
||
|
@@ -30,6 +34,8 @@ dev-dependencies=[ | |
"boto3>=1.35.40", | ||
] | ||
|
||
cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true , tags = true }}] | ||
|
||
[tool.uv.sources] | ||
localstack-sdk-generated = { workspace = true } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import localstack.sdk.aws | ||
from localstack.sdk import version | ||
|
||
|
||
def test_client_version(): | ||
client = localstack.sdk.aws.AWSClient() | ||
assert version.version in client._api_client.user_agent |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.