Skip to content

Commit

Permalink
enhancement: Add dynamic version (#91)
Browse files Browse the repository at this point in the history
* feat: add dynamic version

* Add dynamic versioning
  • Loading branch information
stephantul authored Oct 17, 2024
1 parent 70a4fe8 commit 31e74ec
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 52 deletions.
3 changes: 2 additions & 1 deletion model2vec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from model2vec.model import StaticModel
from model2vec.version import __version__

__all__ = ["StaticModel"]
__all__ = ["StaticModel", "__version__"]
2 changes: 2 additions & 0 deletions model2vec/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version_triple__ = (0, 2, 4)
__version__ = ".".join(map(str, __version_triple__))
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name = "model2vec"
description = "Distill a Small Fast Model from any Sentence Transformer"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
version = "0.2.4"
requires-python = ">=3.10"
authors = [{ name = "Stéphan Tulkens", email = "[email protected]"}, {name = "Thomas van Dongen", email = "[email protected]"}]
dynamic = ["version"]

classifiers = [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -102,3 +102,6 @@ ignore_missing_imports = true

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

[tool.setuptools.dynamic]
version = {attr = "model2vec.version.__version__"}
Loading

0 comments on commit 31e74ec

Please sign in to comment.