-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement: Add dynamic version (#91)
* feat: add dynamic version * Add dynamic versioning
- Loading branch information
1 parent
70a4fe8
commit 31e74ec
Showing
4 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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__"} |
Oops, something went wrong.