Skip to content

Commit

Permalink
Release/2.2.0 (OpenBB-finance#4008)
Browse files Browse the repository at this point in the history
* Added github actions for gitflow

* Minor changes

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881) (OpenBB-finance#3898)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

Co-authored-by: montezdesousa <[email protected]>

* Testing Gitflow (OpenBB-finance#3899)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* Feature/gitflow (OpenBB-finance#3900)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881) (OpenBB-finance#3901)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

Co-authored-by: montezdesousa <[email protected]>

* Gitflow Implementations (OpenBB-finance#3902)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Gitflow Implementations (OpenBB-finance#3904)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Main --> develop (OpenBB-finance#3906)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* GItflow Implementations (OpenBB-finance#3909)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Feature/gitflow (OpenBB-finance#3911)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Merge fix

* merge fix

* Merge fix

* Merge fix

* Merge fix

* merge fix

* Update develop (OpenBB-finance#3913)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Feature/gitflow (OpenBB-finance#3914)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Merge fix

* merge fix

* Merge fix

* Merge fix

* Merge fix

* merge fix

* [Gitflow] - Minor fix

* Feature/gitflow (OpenBB-finance#3921)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Merge fix

* merge fix

* Merge fix

* Merge fix

* Merge fix

* merge fix

* [Gitflow] - Minor fix

* Feature/gitflow (OpenBB-finance#3914) (OpenBB-finance#3915)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Merge fix

* merge fix

* Merge fix

* Merge fix

* Merge fix

* merge fix

* [Gitflow] - Minor fix

* Nightly build feature

* Added branch name docs

* poetry add ccxt@latest (OpenBB-finance#3920)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* poetry add ccxt@latest

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Add crypto dd functions to sdk (OpenBB-finance#3888)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Add crypto dd functions to sdk

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Fixes currency and trailmap

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Integration tests refactor (OpenBB-finance#3781)

* generate integration tests report

* new console report

* simple run_scripts

* move tests script to folder

* add skipping

* always display skips

* func name

* allow running from relative path

* rename some vars and time

* typo

* change portfolio supress and warning

* uncomment economy test

* rename test controller

* multiprocessing

* display test progress and available

* rename func

* mypy

* should not be here

* small changes

* type hinting and docstrings

* new subprocesses default

* forget context and chunksize

* clean len skipt

* small comment

* fix subproc default with v

* minor change

* fix path

* better this way

* make output visible

* allow only sequential run with verbose mode

* change message

* detail

* include andrew idea

* limit multiprocessing to clone version

* fix for package application

* must be up here

* allow verbose with multiprocessing but warn

* update readme

* move tests to core

* Update README.md

* Update README.md

* move readme outside

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* parse subproc arg

* Update README.md

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Delete glossary base command

* move scripts

* ruff

* update pyproject.toml

* update yfinance

* fix futures and economy test, rewrite

* rewrite stocks test yfinance dependent

* refactor sia to yfinance 0.2...

* fix last failing sia tests

* black

* update reqs

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: Chavithra PARANA <[email protected]>

* Gitflow - Autodoc (OpenBB-finance#3922)

* Hotfix/dots sources (OpenBB-finance#3928)

* fix: wordwrap

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fix: str

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Update dependency: grpcio (OpenBB-finance#3937)

* Update grpcio

* Revert "Update grpcio"

This reverts commit 676c50a.

* Update dependencies

* Rebase develop? (OpenBB-finance#3935)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Update installation guides with videos (OpenBB-finance#3903)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Update installation guides with videos

* Add fix for Ruff crashing

* Me no longer do what James said

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Jeroen Bouma <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* broken link  (OpenBB-finance#3889)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* broken link

due to quandl.com redirecting to nasdaq.com, for the link to work and get the appropiate API key you need to remove the period at the end of this link...

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: james <[email protected]>

* Issue OpenBB-finance#3882 Fixed (OpenBB-finance#3885)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Issue OpenBB-finance#3882 Fixed

* 2 files reformatted by black

* tests added

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fixed mypy errors

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* GitFlow - improve check for changes (OpenBB-finance#3948)

Gitflow Implementation

* Rewrite and skip yfinance tests (OpenBB-finance#3953)

* economy

* fix futures

* fix stocks tests

* skip unfixable tests

* fix ark

* Fixed failing badge not used anymore (OpenBB-finance#3932)

Co-authored-by: James Maslek <[email protected]>

* Fix portfolio returns (OpenBB-finance#3931)

* fix inception bug and clean some useless attributes

* reorder attributes

* add returns and cumulative returns

* fix cumulative returns

* fix cumulative returns

* remove cumulative ret

* add some doc and encapsule methods

* order detail

* add more details on docstrings

* wrong docstring

* add commnet

* Update portfolio_engine.py

* fix bug with unsupported type

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fix table header

* fix portfolio integration test

* ruff

* fix tests

* rewrite yfinance call

* fix test_draw

* test_stocks_helper

* bt model

* fix comp analysis

* fix ftd

* fix dd

* fix screener

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: hjoaquim <[email protected]>

* Put yf.info behind an exchange flag on `load` (OpenBB-finance#3951)

* Put yf.info behind an exchange flag

* Guides

Co-authored-by: montezdesousa <[email protected]>

* Last Price Bug into Previous Close OpenBB-finance#3865 (OpenBB-finance#3949)

Co-authored-by: James Maslek <[email protected]>

* Add multiple countries option to events (OpenBB-finance#3938)

* allow multiple countries in events cmd

* fix test

* fix last test

* black

Co-authored-by: James Maslek <[email protected]>

* Minor Fix for branch name check (OpenBB-finance#3979)

* Gitflow -  Added manual trigger to Linting (OpenBB-finance#3981)

* Minor Fix for branch name check

* added manual trigger to linting

* Linting fix (OpenBB-finance#3984)

Linting fix

* Feature/macro convert (OpenBB-finance#3924)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Issue OpenBB-finance#3882 Fixed

* 2 files reformatted by black

* tests added

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fixed mypy errors

* Fixed parser options for currency conversion

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Update sma.md (OpenBB-finance#3956)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Update sma.md

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Update overlap_model.py (OpenBB-finance#3955)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Update overlap_model.py

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Update vwap.md (OpenBB-finance#3971)

Co-authored-by: James Maslek <[email protected]>

* Update overlap_model.py - wrong typehint  (OpenBB-finance#3970)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Update overlap_model.py

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Bump yfinance to 0.2.4 and fix tests (OpenBB-finance#3977)

* upgrade yfinance to 0.2.4

* fix some tests failing bc yfinance new date format

* fix remaining tests

* fix tests

* rewrite failing test

* black

* rerecord test

* fix get_1y_sp500 test

* missing import here

Co-authored-by: Henrique Joaquim <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Add extra error handling for yf in etf (OpenBB-finance#3985)

* Fix the news command and making it more stable (OpenBB-finance#3965)

Co-authored-by: James Maslek <[email protected]>

* Hotfix/bug OpenBB-finance#3945 (OpenBB-finance#3963)

* Add exception to http requests made by ftd

* Formatting

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Fix OpenBB-finance#3787 (OpenBB-finance#3966)

Make the get_equal_weights handle portfolio's with stock's filtered out, due to the stocks having to many NaNs.

Co-authored-by: James Maslek <[email protected]>

* Add ticker to the load export file (OpenBB-finance#3997)

* bump

* Change export name to have the ticker

* revert yaml

* Feature/release branch gitflow (OpenBB-finance#3998)

* release branch gitflow implentation

* Fix integration tests bugs (OpenBB-finance#3993)

* fix tk

* fix newsletters

* fix lt

* exception on pir

* fix attrib bug and remove warning

* fix earnings

* fix ins, lt, whatif

* fillna

* fix vis

Co-authored-by: James Maslek <[email protected]>

* change .env loading priority (OpenBB-finance#4005)

* [FIX] Pytorch-lightning trainer conflict with TQDM progress bar (OpenBB-finance#4002)

* fix for tqdm progress bar conflict

* fix tests

Co-authored-by: James Maslek <[email protected]>

* bump

* Update release branch

* revert conda yaml

* logging hash

* Fix historical futures plot axes (OpenBB-finance#4006)

* change start date to model

* rewrite test

* ruff

* add end date

* move futures and update test

* return if wrong dates

* fix controller test

* record mode rewrite model and view

Co-authored-by: James Maslek <[email protected]>

* Update version number

* Added scipy to intel

* Fix M1 build (OpenBB-finance#4010)

* Fix plot look when using eval and add query to choices (OpenBB-finance#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (OpenBB-finance#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* adding xgboost explicitly

* testing juan sugestion

* removing unncessary stuff that the hook deals with

Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Add xgboost to intel

* add scipy libs to windows only

* add scipy sparse

* update scipy and pywin

* update tests

* UPdate installation.md to reflect 2.2

* fix yf unit tests

* Try to get futures tests working

* Ignore tz in yf download

* Found another end date needed

* delelte yf cache

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: Chavithra PARANA <[email protected]>
Co-authored-by: jose-donato <[email protected]>
Co-authored-by: Jeroen Bouma <[email protected]>
Co-authored-by: Jeroen Bouma <[email protected]>
Co-authored-by: Rob-Rychs <[email protected]>
Co-authored-by: Mert Nuhuz <[email protected]>
Co-authored-by: hjoaquim <[email protected]>
Co-authored-by: Bongani Bendile <[email protected]>
Co-authored-by: Sergio A. S <[email protected]>
Co-authored-by: northern-64bit <[email protected]>
Co-authored-by: martinb-bb <[email protected]>
  • Loading branch information
15 people committed Jan 31, 2023
1 parent f34b474 commit 4e02e1b
Show file tree
Hide file tree
Showing 39 changed files with 1,504 additions and 8,664 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/intel_macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/*.dylib
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/torch/.dylibs/*.dylib
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/sklearn/.dylibs/*.dylib
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/scipy/.dylibs/*.dylib
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/xgboost/.dylibs/*.dylib
echo "Code Signing Other Files"
/usr/bin/codesign --deep --force --verify --verbose --options runtime --entitlements "build/pyinstaller/entitlements.plist" -s $MACOS_CODESIGN_IDENTITY DMG/OpenBB\ Terminal/.OpenBB/prophet/stan_model/prophet_model.bin
Expand Down Expand Up @@ -168,7 +170,7 @@ jobs:
- name: Unmount DMG
run: hdiutil detach /dev/disk2
- name: Run Integration Tests
run: /Users/openbb/Desktop/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Users/openbb/actions-runner/_work/OpenBBTerminal/OpenBBTerminal/openbb_terminal/miscellaneous/scripts -t
run: /Users/openbb/Desktop/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Users/openbb/actions-runner/_work/OpenBBTerminal/OpenBBTerminal/openbb_terminal/miscellaneous/integration_tests_scripts -t
- name: Remove OpenBB Folder
run: rm -rf /Users/openbb/Desktop/OpenBB\ Terminal
- name: Remove OpenBB Exports Folder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/m1_macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Unmount DMG
run: hdiutil detach /dev/disk4
- name: Run Integration Tests
run: /Users/openbb/Desktop/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Users/openbb/actions-runner/_work/OpenBBTerminal/OpenBBTerminal/openbb_terminal/miscellaneous/scripts -t
run: /Users/openbb/Desktop/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Users/openbb/actions-runner/_work/OpenBBTerminal/OpenBBTerminal/openbb_terminal/miscellaneous/integration_tests_scripts -t
- name: Remove OpenBB Folder
run: rm -rf /Users/openbb/Desktop/OpenBB\ Terminal
- name: Remove OpenBB Exports Folder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows10_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
path: '.\build\nsis\OpenBB Terminal Setup.exe'
- name: Run Integration Tests
run: |
dist\OpenBBTerminal\OpenBBTerminal.exe C:\Users\Administrator\actions-runner\_work\OpenBBTerminal\OpenBBTerminal\openbb_terminal\miscellaneous\scripts -t
dist\OpenBBTerminal\OpenBBTerminal.exe C:\Users\Administrator\actions-runner\_work\OpenBBTerminal\OpenBBTerminal\openbb_terminal\miscellaneous\integration_tests_scripts -t
# Cleaning ------------------------
# Make sure to add Remove-Item C:\Users\Administrator\Desktop\OPENBB-exports -Recurse whenever integration tests get fixed
- name: Remove Previous Build
Expand Down
2 changes: 1 addition & 1 deletion build/docker/compose.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
OPENBBTERMINAL_DOCKER_REGISTRY="ghcr.io"
OPENBBTERMINAL_DOCKER_RELEASE_VERSION="2.1.0"
OPENBBTERMINAL_DOCKER_RELEASE_VERSION="2.2.0"
2 changes: 1 addition & 1 deletion build/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ services:
- ~/OpenBBUserData:/home/python/OpenBBUserData
- ~/.openbb_terminal:/home/python/.openbb_terminal
platform: linux/amd64
image: ghcr.io/openbb-finance/openbbterminal/openbb:2.1.0
image: ghcr.io/openbb-finance/openbbterminal/openbb:2.2.0
stdin_open: true # docker run -i
tty: true # docker run -t
2 changes: 1 addition & 1 deletion build/nsis/setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
!define NAME "OpenBB Terminal"
!define COMPANY "OpenBB"
!define APPFILE "OpenBBTerminal.exe"
!define VERSION "2.1.0"
!define VERSION "2.2.0"
!define SLUG "${NAME} v${VERSION}"

;--------------------------------
Expand Down
2 changes: 1 addition & 1 deletion build/pyinstaller/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OPENBB_LOGGING_APP_NAME=gst_packaged
OPENBB_LOGGING_COMMIT_HASH=sha:b0ef0ee6
OPENBB_LOGGING_COMMIT_HASH=sha:4edfa4f
OPENBB_ENABLE_PREDICT=false
OPENBB_ENABLE_CHECK_API=true
OPENBB_ENABLE_THOUGHTS_DAY=false
Expand Down
3 changes: 3 additions & 0 deletions build/pyinstaller/hooks/hook-xgboost.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from PyInstaller.utils.hooks import collect_all

datas, binaries, hiddenimports = collect_all("xgboost")
7 changes: 6 additions & 1 deletion build/pyinstaller/terminal.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import pathlib
import subprocess
import scipy

from dotenv import set_key

Expand Down Expand Up @@ -74,7 +75,10 @@ added_files = [
(os.path.join(pathex, "blib2to3", "Grammar.txt"), "blib2to3"),
(os.path.join(pathex, "blib2to3", "PatternGrammar.txt"), "blib2to3"),
]

if is_win:
added_files.append(
(os.path.join(f"{os.path.dirname(scipy.__file__)}.libs"), "scipy.libs/"),
)
# Python libraries that are explicitly pulled into the bundle
hidden_imports = [
"sklearn.utils._cython_blas",
Expand All @@ -99,6 +103,7 @@ hidden_imports = [
"_sysconfigdata__darwin_darwin",
"prophet",
"debugpy",
"scipy.sparse.linalg._isolve._iterative"
]


Expand Down
22 changes: 17 additions & 5 deletions openbb_terminal/core/config/paths.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# IMPORTATION STANDARD
from pathlib import Path
import os
import dotenv
from dotenv import load_dotenv


def get_user_data_directory():
""" "
Gets user data path from .env file
def load_dotenv_with_priority():
"""Loads the dotenv files in the following order:
1. Repository .env file
2. Package .env file
3. User .env file
This allows the user to override the package settings with their own
settings, and the package to override the repository settings.
"""
dotenv.load_dotenv(USER_ENV_FILE)
load_dotenv(REPOSITORY_ENV_FILE, override=True)
load_dotenv(PACKAGE_ENV_FILE, override=True)
load_dotenv(USER_ENV_FILE, override=True)


def get_user_data_directory():
"""Gets user data path from .env file or returns default path"""
load_dotenv_with_priority()
if os.getenv("OPENBB_USER_DATA_DIRECTORY"):
user_data_directory = Path(os.getenv("OPENBB_USER_DATA_DIRECTORY"))
else:
Expand Down
37 changes: 17 additions & 20 deletions openbb_terminal/featflags_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# IMPORTATION INTERNAL
from openbb_terminal import feature_flags as obbff
from openbb_terminal.core.config.paths import USER_ENV_FILE
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
from openbb_terminal.decorators import log_start_end
from openbb_terminal.menu import session
Expand Down Expand Up @@ -78,24 +79,20 @@ def print_help(self):
def call_retryload(self, _):
"""Process retryload command"""
obbff.RETRY_WITH_LOAD = not obbff.RETRY_WITH_LOAD
set_key(
obbff.USER_ENV_FILE, "OPENBB_RETRY_WITH_LOAD", str(obbff.RETRY_WITH_LOAD)
)
set_key(USER_ENV_FILE, "OPENBB_RETRY_WITH_LOAD", str(obbff.RETRY_WITH_LOAD))

@log_start_end(log=logger)
def call_tab(self, _):
"""Process tab command"""
obbff.USE_TABULATE_DF = not obbff.USE_TABULATE_DF
set_key(
obbff.USER_ENV_FILE, "OPENBB_USE_TABULATE_DF", str(obbff.USE_TABULATE_DF)
)
set_key(USER_ENV_FILE, "OPENBB_USE_TABULATE_DF", str(obbff.USE_TABULATE_DF))

@log_start_end(log=logger)
def call_cls(self, _):
"""Process cls command"""
obbff.USE_CLEAR_AFTER_CMD = not obbff.USE_CLEAR_AFTER_CMD
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_USE_CLEAR_AFTER_CMD",
str(obbff.USE_CLEAR_AFTER_CMD),
)
Expand All @@ -104,14 +101,14 @@ def call_cls(self, _):
def call_color(self, _):
"""Process color command"""
obbff.USE_COLOR = not obbff.USE_COLOR
set_key(obbff.USER_ENV_FILE, "OPENBB_USE_COLOR", str(obbff.USE_COLOR))
set_key(USER_ENV_FILE, "OPENBB_USE_COLOR", str(obbff.USE_COLOR))

@log_start_end(log=logger)
def call_promptkit(self, _):
"""Process promptkit command"""
obbff.USE_PROMPT_TOOLKIT = not obbff.USE_PROMPT_TOOLKIT
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_USE_PROMPT_TOOLKIT",
str(obbff.USE_PROMPT_TOOLKIT),
)
Expand All @@ -121,7 +118,7 @@ def call_thoughts(self, _):
"""Process thoughts command"""
obbff.ENABLE_THOUGHTS_DAY = not obbff.ENABLE_THOUGHTS_DAY
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_ENABLE_THOUGHTS_DAY",
str(obbff.ENABLE_THOUGHTS_DAY),
)
Expand All @@ -131,7 +128,7 @@ def call_reporthtml(self, _):
"""Process reporthtml command"""
obbff.OPEN_REPORT_AS_HTML = not obbff.OPEN_REPORT_AS_HTML
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_OPEN_REPORT_AS_HTML",
str(obbff.OPEN_REPORT_AS_HTML),
)
Expand All @@ -141,7 +138,7 @@ def call_exithelp(self, _):
"""Process exithelp command"""
obbff.ENABLE_EXIT_AUTO_HELP = not obbff.ENABLE_EXIT_AUTO_HELP
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_ENABLE_EXIT_AUTO_HELP",
str(obbff.ENABLE_EXIT_AUTO_HELP),
)
Expand All @@ -151,7 +148,7 @@ def call_rcontext(self, _):
"""Process rcontext command"""
obbff.REMEMBER_CONTEXTS = not obbff.REMEMBER_CONTEXTS
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_REMEMBER_CONTEXTS",
str(obbff.REMEMBER_CONTEXTS),
)
Expand All @@ -160,20 +157,20 @@ def call_rcontext(self, _):
def call_dt(self, _):
"""Process dt command"""
obbff.USE_DATETIME = not obbff.USE_DATETIME
set_key(obbff.USER_ENV_FILE, "OPENBB_USE_DATETIME", str(obbff.USE_DATETIME))
set_key(USER_ENV_FILE, "OPENBB_USE_DATETIME", str(obbff.USE_DATETIME))

@log_start_end(log=logger)
def call_rich(self, _):
"""Process rich command"""
obbff.ENABLE_RICH = not obbff.ENABLE_RICH
set_key(obbff.USER_ENV_FILE, "OPENBB_ENABLE_RICH", str(obbff.ENABLE_RICH))
set_key(USER_ENV_FILE, "OPENBB_ENABLE_RICH", str(obbff.ENABLE_RICH))

@log_start_end(log=logger)
def call_richpanel(self, _):
"""Process richpanel command"""
obbff.ENABLE_RICH_PANEL = not obbff.ENABLE_RICH_PANEL
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_ENABLE_RICH_PANEL",
str(obbff.ENABLE_RICH_PANEL),
)
Expand All @@ -182,20 +179,20 @@ def call_richpanel(self, _):
def call_ion(self, _):
"""Process ion command"""
obbff.USE_ION = not obbff.USE_ION
set_key(obbff.USER_ENV_FILE, "OPENBB_USE_ION", str(obbff.USE_ION))
set_key(USER_ENV_FILE, "OPENBB_USE_ION", str(obbff.USE_ION))

@log_start_end(log=logger)
def call_watermark(self, _):
"""Process watermark command"""
obbff.USE_WATERMARK = not obbff.USE_WATERMARK
set_key(obbff.USER_ENV_FILE, "OPENBB_USE_WATERMARK", str(obbff.USE_WATERMARK))
set_key(USER_ENV_FILE, "OPENBB_USE_WATERMARK", str(obbff.USE_WATERMARK))

@log_start_end(log=logger)
def call_cmdloc(self, _):
"""Process cmdloc command"""
obbff.USE_CMD_LOCATION_FIGURE = not obbff.USE_CMD_LOCATION_FIGURE
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_USE_CMD_LOCATION_FIGURE",
str(obbff.USE_CMD_LOCATION_FIGURE),
)
Expand All @@ -207,7 +204,7 @@ def call_tbhint(self, _):
console.print("Will take effect when running terminal next.")
obbff.TOOLBAR_HINT = not obbff.TOOLBAR_HINT
set_key(
obbff.USER_ENV_FILE,
USER_ENV_FILE,
"OPENBB_TOOLBAR_HINT",
str(obbff.TOOLBAR_HINT),
)
16 changes: 7 additions & 9 deletions openbb_terminal/feature_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@
import os.path

# IMPORTATION THIRDPARTY
from dotenv import load_dotenv
import i18n

# IMPORTATION INTERNAL
from openbb_terminal.core.config.paths import (
MISCELLANEOUS_DIRECTORY,
PACKAGE_ENV_FILE,
REPOSITORY_ENV_FILE,
USER_DATA_SOURCES_DEFAULT_FILE,
USER_ENV_FILE,
load_dotenv_with_priority,
)
from openbb_terminal.core.config import paths_helper
from openbb_terminal.base_helpers import load_env_vars, strtobool
from openbb_terminal.base_helpers import (
load_env_vars,
strtobool,
)

paths_helper.init_userdata()

# pylint: disable=no-member,c-extension-no-member

load_dotenv(USER_ENV_FILE)
load_dotenv(REPOSITORY_ENV_FILE, override=True)
load_dotenv(PACKAGE_ENV_FILE, override=True)
load_dotenv_with_priority()

try:
__import__("git")
Expand Down Expand Up @@ -148,7 +146,7 @@
else:
raise Exception("Using git")
except Exception:
version = "2.1.0"
version = "2.2.0"
VERSION = str(os.getenv("OPENBB_VERSION", version))

# Select the terminal translation language
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/forecast/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def get_prediction(
if model_name not in ["Regression", "Logistic Regression"]:
# need to create a new pytorch trainer for historical backtesting to remove progress bar
best_model.trainer = None
best_model.trainer_params["enable_progress_bar"] = False
# best_model.trainer_params["enable_progress_bar"] = True

# Historical backtest if with covariates
if past_covariates is not None:
Expand Down
8 changes: 8 additions & 0 deletions openbb_terminal/futures/futures_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ def call_historical(self, other_args: List[str]):
)
parser.add_argument(
"-e",
"--end",
dest="end",
type=valid_date,
help="Final date. Default: today",
default=datetime.now(),
)
parser.add_argument(
"--expiry",
dest="expiry",
type=valid_expiry_date,
Expand All @@ -189,6 +196,7 @@ def call_historical(self, other_args: List[str]):
symbols=ns_parser.ticker.upper().split(","),
expiry=ns_parser.expiry,
start_date=ns_parser.start.strftime("%Y-%m-%d"),
end_date=ns_parser.end.strftime("%Y-%m-%d"),
raw=ns_parser.raw,
export=ns_parser.export,
)
Expand Down
Loading

0 comments on commit 4e02e1b

Please sign in to comment.