Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf993e87

Browse files
committed
Use setuptools_scm to compute version number
1 parent74f08bd commitf993e87

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
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: 2 additions & 2 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+
version ="0.1.dev9"
44
description ="LocalStack REST API - Generated Code"
55
authors = [
66
{name ="LocalStack Contributors",email ="info@localstack.cloud" }
@@ -27,4 +27,4 @@ package-dir = { "" = "."}
2727
[tool.setuptools.packages.find]
2828
where = ["."]
2929
include = ["*"]
30-
exclude = ["tests*"]
30+
exclude = ["tests*"]

‎pyproject.toml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Python SDK for LocalStack"
55
authors = [
66
{name ="LocalStack Team",email ="info@localstack.cloud"}
77
]
8-
version ="0.0.4"
8+
dynamic =["version"]
99
dependencies = [
1010
"localstack-sdk-generated"
1111
]
@@ -17,9 +17,12 @@ Repository = "https://github.com/localstack/localstack-sdk-python.git"
1717
Issues ="https://github.com/localstack/localstack-sdk-python/issues"
1818

1919
[build-system]
20-
requires = ["setuptools>=64"]
20+
requires = ["setuptools>=64","setuptools_scm>=8"]
2121
build-backend ="setuptools.build_meta"
2222

23+
[tool.setuptools_scm]
24+
local_scheme ="no-local-version"
25+
2326
[tool.setuptools.dynamic]
2427
readme = {file = ["README.md"],content-type ="text/markdown"}
2528

@@ -29,6 +32,7 @@ dev-dependencies=[
2932
"ruff>=0.6.9",
3033
"boto3>=1.35.40",
3134
]
35+
cache-keys = [{file ="pyproject.toml" }, {git = {commit =true ,tags =true }}]
3236

3337
[tool.uv.sources]
3438
localstack-sdk-generated = {workspace =true }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp