Release 1.7.0 (#2300)

* Version Bump

* Changing pred install for intel workflow

* Disabling prediction menu

* Fixing codesign paths

* Changing disk location for detach

* Making sure to not pull from main

* changing windows build

* Hopefully final change for the release

* codesign fix

* fixing package stuff

* Fixing feature flags and env

* Adding comments about feature flags

* Changing windows build back

Co-authored-by: Chavithra <chavithra@gmail.com>
This commit is contained in:
James Simmons
2022-08-12 13:44:27 -04:00
committed by GitHub
parent bd684dd845
commit 0f01b8437d
10 changed files with 84 additions and 49 deletions

View File

@@ -15,8 +15,6 @@ jobs:
# Checkout repository main branch. this allows for the commit hashes to line up
- name: Checkout
uses: actions/checkout@v2.4.2
with:
ref: 'main'
- name: Git Log
run: git log
# Install create-dmg
@@ -162,7 +160,7 @@ jobs:
ls
cp -R OpenBB\ Terminal ~/Desktop
- name: Unmount DMG
run: hdiutil detach /dev/disk3s2
run: hdiutil detach /dev/disk4
- name: Run Integration Tests
run: /Users/ec2-user/Desktop/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Users/ec2-user/actions-runner/_work/OpenBBTerminal/OpenBBTerminal/scripts/*.openbb -t
- name: Remove OpenBB Folder

View File

@@ -10,7 +10,7 @@
!define NAME "OpenBB Terminal"
!define COMPANY "OpenBB"
!define APPFILE "OpenBBTerminal.exe"
!define VERSION "1.6.0"
!define VERSION "1.7.0"
!define SLUG "${NAME} v${VERSION}"
;--------------------------------

View File

@@ -1,6 +1,6 @@
OPENBB_PACKAGED_APPLICATION=true
OPENBB_LOGGING_COMMIT_HASH='sha:dd768556'
OPENBB_ENABLE_PREDICT=true
OPENBB_ENABLE_PREDICT=false
OPENBB_ENABLE_CHECK_API=true
OPENBB_ENABLE_THOUGHTS_DAY=false
OPENBB_REMEMBER_CONTEXTS=true

View File

@@ -342,7 +342,18 @@ class CryptoController(CryptoBaseController):
@log_start_end(log=logger)
def call_pred(self, _):
"""Process pred command"""
if obbff.ENABLE_PREDICT:
# IMPORTANT: 8/11/22 prediction was discontinued on the installer packages
# because forecasting in coming out soon.
# This if statement disallows installer package users from using 'pred'
# even if they turn on the OPENBB_ENABLE_PREDICT feature flag to true
# however it does not prevent users who clone the repo from using it
# if they have ENABLE_PREDICT set to true.
if obbff.PACKAGED_APPLICATION or not obbff.ENABLE_PREDICT:
console.print(
"Predict is disabled. Forecasting coming soon!",
"\n",
)
else:
if self.symbol:
try:
from openbb_terminal.cryptocurrency.prediction_techniques import (
@@ -366,11 +377,6 @@ class CryptoController(CryptoBaseController):
console.print(
"No coin selected. Use 'load' to load the coin you want to look at.\n"
)
else:
console.print(
"Predict is disabled. Check ENABLE_PREDICT flag on feature_flags.py",
"\n",
)
@log_start_end(log=logger)
def call_onchain(self, _):

View File

@@ -1428,30 +1428,43 @@ class EconomyController(BaseController):
@log_start_end(log=logger)
def call_pred(self, _):
"""Process pred command"""
if not self.DATASETS:
# IMPORTANT: 8/11/22 prediction was discontinued on the installer packages
# because forecasting in coming out soon.
# This if statement disallows installer package users from using 'pred'
# even if they turn on the OPENBB_ENABLE_PREDICT feature flag to true
# however it does not prevent users who clone the repo from using it
# if they have ENABLE_PREDICT set to true.
if obbff.PACKAGED_APPLICATION or not obbff.ENABLE_PREDICT:
console.print(
"There is no data stored yet. Please use either the 'macro', 'fred', 'index' and/or "
"'treasury' command in combination with the -st argument to be able to plot data.\n"
"Predict is disabled. Forecasting coming soon!",
"\n",
)
return
else:
if not self.DATASETS:
console.print(
"There is no data stored yet. Please use either the 'macro', 'fred', 'index' and/or "
"'treasury' command in combination with the -st argument to be able to plot data.\n"
)
return
from openbb_terminal.economy.prediction.pred_controller import (
PredictionTechniquesController,
)
from openbb_terminal.economy.prediction.pred_controller import (
PredictionTechniquesController,
)
data: Dict = {}
for source, _ in self.DATASETS.items():
if not self.DATASETS[source].empty:
if len(self.DATASETS[source].columns) == 1:
data[self.DATASETS[source].columns[0]] = self.DATASETS[source]
else:
for col in list(self.DATASETS[source].columns):
data[col] = self.DATASETS[source][col].to_frame()
data: Dict = {}
for source, _ in self.DATASETS.items():
if not self.DATASETS[source].empty:
if len(self.DATASETS[source].columns) == 1:
data[self.DATASETS[source].columns[0]] = self.DATASETS[source]
else:
for col in list(self.DATASETS[source].columns):
data[col] = self.DATASETS[source][col].to_frame()
self.queue = self.load_class(
PredictionTechniquesController, self.DATASETS, self.queue
)
self.queue = self.load_class(
PredictionTechniquesController, self.DATASETS, self.queue
)
@log_start_end(log=logger)
def call_qa(self, _):

View File

@@ -648,7 +648,18 @@ class ETFController(BaseController):
@log_start_end(log=logger)
def call_pred(self, _):
"""Process pred command"""
if obbff.ENABLE_PREDICT:
# IMPORTANT: 8/11/22 prediction was discontinued on the installer packages
# because forecasting in coming out soon.
# This if statement disallows installer package users from using 'pred'
# even if they turn on the OPENBB_ENABLE_PREDICT feature flag to true
# however it does not prevent users who clone the repo from using it
# if they have ENABLE_PREDICT set to true.
if obbff.PACKAGED_APPLICATION or not obbff.ENABLE_PREDICT:
console.print(
"Predict is disabled. Forecasting coming soon!",
"\n",
)
else:
if self.etf_name:
try:
from openbb_terminal.etf.prediction_techniques import (
@@ -675,11 +686,6 @@ class ETFController(BaseController):
)
else:
console.print("Use 'load <ticker>' prior to this command!", "\n")
else:
console.print(
"Predict is disabled. Check ENABLE_PREDICT flag on feature_flags.py",
"\n",
)
@log_start_end(log=logger)
def call_ca(self, _):

View File

@@ -125,5 +125,5 @@ GUESS_EASTER_EGG_FILE = str(
try:
version = pkg_resources.get_distribution("OpenBBTerminal").version
except Exception:
version = "1.6.0m"
version = "1.7.0m"
VERSION = str(os.getenv("OPENBB_VERSION", version))

View File

@@ -304,7 +304,18 @@ class ForexController(BaseController):
@log_start_end(log=logger)
def call_pred(self, _):
"""Process pred command"""
if obbff.ENABLE_PREDICT:
# IMPORTANT: 8/11/22 prediction was discontinued on the installer packages
# because forecasting in coming out soon.
# This if statement disallows installer package users from using 'pred'
# even if they turn on the OPENBB_ENABLE_PREDICT feature flag to true
# however it does not prevent users who clone the repo from using it
# if they have ENABLE_PREDICT set to true.
if obbff.PACKAGED_APPLICATION or not obbff.ENABLE_PREDICT:
console.print(
"Predict is disabled. Forecasting coming soon!",
"\n",
)
else:
if self.from_symbol and self.to_symbol:
if self.data.empty:
console.print(
@@ -332,11 +343,6 @@ class ForexController(BaseController):
)
else:
console.print("No pair selected.\n")
else:
console.print(
"Predict is disabled. Check ENABLE_PREDICT flag on feature_flags.py",
"\n",
)
@log_start_end(log=logger)
def call_qa(self, _):

View File

@@ -712,7 +712,18 @@ class StocksController(StockBaseController):
@log_start_end(log=logger)
def call_pred(self, _):
"""Process pred command"""
if obbff.ENABLE_PREDICT:
# IMPORTANT: 8/11/22 prediction was discontinued on the installer packages
# because forecasting in coming out soon.
# This if statement disallows installer package users from using 'pred'
# even if they turn on the OPENBB_ENABLE_PREDICT feature flag to true
# however it does not prevent users who clone the repo from using it
# if they have ENABLE_PREDICT set to true.
if obbff.PACKAGED_APPLICATION or not obbff.ENABLE_PREDICT:
console.print(
"Predict is disabled. Forecasting coming soon!",
"\n",
)
else:
if self.ticker:
if self.interval == "1440min":
try:
@@ -744,8 +755,3 @@ class StocksController(StockBaseController):
console.print("Load daily data to use this menu!", "\n")
else:
console.print("Use 'load <ticker>' prior to this command!", "\n")
else:
console.print(
"Predict is disabled. Check ENABLE_PREDICT flag on feature_flags.py",
"\n",
)

2
pyproject.toml vendored
View File

@@ -1,7 +1,7 @@
# https://python-poetry.org/docs/dependency-specification/
[tool.poetry]
name = "OpenBBTerminal"
version = "1.6.0"
version = "1.7.0"
description = ""
authors = ["Didier Rodrigues Lopes"]
packages = [