Skip to content

Commit b2579f6

Browse files
committed
dynamic versions + lock file update
1 parent 58a20fb commit b2579f6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

bin/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
version=$(cat VERSION)
3+
version=$(uvx --from setuptools-scm python -m setuptools_scm)
44

55
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 generate \
66
-i https://raw.githubusercontent.com/localstack/openapi/refs/heads/main/openapi/emulators/localstack-spec-latest.yml \

packages/localstack-sdk-generated/pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "localstack-sdk-generated"
3-
version = "0.0.4"
3+
dynamic = ["version"]
44
description = "LocalStack REST API - Generated Code"
55
authors = [
66
{ name = "LocalStack Contributors", email = "info@localstack.cloud" }
@@ -18,13 +18,17 @@ dev-dependencies = [
1818
]
1919

2020
[build-system]
21-
requires = ["setuptools"]
21+
requires = ["setuptools", "setuptools_scm>=8"]
2222
build-backend = "setuptools.build_meta"
2323

24+
[tool.setuptools_scm]
25+
local_scheme = "no-local-version"
26+
root = "../.."
27+
2428
[tool.setuptools]
2529
package-dir = { "" = "."}
2630

2731
[tool.setuptools.packages.find]
2832
where = ["."]
2933
include = ["*"]
30-
exclude = ["tests*"]
34+
exclude = ["tests*"]

uv.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)