Skip to content

Commit

Permalink
Release 1.7.0 (#2300)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
simmonsj330 and Chavithra authored Aug 12, 2022
1 parent bd684dd commit 0f01b84
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 50 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/intel_macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
# Checkout repository main branch. this allows for the commit hashes to line up
- name: Checkout
uses: actions/[email protected]
with:
ref: 'main'
- name: Git Log
run: git log
# Install create-dmg
Expand Down Expand Up @@ -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
Expand Down
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 "1.6.0"
!define VERSION "1.7.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,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
Expand Down
18 changes: 12 additions & 6 deletions openbb_terminal/cryptocurrency/crypto_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,18 @@ def call_qa(self, _):
@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 (
Expand All @@ -366,11 +377,6 @@ def call_pred(self, _):
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, _):
Expand Down
51 changes: 32 additions & 19 deletions openbb_terminal/economy/economy_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,30 +1428,43 @@ def call_spectrum(self, other_args: List[str]):

@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

from openbb_terminal.economy.prediction.pred_controller import (
PredictionTechniquesController,
)
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

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()
from openbb_terminal.economy.prediction.pred_controller import (
PredictionTechniquesController,
)

self.queue = self.load_class(
PredictionTechniquesController, self.DATASETS, self.queue
)
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
)

@log_start_end(log=logger)
def call_qa(self, _):
Expand Down
18 changes: 12 additions & 6 deletions openbb_terminal/etf/etf_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,18 @@ def call_ta(self, _):
@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 (
Expand All @@ -675,11 +686,6 @@ def call_pred(self, _):
)
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, _):
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/feature_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@
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))
18 changes: 12 additions & 6 deletions openbb_terminal/forex/forex_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,18 @@ def call_ta(self, _):
@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(
Expand Down Expand Up @@ -332,11 +343,6 @@ def call_pred(self, _):
)
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, _):
Expand Down
18 changes: 12 additions & 6 deletions openbb_terminal/stocks/stocks_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,18 @@ def call_qa(self, _):
@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:
Expand Down Expand Up @@ -744,8 +755,3 @@ def call_pred(self, _):
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 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit 0f01b84

Please sign in to comment.