Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit afc3697

Browse files
committed
Replace hatch-pin-jumpstarter with uv-dynamic-versioning
1 parent ca77ec1 commit afc3697

44 files changed

Lines changed: 304 additions & 639 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__templates__/driver/pyproject.toml.tmpl

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
[project]
22
name = "jumpstarter-driver-${DRIVER_NAME}"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = "Add your description here"
55
readme = "README.md"
66
license = "Apache-2.0"
77
authors = [
88
{ name = "${AUTHOR_NAME}", email = "${AUTHOR_EMAIL}" }
99
]
1010
requires-python = ">=3.11"
11+
12+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
1113
dependencies = [
1214
"anyio>=4.10.0",
13-
"jumpstarter",
15+
"jumpstarter=={{ version }}",
1416
]
1517

1618
[tool.hatch.version]
17-
source = "vcs"
18-
raw-options = { 'root' = '../../'}
19-
20-
[tool.hatch.metadata.hooks.vcs.urls]
21-
Homepage = "https://jumpstarter.dev"
22-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
19+
source = "uv-dynamic-versioning"
2320

2421
[tool.pytest.ini_options]
2522
addopts = "--cov --cov-report=html --cov-report=xml"
@@ -29,12 +26,9 @@ testpaths = ["jumpstarter_driver_${DRIVER_NAME}"]
2926
asyncio_mode = "auto"
3027

3128
[build-system]
32-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
29+
requires = ["hatchling", "uv-dynamic-versioning"]
3330
build-backend = "hatchling.build"
3431

