mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Release/1.6.0 (#2106)
* Fixing paths for build procedure * Adding back env file * Updating pyproject and setup.nsi files for release * Update version on feature_flags.py * Fix default sources path not working in installers * Fix crypto/ov/wf * Remove old and slow tests from openbb scripts folder * Adding a note about to explain that prediction is not available for Mac users * Disabling prediction menu via env file * Fix tkinter bug on windows ci by specifying the mpl backend * Adding prediction back in and deleting previous comments about prediction not being available Co-authored-by: Chavithra PARANA <chavithra@gmail.com> Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
This commit is contained in:
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@@ -95,6 +95,8 @@ jobs:
|
||||
pip list
|
||||
|
||||
- name: Run tests (Bash)
|
||||
env:
|
||||
MPLBACKEND: Agg
|
||||
shell: bash -l {0}
|
||||
run: pytest tests/ -m "not bots and not linux"
|
||||
|
||||
|
||||
34
build/nsis/setup.nsi
vendored
34
build/nsis/setup.nsi
vendored
@@ -3,26 +3,26 @@
|
||||
|
||||
!include "MUI2.nsh"
|
||||
!include "logiclib.nsh"
|
||||
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Custom defines
|
||||
!define NAME "OpenBB Terminal"
|
||||
!define COMPANY "OpenBB"
|
||||
!define APPFILE "OpenBBTerminal.exe"
|
||||
!define VERSION "1.2.0"
|
||||
!define VERSION "1.6.0"
|
||||
!define SLUG "${NAME} v${VERSION}"
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; General
|
||||
Name "${NAME}"
|
||||
OutFile "${NAME} Setup.exe"
|
||||
InstallDir $PROFILE\OpenBB
|
||||
RequestExecutionLevel user
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; UI
|
||||
|
||||
|
||||
!define MUI_ICON "assets\openbb_icon.ico"
|
||||
!define MUI_UNICON "assets\openbb_icon.ico"
|
||||
!define MUI_HEADERIMAGE
|
||||
@@ -30,10 +30,10 @@
|
||||
!define MUI_HEADERIMAGE_BITMAP "assets\installer_horizontal.bmp"
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_WELCOMEPAGE_TITLE "${SLUG} Setup"
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Pages
|
||||
|
||||
|
||||
; Installer pages
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE "license.txt"
|
||||
@@ -45,22 +45,22 @@
|
||||
; Uninstaller pages
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
|
||||
; Set UI language
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Section - Install App
|
||||
|
||||
Section "-hidden app"
|
||||
SectionIn RO
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "app\*.*"
|
||||
File /r "app\*.*"
|
||||
WriteRegStr HKCU "Software\${NAME}" "" $INSTDIR
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Section - Shortcut
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
CreateShortCut '$SMPROGRAMS\${Company}\${NAME}\${NAME}.lnk' '$INSTDIR\${APPFILE}' "" '$INSTDIR\${APPFILE}' 0
|
||||
CreateShortCut '$SMPROGRAMS\${Company}\${NAME}\Uninstall ${NAME}.lnk' '$INSTDIR\Uninstall.exe' "" '$INSTDIR\Uninstall.exe' 0
|
||||
SectionEnd
|
||||
|
||||
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Remove empty parent directories
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
Pop $0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
|
||||
;--------------------------------
|
||||
; Section - Uninstaller
|
||||
|
||||
@@ -105,7 +105,7 @@ Section "Uninstall"
|
||||
|
||||
;Delete Shortcut
|
||||
Delete "$DESKTOP\${NAME}.lnk"
|
||||
|
||||
|
||||
;Delete Directory
|
||||
Delete '$SMPROGRAMS\${Company}\${NAME}'
|
||||
|
||||
@@ -118,4 +118,4 @@ Section "Uninstall"
|
||||
|
||||
DeleteRegKey /ifempty HKCU "Software\${NAME}"
|
||||
|
||||
SectionEnd
|
||||
SectionEnd
|
||||
|
||||
2
build/pyinstaller/.env
vendored
2
build/pyinstaller/.env
vendored
@@ -1,5 +1,5 @@
|
||||
OPENBB_PACKAGED_APPLICATION=true
|
||||
OPENBB_LOGGING_COMMIT_HASH='sha:aabb76ef'
|
||||
OPENBB_LOGGING_COMMIT_HASH='sha:dd768556'
|
||||
OPENBB_ENABLE_PREDICT=true
|
||||
OPENBB_ENABLE_CHECK_API=true
|
||||
OPENBB_ENABLE_THOUGHTS_DAY=false
|
||||
|
||||
1
build/pyinstaller/terminal.spec
vendored
1
build/pyinstaller/terminal.spec
vendored
@@ -28,6 +28,7 @@ set_key(default_env_file, "OPENBB_LOGGING_COMMIT_HASH", str(commit_hash))
|
||||
# Files that are explicitly pulled into the bundle
|
||||
added_files = [
|
||||
(os.path.join(os.getcwd(), "openbb_terminal"), "openbb_terminal"),
|
||||
(os.path.join(os.getcwd(), "data_sources_default.json"), "."),
|
||||
(os.path.join(os.getcwd(), "routines"), "routines"),
|
||||
(os.path.join(os.getcwd(), "portfolio"), "portfolio"),
|
||||
(os.path.join(os.getcwd(), "i18n"), "i18n"),
|
||||
|
||||
@@ -146,7 +146,7 @@ def get_overall_withdrawal_fees(top: int = 100) -> pd.DataFrame:
|
||||
df = pd.read_html(str(table))[0]
|
||||
|
||||
df["Coin"] = [ticker.text for ticker in tickers_html]
|
||||
df["Highest"] = df["Highest"].apply(
|
||||
df["Lowest"] = df["Lowest"].apply(
|
||||
lambda x: f'{x[:x.index(".")+3]} ({x[x.index(".")+3:]})'
|
||||
if "." in x and isinstance(x, str)
|
||||
else x
|
||||
|
||||
@@ -106,7 +106,11 @@ LOGGING_COMMIT_HASH = str(os.getenv("OPENBB_LOGGING_COMMIT_HASH", "REPLACE_ME"))
|
||||
PREFERRED_DATA_SOURCE_FILE = str(
|
||||
os.getenv(
|
||||
"OPENBB_PREFERRED_DATA_SOURCE_FILE",
|
||||
os.getcwd() + os.path.sep + "data_sources_default.json",
|
||||
os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"..",
|
||||
"data_sources_default.json",
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
@@ -121,5 +125,5 @@ GUESS_EASTER_EGG_FILE = str(
|
||||
try:
|
||||
version = pkg_resources.get_distribution("OpenBBTerminal").version
|
||||
except Exception:
|
||||
version = "1.5.0m"
|
||||
version = "1.6.0m"
|
||||
VERSION = str(os.getenv("OPENBB_VERSION", version))
|
||||
|
||||
@@ -43,7 +43,7 @@ class SourcesController(BaseController):
|
||||
super().__init__(queue)
|
||||
|
||||
self.commands_with_sources = dict()
|
||||
with open("data_sources_default.json") as f:
|
||||
with open(obbff.PREFERRED_DATA_SOURCE_FILE) as f:
|
||||
self.json_doc = json.load(f)
|
||||
for context in self.json_doc:
|
||||
for menu in self.json_doc[context]:
|
||||
|
||||
2
pyproject.toml
vendored
2
pyproject.toml
vendored
@@ -1,7 +1,7 @@
|
||||
# https://python-poetry.org/docs/dependency-specification/
|
||||
[tool.poetry]
|
||||
name = "OpenBBTerminal"
|
||||
version = "1.5.0"
|
||||
version = "1.6.0"
|
||||
description = ""
|
||||
authors = ["Didier Rodrigues Lopes"]
|
||||
packages = [
|
||||
|
||||
4
scripts/test_crypto_defi.openbb
vendored
4
scripts/test_crypto_defi.openbb
vendored
@@ -3,12 +3,8 @@ defi
|
||||
ldapps
|
||||
gdapps
|
||||
stvl
|
||||
dtvl anchor,sushiswap
|
||||
newsletter
|
||||
dpi
|
||||
funding
|
||||
borrow
|
||||
lending
|
||||
tokens
|
||||
stats
|
||||
pools
|
||||
|
||||
6
scripts/test_stocks_dps.openbb
vendored
6
scripts/test_stocks_dps.openbb
vendored
@@ -5,10 +5,6 @@ hsi
|
||||
pos
|
||||
sidtc
|
||||
load -t gme
|
||||
dpotc
|
||||
spos
|
||||
psi
|
||||
volexch
|
||||
ftd
|
||||
prom
|
||||
exit
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user