Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit a8efe5e

Browse files
LaurentLaurent2916
authored andcommitted
use scm versionning for the package
1 parent bec8e04 commit a8efe5e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "refiners"
3-
version = "0.4.0"
3+
dynamic = ["version"]
44
description = "The simplest way to train and run adapters on top of foundation models"
55
authors = [{ name = "The Finegrain Team", email = "bonjour@lagon.tech" }]
66
license = "MIT"
@@ -25,6 +25,10 @@ classifiers = [
2525
"License :: OSI Approved :: MIT License",
2626
]
2727

28+
[project.urls]
29+
source = "https://github.com/finegrain-ai/refiners"
30+
documentation = "https://refine.rs/"
31+
2832
[project.optional-dependencies]
2933
training = [
3034
"bitsandbytes>=0.41.2.post2",
@@ -72,9 +76,12 @@ solutions = [
7276
]
7377

7478
[build-system]
75-
requires = ["hatchling"]
79+
requires = ["hatchling", "hatch-vcs"]
7680
build-backend = "hatchling.build"
7781

82+
[tool.hatch.version]
83+
source = "vcs"
84+
fallback-version = '0.0.0'
7885

7986
[tool.rye]
8087
managed = true

src/refiners/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from importlib.metadata import version
2+
3+
__version__ = version("refiners")

0 commit comments

Comments
 (0)