35-
[tool.hatch.build.hooks.pin_jumpstarter]
36-
name = "pin_jumpstarter"
37-
3832
[dependency-groups]
3933
dev = [
4034
"pytest-cov>=6.0.0",

packages/hatch-pin-jumpstarter/README.md

Whitespace-only changes.

packages/hatch-pin-jumpstarter/pyproject.toml

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/hatch-pin-jumpstarter/src/hatch_pin_jumpstarter/__init__.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

packages/hatch-pin-jumpstarter/src/hatch_pin_jumpstarter/py.typed

Whitespace-only changes.
Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,55 @@
11
[project]
22
name = "jumpstarter-all"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = "Jumpstarter meta-package which will install all packages"
55
authors = [{ name = "Miguel Angel Ajo", email = "majopela@redhat.com" }]
66
readme = "README.md"
77
license = "Apache-2.0"
88
requires-python = ">=3.11"
9+
10+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
911
dependencies = [
10-
"jumpstarter",
11-
"jumpstarter-cli",
12-
"jumpstarter-cli-admin",
13-
"jumpstarter-cli-common",
14-
"jumpstarter-cli-driver",
15-
"jumpstarter-driver-can",
16-
"jumpstarter-driver-composite",
17-
"jumpstarter-driver-corellium",
18-
"jumpstarter-driver-dutlink",
19-
"jumpstarter-driver-flashers",
20-
"jumpstarter-driver-http",
21-
"jumpstarter-driver-network",
22-
"jumpstarter-driver-opendal",
23-
"jumpstarter-driver-power",
24-
"jumpstarter-driver-probe-rs",
25-
"jumpstarter-driver-pyserial",
26-
"jumpstarter-driver-qemu",
27-
"jumpstarter-driver-gpiod",
28-
"jumpstarter-driver-ridesx",
29-
"jumpstarter-driver-sdwire",
30-
"jumpstarter-driver-shell",
31-
"jumpstarter-driver-snmp",
32-
"jumpstarter-driver-ssh",
33-
"jumpstarter-driver-tftp",
34-
"jumpstarter-driver-tmt",
35-
"jumpstarter-driver-uboot",
36-
"jumpstarter-driver-ustreamer",
37-
"jumpstarter-driver-yepkit",
38-
"jumpstarter-imagehash",
39-
"jumpstarter-kubernetes",
40-
"jumpstarter-protocol",
41-
"jumpstarter-testing",
12+
"jumpstarter=={{ version }}",
13+
"jumpstarter-cli=={{ version }}",
14+
"jumpstarter-cli-admin=={{ version }}",
15+
"jumpstarter-cli-common=={{ version }}",
16+
"jumpstarter-cli-driver=={{ version }}",
17+
"jumpstarter-driver-can=={{ version }}",
18+
"jumpstarter-driver-composite=={{ version }}",
19+
"jumpstarter-driver-corellium=={{ version }}",
20+
"jumpstarter-driver-dutlink=={{ version }}",
21+
"jumpstarter-driver-flashers=={{ version }}",
22+
"jumpstarter-driver-http=={{ version }}",
23+
"jumpstarter-driver-network=={{ version }}",
24+
"jumpstarter-driver-opendal=={{ version }}",
25+
"jumpstarter-driver-power=={{ version }}",
26+
"jumpstarter-driver-probe-rs=={{ version }}",
27+
"jumpstarter-driver-pyserial=={{ version }}",
28+
"jumpstarter-driver-qemu=={{ version }}",
29+
"jumpstarter-driver-gpiod=={{ version }}",
30+
"jumpstarter-driver-ridesx=={{ version }}",
31+
"jumpstarter-driver-sdwire=={{ version }}",
32+
"jumpstarter-driver-shell=={{ version }}",
33+
"jumpstarter-driver-snmp=={{ version }}",
34+
"jumpstarter-driver-ssh=={{ version }}",
35+
"jumpstarter-driver-tftp=={{ version }}",
36+
"jumpstarter-driver-tmt=={{ version }}",
37+
"jumpstarter-driver-uboot=={{ version }}",
38+
"jumpstarter-driver-ustreamer=={{ version }}",
39+
"jumpstarter-driver-yepkit=={{ version }}",
40+
"jumpstarter-imagehash=={{ version }}",
41+
"jumpstarter-kubernetes=={{ version }}",
42+
"jumpstarter-protocol=={{ version }}",
43+
"jumpstarter-testing=={{ version }}",
4244
]
4345

4446
[tool.hatch.build.targets.wheel]
4547
packages = ["jumpstarter_all"]
4648

47-
[tool.hatch.metadata.hooks.vcs.urls]
48-
Homepage = "https://jumpstarter.dev"
49-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
50-
5149
[tool.hatch.version]
52-
source = "vcs"
53-
raw-options = { 'root' = '../../' }
50+
source = "uv-dynamic-versioning"
5451

5552
[build-system]
56-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
53+
requires = ["hatchling", "uv-dynamic-versioning"]
5754
build-backend = "hatchling.build"
5855

59-
[tool.hatch.build.hooks.pin_jumpstarter]
60-
name = "pin_jumpstarter"
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
[project]
22
name = "jumpstarter-cli-admin"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = ""
55
authors = [{ name = "Kirk Brauer", email = "kbrauer@hatci.com" }]
66
readme = "README.md"
77
license = "Apache-2.0"
88
requires-python = ">=3.11"
9+
10+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
911
dependencies = [
1012
"grpcio-reflection>=1.60.0",
11-
"jumpstarter-cli-common",
12-
"jumpstarter-kubernetes",
13+
"jumpstarter-cli-common=={{ version }}",
14+
"jumpstarter-kubernetes=={{ version }}",
1315
]
1416

1517
[dependency-groups]
@@ -26,17 +28,10 @@ jmp-admin = "jumpstarter_cli_admin:admin"
2628
[tool.hatch.build.targets.wheel]
2729
packages = ["jumpstarter_cli_admin"]
2830

29-
[tool.hatch.metadata.hooks.vcs.urls]
30-
Homepage = "https://jumpstarter.dev"
31-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
32-
3331
[tool.hatch.version]
34-
source = "vcs"
35-
raw-options = { 'root' = '../../' }
32+
source = "uv-dynamic-versioning"
3633

3734
[build-system]
38-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
35+
requires = ["hatchling", "uv-dynamic-versioning"]
3936
build-backend = "hatchling.build"
4037

41-
[tool.hatch.build.hooks.pin_jumpstarter]
42-
name = "pin_jumpstarter"

packages/jumpstarter-cli-common/pyproject.toml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[project]
22
name = "jumpstarter-cli-common"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = ""
55
authors = [{ name = "Kirk Brauer", email = "kbrauer@hatci.com" }]
66
readme = "README.md"
77
license = "Apache-2.0"
88
requires-python = ">=3.11"
9+
10+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
911
dependencies = [
10-
"jumpstarter",
12+
"jumpstarter=={{ version }}",
1113
"pydantic>=2.8.2",
1214
"click>=8.1.7.2",
1315
"authlib>=1.4.1",
@@ -28,17 +30,10 @@ dev = [
2830
[tool.hatch.build.targets.wheel]
2931
packages = ["jumpstarter_cli_common"]
3032

31-
[tool.hatch.metadata.hooks.vcs.urls]
32-
Homepage = "https://jumpstarter.dev"
33-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
34-
3533
[tool.hatch.version]
36-
source = "vcs"
37-
raw-options = { 'root' = '../../' }
34+
source = "uv-dynamic-versioning"
3835

3936
[build-system]
40-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
37+
requires = ["hatchling", "uv-dynamic-versioning"]
4138
build-backend = "hatchling.build"
4239

43-
[tool.hatch.build.hooks.pin_jumpstarter]
44-
name = "pin_jumpstarter"
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jumpstarter-cli-driver"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = ""
55
authors = [
66
{ name = "Nick Cao", email = "ncao@redhat.com" },
@@ -10,7 +10,9 @@ authors = [
1010
readme = "README.md"
1111
license = "Apache-2.0"
1212
requires-python = ">=3.11"
13-
dependencies = ["jumpstarter-cli-common", "click>=8.1.7.2"]
13+
14+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
15+
dependencies = ["jumpstarter-cli-common=={{ version }}", "click>=8.1.7.2"]
1416

1517
[dependency-groups]
1618
dev = [
@@ -26,17 +28,10 @@ jmp-driver = "jumpstarter_cli_driver:driver"
2628
[tool.hatch.build.targets.wheel]
2729
packages = ["jumpstarter_cli_driver"]
2830

29-
[tool.hatch.metadata.hooks.vcs.urls]
30-
Homepage = "https://jumpstarter.dev"
31-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
32-
3331
[tool.hatch.version]
34-
source = "vcs"
35-
raw-options = { 'root' = '../../' }
32+
source = "uv-dynamic-versioning"
3633

3734
[build-system]
38-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
35+
requires = ["hatchling", "uv-dynamic-versioning"]
3936
build-backend = "hatchling.build"
4037

41-
[tool.hatch.build.hooks.pin_jumpstarter]
42-
name = "pin_jumpstarter"
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jumpstarter-cli"
3-
dynamic = ["version", "urls"]
3+
dynamic = ["version", "dependencies"]
44
description = ""
55
authors = [
66
{ name = "Nick Cao", email = "ncao@redhat.com" },
@@ -10,9 +10,11 @@ authors = [
1010
readme = "README.md"
1111
license = "Apache-2.0"
1212
requires-python = ">=3.11"
13+
14+
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
1315
dependencies = [
14-
"jumpstarter-cli-admin",
15-
"jumpstarter-cli-driver",
16+
"jumpstarter-cli-admin=={{ version }}",
17+
"jumpstarter-cli-driver=={{ version }}",
1618
]
1719

1820
[dependency-groups]
@@ -30,17 +32,10 @@ j = "jumpstarter_cli.j:j"
3032
[tool.hatch.build.targets.wheel]
3133
packages = ["jumpstarter_cli"]
3234

33-
[tool.hatch.metadata.hooks.vcs.urls]
34-
Homepage = "https://jumpstarter.dev"
35-
source_archive = "https://github.com/jumpstarter-dev/repo/archive/{commit_hash}.zip"
36-
3735
[tool.hatch.version]
38-
source = "vcs"
39-
raw-options = { 'root' = '../../' }
36+
source = "uv-dynamic-versioning"
4037

4138
[build-system]
42-
requires = ["hatchling", "hatch-vcs", "hatch-pin-jumpstarter"]
39+
requires = ["hatchling", "uv-dynamic-versioning"]
4340
build-backend = "hatchling.build"
4441

45-
[tool.hatch.build.hooks.pin_jumpstarter]
46-
name = "pin_jumpstarter"

0 commit comments

Comments
 (0)