Skip to content

Commit

Permalink
Merge pull request #18 from Cadene/user/aliberts/2024_03_11_dynamic_b…
Browse files Browse the repository at this point in the history
…uild_versioning

Add dynamic build versioning
  • Loading branch information
aliberts authored Mar 11, 2024
2 parents a94800f + 4449c06 commit 48e70e0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions lerobot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from lerobot.__version__ import __version__ # noqa: F401
9 changes: 8 additions & 1 deletion lerobot/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
__version__ = "0.0.0"
""" To enable `lerobot.__version__` """

from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("lerobot")
except PackageNotFoundError:
__version__ = "unknown"
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers=[
]
packages = [{include = "lerobot"}]


[tool.poetry.dependencies]
python = "^3.10"
cython = "^3.0.8"
Expand Down Expand Up @@ -55,9 +56,6 @@ pre-commit = "^3.6.2"
debugpy = "^1.8.1"
pytest = "^8.1.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.ruff]
line-length = 110
Expand Down Expand Up @@ -86,5 +84,15 @@ exclude = [
"venv",
]


[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "N", "B", "C4", "SIM"]


[tool.poetry-dynamic-versioning]
enable = true


[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

0 comments on commit 48e70e0

Please sign in to comment.