diff --git a/pyproject.toml b/pyproject.toml index 5d857fb..c8e31c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "ninetoothed" -version = "0.22.0" +dynamic = ["version"] authors = [{ name = "Jiacheng Huang", email = "huangjiacheng0709@outlook.com" }] description = "A domain-specific language based on Triton but providing higher-level abstraction." readme = "README.md" @@ -25,6 +25,9 @@ debugging = ["torch>=2.4.0"] visualization = ["matplotlib>=3.9.0", "ninetoothed[debugging]"] all = ["ninetoothed[debugging]", "ninetoothed[visualization]"] +[tool.hatch.version] +path = "src/ninetoothed/_version.py" + [tool.ruff] src = [".", "src", "tests"] diff --git a/requirements.txt b/requirements.txt index 83cf4a4..2c9b5af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +hatch jupyter jupytext matplotlib diff --git a/src/ninetoothed/__init__.py b/src/ninetoothed/__init__.py index 6920246..d0f97d9 100644 --- a/src/ninetoothed/__init__.py +++ b/src/ninetoothed/__init__.py @@ -19,7 +19,10 @@ from ninetoothed.symbol import Symbol, block_size from ninetoothed.tensor import Tensor +from ._version import __version__ + __all__ = [ + "__version__", "Symbol", "Tensor", "bfloat16", diff --git a/src/ninetoothed/_version.py b/src/ninetoothed/_version.py new file mode 100644 index 0000000..5963297 --- /dev/null +++ b/src/ninetoothed/_version.py @@ -0,0 +1 @@ +__version__ = "0.22.0"