Skip to content

Commit

Permalink
Add dynamic version (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephantul authored Oct 18, 2024
1 parent df4bee6 commit 5c0c810
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "reach"
description = "Load your vector embeddings"
readme = "README.md"
version = "5.0.0"
dynamic = ["version"]
requires-python = ">=3.10"

dependencies = [
Expand Down Expand Up @@ -71,3 +71,6 @@ packages = ["reach"]

[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools_scm

[tool.setuptools.dynamic]
version = {attr = "reach.version.__version__"}
6 changes: 3 additions & 3 deletions reach/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A package for reading and manipulating word embeddings."""
"""Small vector store."""

from reach.reach import Reach, normalize
from reach.version import __version__

__all__ = ["Reach", "normalize"]
__version__ = "5.0.0"
__all__ = ["Reach", "normalize", "__version__"]
2 changes: 1 addition & 1 deletion reach/reach.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""A class for working with vector representations."""
"""A small vector store."""

from __future__ import annotations

Expand Down
2 changes: 2 additions & 0 deletions reach/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version_triple__ = (5, 0, 0)
__version__ = ".".join(map(str, __version_triple__))

0 comments on commit 5c0c810

Please sign in to comment.