Skip to content
Snippets Groups Projects
Commit a21485d5 authored by Alain Riou's avatar Alain Riou
Browse files

dynamic __version__

parent 2d110510
Branches
Tags
No related merge requests found
from .core import load_model, predict, predict_from_files from .core import load_model, predict, predict_from_files
__version__ = '1.1.0'
...@@ -146,4 +146,3 @@ def predict_from_files( ...@@ -146,4 +146,3 @@ def predict_from_files(
predictions = [p.cpu().numpy() for p in predictions] predictions = [p.cpu().numpy() for p in predictions]
for fmt in export_format: for fmt in export_format:
export(fmt, output_file, *predictions) export(fmt, output_file, *predictions)
...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" ...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "pesto-pitch" name = "pesto-pitch"
version = "1.0.0" dynamic = ["version"]
authors = [ authors = [
{name = "Alain Riou", email = "alain.riou@sony.com"} {name = "Alain Riou", email = "alain.riou@sony.com"}
] ]
...@@ -41,5 +41,8 @@ source = "https://github.com/SonyCSLParis/pesto" ...@@ -41,5 +41,8 @@ source = "https://github.com/SonyCSLParis/pesto"
[tool.pytest.ini_options] [tool.pytest.ini_options]
testpaths = "tests/" testpaths = "tests/"
[tool.setuptools.dynamic]
version = {attr = "pesto.__version__"}
[tool.setuptools.package-data] [tool.setuptools.package-data]
pesto = ["weights/*.ckpt"] pesto = ["weights/*.ckpt"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment