From c852418913dcf94fddca418136d4595bfc29be11 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 2 Aug 2024 18:11:05 +0000 Subject: [PATCH] use scm versionning for the package --- pyproject.toml | 11 +++++++++-- src/refiners/__init__.py | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b27324b..dd7cbc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "refiners" -version = "0.4.0" +dynamic = ["version"] description = "The simplest way to train and run adapters on top of foundation models" authors = [{ name = "The Finegrain Team", email = "bonjour@lagon.tech" }] license = "MIT" @@ -25,6 +25,10 @@ classifiers = [ "License :: OSI Approved :: MIT License", ] +[project.urls] +source = "https://github.com/finegrain-ai/refiners" +documentation = "https://refine.rs/" + [project.optional-dependencies] training = [ "bitsandbytes>=0.41.2.post2", @@ -72,9 +76,12 @@ solutions = [ ] [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" +[tool.hatch.version] +source = "vcs" +fallback-version = '0.0.0' [tool.rye] managed = true diff --git a/src/refiners/__init__.py b/src/refiners/__init__.py index e69de29..3a6cd92 100644 --- a/src/refiners/__init__.py +++ b/src/refiners/__init__.py @@ -0,0 +1,3 @@ +from importlib.metadata import version + +__version__ = version("refiners")