-
-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-versioning and adding axolotl.__version__ (#2127)
* auto-versioning and adding axolotl.__version__ * removing file meant for codecov PR * adding dynamic dependencies, project metadata * extras/optional-dependencies are dynamic too --------- Co-authored-by: Dan Saunders <[email protected]> Co-authored-by: Wing Lian <[email protected]>
- Loading branch information
1 parent
fc973f4
commit 2f3ebbc
Showing
3 changed files
with
26 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "wheel", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "axolotl" | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
description = "LLM Trainer" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
|
||
[project.urls] | ||
Homepage = "https://axolotl-ai-cloud.github.io/axolotl/" | ||
Repository = "https://github.com/axolotl-ai-cloud/axolotl.git" | ||
|
||
[tool.setuptools_scm] |
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
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,8 @@ | ||
"""Axolotl - Train and fine-tune large language models""" | ||
|
||
try: | ||
from importlib.metadata import version | ||
|
||
__version__ = version("axolotl") | ||
except ImportError: | ||
__version__ = "unknown" |