From e2df202558d96cf0c009581afcd2904370535484 Mon Sep 17 00:00:00 2001 From: Peter Dekkers Date: Wed, 21 Feb 2024 21:19:27 +0100 Subject: [PATCH] dynamic version for toml --- README.md | 8 ++++---- pyproject.toml | 5 ++++- roboquant/__init__.py | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5066633..80afc5f 100644 --- a/README.md +++ b/README.md @@ -37,16 +37,16 @@ The core of roboquant tries to limit the dependencies. But you can install roboq ```shell # market data from Yahoo Finance using the YahooFeed -python3 -m pip install --upgrade roboquant[yahoo] +python3 -m pip install --upgrade "roboquant[yahoo]" # PyTorch based strategies using RNNStrategy -python3 -m pip install --upgrade roboquant[torch] +python3 -m pip install --upgrade "roboquant[torch]" # Integration with Interactive Brokers using IBKRBroker -python3 -m pip install --upgrade roboquant[ibkr] +python3 -m pip install --upgrade "roboquant[ibkr]" # Install all dependencies -python3 -m pip install --upgrade roboquant[all] +python3 -m pip install --upgrade "roboquant[all]" ``` ## Building from source diff --git a/pyproject.toml b/pyproject.toml index 16badd3..858553e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" [project] name = "roboquant" -version = "0.2.0" +dynamic = ["version"] authors = [ { name="roboquant team", email="info@roboquant.org" },] description = "A fast algo-trading platform" readme = "README.md" @@ -37,6 +37,9 @@ dependencies = [ "requests>=2.31.0", ] +[tool.setuptools.dynamic] +version = {attr = "roboquant.__version__"} + [project.optional-dependencies] torch = ["torch>=2.1.0", "tensorboard>=2.15.2"] yahoo = ["yfinance~=0.2.36"] diff --git a/roboquant/__init__.py b/roboquant/__init__.py index 25dbef8..20f4d40 100644 --- a/roboquant/__init__.py +++ b/roboquant/__init__.py @@ -29,5 +29,7 @@ TiingoHistoricFeed, CandleFeed, EventChannel, - feedutil + feedutil, ) + +__version__ = "0.2.1"