Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: Add dynamic version #91

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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