Skip to content

Commit f87b780

Browse files
Use uv build backend for changelog tool
This changes the build backend for the changelog tool to uv, which is what we're using to manage the project anyway. The project was also renamed to `smithy_changelog` to be more explicit, and the module name was also renamed.
1 parent 8563b40 commit f87b780

File tree

11 files changed

+37
-30
lines changed

11 files changed

+37
-30
lines changed

.changes/amend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# SPDX-License-Identifier: Apache-2.0
4-
from tool.amend import main
4+
from smithy_changelog.amend import main
55

66

77
if __name__ == "__main__":

.changes/new-change

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# SPDX-License-Identifier: Apache-2.0
4-
from tool.new import main
4+
from smithy_changelog.new import main
55

66

77
if __name__ == "__main__":

.changes/pyproject.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[project]
2-
name = "changelog"
2+
name = "smithy_changelog"
33
version = "0.1.0"
44
description = "A staged changelog tool for Smithy."
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = []
88

99
[project.scripts]
10-
amend = "tool.amend:main"
11-
render = "tool.render:main"
12-
new-change = "tool.new:main"
10+
amend = "smithy_changelog.amend:main"
11+
render = "smithy_changelog.render:main"
12+
new-change = "smithy_changelog.new:main"
1313

1414
[dependency-groups]
1515
lint = [
@@ -20,6 +20,13 @@ typing = [
2020
"pyright>=1.1.403"
2121
]
2222

23+
[build-system]
24+
requires = ["uv_build>=0.8.2,<0.9.0"]
25+
build-backend = "uv_build"
26+
27+
[tool.uv.build-backend]
28+
module-root = ""
29+
2330
[tool.uv]
2431
package = true
2532
required-version = ">=0.7.21"

.changes/render

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# SPDX-License-Identifier: Apache-2.0
4-
from tool.render import main
4+
from smithy_changelog.render import main
55

66

77
if __name__ == "__main__":
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)