From a21485d5ef5f6cac7c0258715858341b9f0eb198 Mon Sep 17 00:00:00 2001 From: Alain Riou <alain.riou14000@yahoo.com> Date: Wed, 17 Jan 2024 18:06:09 +0100 Subject: [PATCH] dynamic __version__ --- pesto/__init__.py | 3 +++ pesto/core.py | 1 - pyproject.toml | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pesto/__init__.py b/pesto/__init__.py index cff2aeb..5da69bb 100644 --- a/pesto/__init__.py +++ b/pesto/__init__.py @@ -1 +1,4 @@ from .core import load_model, predict, predict_from_files + + +__version__ = '1.1.0' diff --git a/pesto/core.py b/pesto/core.py index 7c35225..dd28a58 100644 --- a/pesto/core.py +++ b/pesto/core.py @@ -146,4 +146,3 @@ def predict_from_files( predictions = [p.cpu().numpy() for p in predictions] for fmt in export_format: export(fmt, output_file, *predictions) - diff --git a/pyproject.toml b/pyproject.toml index 6464d32..b2fb7d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pesto-pitch" -version = "1.0.0" +dynamic = ["version"] authors = [ {name = "Alain Riou", email = "alain.riou@sony.com"} ] @@ -41,5 +41,8 @@ source = "https://github.com/SonyCSLParis/pesto" [tool.pytest.ini_options] testpaths = "tests/" +[tool.setuptools.dynamic] +version = {attr = "pesto.__version__"} + [tool.setuptools.package-data] pesto = ["weights/*.ckpt"] -- GitLab