Skip to content

Commit 647e370

Browse files
committed
0.9.1, fix build
1 parent 91dfac2 commit 647e370

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

pyproject.toml

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22
requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

5-
[tool.hatch.build]
5+
[tool.hatch.version]
6+
path = "src/tyro/__init__.py"
7+
8+
[tool.hatch.sdist]
9+
packages = ["src/tyro"]
10+
11+
[tool.hatch.build.targets.wheel]
612
packages = ["src/tyro"]
713

814
[project]
915
name = "tyro"
1016
authors = [
1117
{name = "brentyi", email = "[email protected]"},
1218
]
13-
version = "0.9.0" # TODO: currently needs to be synchronized manually with __init__.py.
14-
description = "Strongly typed, zero-effort CLI interfaces"
19+
description = "CLI interfaces & config objects, from types"
20+
dynamic = ["version"]
1521
readme = "README.md"
1622
license = { text = "MIT" }
1723
requires-python = ">=3.7"

src/tyro/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from typing import TYPE_CHECKING
22

3+
__version__ = "0.9.1"
4+
5+
36
from . import conf as conf
47
from . import constructors as constructors
58
from . import extras as extras
@@ -12,7 +15,3 @@
1215
from .constructors._primitive_spec import (
1316
UnsupportedTypeAnnotationError as UnsupportedTypeAnnotationError,
1417
)
15-
16-
17-
# TODO: this should be synchronized automatically with the pyproject.toml.
18-
__version__ = "0.9.0"

0 commit comments

Comments
 (0)