summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique Joaquim <henriquecjoaquim@gmail.com>2024-04-18 16:46:10 +0100
committerGitHub <noreply@github.com>2024-04-18 15:46:10 +0000
commitf4db561780b491f7727e2ad7686b0d0b11be4577 (patch)
tree9346632130bdfa8725fe2da9f76a55339bab0a29
parent510b9389c9e8c06f4603b8b5dbb460842e0df84c (diff)
remove terminal related artifacts from build folder (#6307)
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt> Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
-rw-r--r--build/README.md69
-rw-r--r--build/docker/api.dockerfile33
-rw-r--r--build/docker/build.sh26
-rw-r--r--build/docker/compose.env2
-rw-r--r--build/docker/docker-compose.x11.yaml6
-rw-r--r--build/docker/docker-compose.yaml12
-rw-r--r--build/docker/openbb.dockerfile75
-rw-r--r--build/nsis/assets/Installer_horizontal.bmpbin57514 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_horizontal2.pngbin18794 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_horizontall.pngbin19275 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical#2.pngbin98181 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical.pngbin99496 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical2.bmpbin357254 -> 0 bytes
-rw-r--r--build/nsis/assets/Splashscreen #2.pngbin1510901 -> 0 bytes
-rw-r--r--build/nsis/assets/Splashscreen.pngbin1572407 -> 0 bytes
-rw-r--r--build/nsis/assets/openbb_icon.icobin19566 -> 0 bytes
-rw-r--r--build/nsis/license.txt3
-rw-r--r--build/nsis/setup.nsi277
-rw-r--r--build/pyinstaller/.env26
-rwxr-xr-xbuild/pyinstaller/build4mac.sh27
-rw-r--r--build/pyinstaller/entitlements.plist18
-rw-r--r--build/pyinstaller/hooks/hook-debugpy.py8
-rw-r--r--build/pyinstaller/hooks/hook-pytrends.py3
-rw-r--r--build/pyinstaller/hooks/hook-rich.py3
-rw-r--r--build/pyinstaller/hooks/hook-streamlit.py3
-rw-r--r--build/pyinstaller/hooks/hook-whisper.py35
-rw-r--r--build/pyinstaller/hooks/hook-xgboost.py3
-rw-r--r--build/pyinstaller/hooks/pyi_rth_inspect.py39
-rw-r--r--build/pyinstaller/macOS/.gitignore1
-rwxr-xr-xbuild/pyinstaller/macOS/build-macos.sh216
-rw-r--r--build/pyinstaller/macOS/darwin/Distribution36
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/LICENSE.txt21
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/background-light.pngbin239545 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/background.pngbin885099 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/banner.pngbin14337 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/conclusion.html35
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/uninstall.sh73
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/welcome.html14
-rw-r--r--build/pyinstaller/macOS/darwin/scripts/postinstall3
-rwxr-xr-xbuild/pyinstaller/macOS_package_assets/OpenBB Terminal/OpenBB Terminal31
-rw-r--r--build/pyinstaller/macOS_package_assets/README.TXT1
-rw-r--r--build/pyinstaller/setup_icons.applescript20
-rw-r--r--build/pyinstaller/setup_icons_post.applescript20
-rw-r--r--build/pyinstaller/terminal.spec217
-rw-r--r--build/pyinstaller/version.rc42
-rwxr-xr-xbuild/pypi/openbb_terminal/build.sh9
-rwxr-xr-xbuild/pypi/openbb_terminal/test_publish.sh9
47 files changed, 0 insertions, 1416 deletions
diff --git a/build/README.md b/build/README.md
deleted file mode 100644
index 0d9dcc1b1b2..00000000000
--- a/build/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Building Installers
-This guide serves to assist developers construct OpenBB Terminal installers on macOS and Windows.
-
-## Overview
-Building an installer takes source code as input and produces deployable software as an output. For MacOS the output is a DMG while for Windows it is an EXE. This process utilizes two major modules: Pyinstaller & Create-dmg. Windows additionally recruits the service of NSIS. There are two ways to build an installer: locally or through Github.
-
-## Local
-In this section we detail the steps necessary to construct an installer locally on a Windows machine and Mac machine. These steps can be performed on either one of these operating systems so long as they have the OpenBBTerminal repository codebase. This process assumes you already have a working conda environment. Building locally usually takes anywhere from 10-20 minutes.
-
-### MacOS Steps
-1. `brew install create-dmg`
-
- This installs create-dmg and its dependencies onto your system through brew.
-
-1. `poetry install -E installer`
-
- This install pyinstaller and its dependencies onto your environment.
-
-3. `build/pyinstaller/build4mac.sh`
-
- This runs a shell script that auto-builds the DMG and stores it on the root of your repository.
-
-4. (Optional) `/Full/Path/To/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Full/Path/To/OpenBBTerminal/OpenBBTerminal/scripts/*.openbb -t`
-
- This runs integration tests on your newly created installer.
-
-### Windows Steps
-1. `poetry install -E installer`
-
- This install pyinstaller and its dependencies onto your environment.
-
-2. `pyinstaller build/pyinstaller/terminal.spec`
-
- This runs a shell script that auto-builds the DMG and stores it on the root of your repository.
-
-3. `cp -r .\dist\OpenBBTerminal\ .\build\nsis\app\`
-
- This copies over the contents of the newly dist folder into the app folder so that NSIS can utilize them.
-
-4. Compile NSIS Scripts
-
- Open *NSIS*, click on the "Compile NSI scripts", and then drag the `setup.nsi` file in build\nsis to the window. This creates the EXE installer.
-
-4. (Optional) `Full\Path\To\OpenBBTerminal.exe Full\Path\To\OpenBBTerminal\OpenBBTerminal\scripts -t`
-
- This runs integration tests on your newly created installer.
-
-
-## Github
-In order to utilize the automated build workflow on the OpenBBTerminal repo, the branch in which you would like to build an installer from must already be a branch on the repo. You can also utilize the automated build workflow on a PR that is from a branch on the repo. You cannot run an automated build on a forked branch or even a PR from a forked branch.
-
-If you are using this method to create an installer, there is a limitation where only one build automation can occur at a time per workflow. For example if there is already an installer being created on the ‘Intel MacOS Build’ workflow, any subsequent requests for building will be queued. Additionally, the ‘Windows10 Build’ workflow runs relatively slowly because of the size of the EC2 instance it is currently on. As such, if you are interested in a quick build, then I would suggest building locally. Furthermore, building an installer this way also automatically runs integration tests on the installer.
-
-If you run into a circumstance where a requested build is queued for a long period of time, this might mean that the EC2 instance is not connected to github. If something like this arises, please create an issue.
-
-### Steps
-1. Navigate to `Actions`
-2. Navigate to your desired build system workflow
-3. Choose your desired branch & click Run Workflow
-4. Download your installer artifact
-
- Each build system produces a single installer which can be subsequently downloaded.
-
-5. Investigate the success/failure of your Build
-
- You can click on the build to delve into the steps it takes to construct an installer. This is where you can investigate the success of integration tests, identify if/where the build failed, etc.
-
-
-Note: Intel Mac installers are signed and notarized. During this step you can identify if notarization has succeeded or failed and if all of the binaries have been signed in correctly.
diff --git a/build/docker/api.dockerfile b/build/docker/api.dockerfile
deleted file mode 100644
index 430b8511d5b..00000000000
--- a/build/docker/api.dockerfile
+++ /dev/null
@@ -1,33 +0,0 @@
-# ---- Base Python ----
-FROM python:3.10-slim-buster AS base
-
-# set work directory
-WORKDIR /openbb
-
-# set environment variables
-ENV PYTHONDONTWRITEBYTECODE 1
-ENV PYTHONUNBUFFERED 1
-
-# install dependencies
-RUN apt-get update \
- && apt-get install -y --no-install-recommends build-essential openssh-client \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/*
-
-# ---- Copy Files/Build ----
-FROM base AS builder
-
-WORKDIR /openbb
-
-COPY ./openbb_platform ./openbb_platform
-
-# Install the SDK
-RUN pip install /openbb/openbb_platform
-
-# ---- Copy Files ----
-FROM base
-
-COPY --from=builder /usr/local /usr/local
-
-# Specify the command to run
-CMD ["uvicorn", "openbb_core.api.rest_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
diff --git a/build/docker/build.sh b/build/docker/build.sh
deleted file mode 100644
index a61148f313b..00000000000
--- a/build/docker/build.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-echo "Building docker release"
-
-if [ -z "$OPENBBTERMINAL_DOCKER_RELEASE_VERSION" ]
-then
- read -p "Version number (X.Y.Z format): " OPENBBTERMINAL_DOCKER_RELEASE_VERSION
-fi
-
-# SET DEFAULT PARAMETERS IF EMPTY
-OPENBBTERMINAL_DOCKER_REGISTRY="${OPENBBTERMINAL_DOCKER_REGISTRY:-ghcr.io}"
-OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY="${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY:-openbb-finance/openbbterminal}"
-OPENBBTERMINAL_DOCKER_RELEASE_VERSION="${OPENBBTERMINAL_DOCKER_RELEASE_VERSION:-0.0.0}"
-# SET IMAGES NAMES
-OPENBBTERMINAL_DOCKER_POETRY_IMAGE=${OPENBBTERMINAL_DOCKER_REGISTRY,,}/${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY,,}/openbb:${OPENBBTERMINAL_DOCKER_RELEASE_VERSION,,}
-OPENBBTERMINAL_DOCKER_POETRY_IMAGE_LATEST=${OPENBBTERMINAL_DOCKER_REGISTRY,,}/${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY,,}/openbb:latest
-
-# DISPLAY PARAMETERS
-echo "OPENBBTERMINAL_DOCKER_REGISTRY = $OPENBBTERMINAL_DOCKER_REGISTRY"
-echo "OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY = $OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY"
-echo "OPENBBTERMINAL_DOCKER_RELEASE_VERSION = $OPENBBTERMINAL_DOCKER_RELEASE_VERSION"
-# DISPLAY IMAGES NAMES
-echo "OPENBBTERMINAL_DOCKER_POETRY_IMAGE = $OPENBBTERMINAL_DOCKER_POETRY_IMAGE"
-
-# Docker command to build image
-docker build -f build/docker/openbb.dockerfile -t "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE}" -t "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE_LATEST}" . \ No newline at end of file
diff --git a/build/docker/compose.env b/build/docker/compose.env
deleted file mode 100644
index bc8a9bcb697..00000000000
--- a/build/docker/compose.env
+++ /dev/null
@@ -1,2 +0,0 @@
-OPENBBTERMINAL_DOCKER_REGISTRY="ghcr.io"
-OPENBBTERMINAL_DOCKER_RELEASE_VERSION="3.2.5"
diff --git a/build/docker/docker-compose.x11.yaml b/build/docker/docker-compose.x11.yaml
deleted file mode 100644
index a10f5594d5a..00000000000
--- a/build/docker/docker-compose.x11.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- openbb:
- environment:
- DISPLAY: ${DISPLAY}
- volumes:
- - /tmp/.X11-unix:/tmp/.X11-unix
diff --git a/build/docker/docker-compose.yaml b/build/docker/docker-compose.yaml
deleted file mode 100644
index c4193a96b7c..00000000000
--- a/build/docker/docker-compose.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-version: '3.8'
-services:
- openbb:
- environment:
- DISPLAY: host.docker.internal:0.0
- volumes:
- - ~/OpenBBUserData:/home/python/OpenBBUserData
- - ~/.openbb_terminal:/home/python/.openbb_terminal
- platform: linux/amd64
- image: ghcr.io/openbb-finance/openbbterminal/openbb:latest
- stdin_open: true # docker run -i
- tty: true # docker run -t
diff --git a/build/docker/openbb.dockerfile b/build/docker/openbb.dockerfile
deleted file mode 100644
index 81731b5197a..00000000000
--- a/build/docker/openbb.dockerfile
+++ /dev/null
@@ -1,75 +0,0 @@
-# SETUP PYTHON IMAGE
-FROM --platform=linux/amd64 python:3.10-slim-bullseye as python
-
-LABEL org.opencontainers.image.source https://github.com/OpenBB-finance/OpenBBTerminal
-
-# SETUP DEBIAN IMAGE
-FROM python as debian
-
-RUN apt-get update
-
-RUN apt-get -y install --no-install-recommends \
- gcc \
- g++ \
- make
-
-RUN apt-get -y install --no-install-recommends \
- git
-
-RUN apt-get -y install --no-install-recommends \
- curl \
- wget
-
-RUN apt-get -y install --no-install-recommends \
- libsm6 \
- libxt6 \
- libgl1-mesa-glx \
- libpng16-16 \
- libwebkit2gtk-4.0-dev \
- build-essential \
- libssl-dev \
- librsvg2-dev \
- ffmpeg \
- python3-tk
-
-RUN apt-get clean
-
-RUN useradd --create-home --shell /bin/bash python
-
-USER python
-WORKDIR /home/python
-
-# SETUP POETRY IMAGE
-FROM debian as poetry
-
-ENV PATH="/home/python/.local/bin:${PATH}"
-
-RUN pip install --upgrade pip wheel
-RUN pip install poetry==1.4.0
-
-# SETUP OPENBB IMAGE
-FROM poetry as repository
-
-COPY --chown=python:python pyproject.toml poetry.lock terminal.py ./
-
-RUN mkdir openbb_terminal
-COPY --chown=python:python openbb_terminal openbb_terminal
-
-RUN mkdir -p website/content/sdk
-COPY --chown=python:python ./website/content/sdk/installation.md ./website/content/sdk
-
-RUN mkdir OpenBBUserData
-RUN chown python:python OpenBBUserData
-
-RUN mkdir .openbb_terminal
-RUN chown python:python .openbb_terminal
-
-# SETUP OPENBB IMAGE
-FROM repository as dependencies
-
-RUN poetry install --no-root --no-dev --extras optimization --extras forecast
-
-# SETUP OPENBB IMAGE
-FROM dependencies as openbb
-
-CMD ["poetry", "run", "python", "terminal.py"]
diff --git a/build/nsis/assets/Installer_horizontal.bmp b/build/nsis/assets/Installer_horizontal.bmp
deleted file mode 100644
index 7de27025699..00000000000
--- a/build/nsis/assets/Installer_horizontal.bmp
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_horizontal2.png b/build/nsis/assets/Installer_horizontal2.png
deleted file mode 100644
index 2261c710255..00000000000
--- a/build/nsis/assets/Installer_horizontal2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_horizontall.png b/build/nsis/assets/Installer_horizontall.png
deleted file mode 100644
index bddba4ab947..00000000000
--- a/build/nsis/assets/Installer_horizontall.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical#2.png b/build/nsis/assets/Installer_vertical#2.png
deleted file mode 100644
index f722988ffa2..00000000000
--- a/build/nsis/assets/Installer_vertical#2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical.png b/build/nsis/assets/Installer_vertical.png
deleted file mode 100644
index 078721b00d1..00000000000
--- a/build/nsis/assets/Installer_vertical.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical2.bmp b/build/nsis/assets/Installer_vertical2.bmp
deleted file mode 100644
index 54f9b618845..00000000000
--- a/build/nsis/assets/Installer_vertical2.bmp
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Splashscreen #2.png b/build/nsis/assets/Splashscreen #2.png
deleted file mode 100644
index 0f95c376fb2..00000000000
--- a/build/nsis/assets/Splashscreen #2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Splashscreen.png b/build/nsis/assets/Splashscreen.png
deleted file mode 100644
index a0c18bd195f..00000000000
--- a/build/nsis/assets/Splashscreen.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/openbb_icon.ico b/build/nsis/assets/openbb_icon.ico
deleted file mode 100644
index ec1a7d484f4..00000000000
--- a/build/nsis/assets/openbb_icon.ico
+++ /dev/null
Binary files differ
diff --git a/build/nsis/license.txt b/build/nsis/license.txt
deleted file mode 100644
index 5ef8d0820f7..00000000000
--- a/build/nsis/license.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-The information provided by OpenBB Terminal ("application") is for general informational purposes only. All information on the application is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the application.
-
-Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result of the use of the application or reliance on any information provided on the application. Your use of the application and your reliance on any information on it is solely at your own risk. \ No newline at end of file
diff --git a/build/nsis/setup.nsi b/build/nsis/setup.nsi
deleted file mode 100644
index c3f23890cd6..00000000000
--- a/build/nsis/setup.nsi
+++ /dev/null
@@ -1,277 +0,0 @@
-;--------------------------------
-; Includes
-
- !include "MUI2.nsh"
- !include "logiclib.nsh"
-
-
-;--------------------------------
-; Custom defines
- !define NAME "OpenBB Terminal"
- !define COMPANY "OpenBB"
- !define APPFILE "OpenBBTerminal.exe"
- !define VERSION "3.2.5"
- !define SLUG "${NAME} v${VERSION}"
-
-;--------------------------------
-; Info for Installer.exe
- VIProductVersion 3.2.5.0
- VIAddVersionKey ProductName "OpenBB Terminal"
- VIAddVersionKey Comments "An installer for OpenBB Terminal. For additional details, visit OpenBB.co"
- VIAddVersionKey CompanyName OpenBB.co
- VIAddVersionKey FileDescription "OpenBB Terminal Program"
- VIAddVersionKey FileVersion 3.2.5.0
- VIAddVersionKey ProductVersion 3.2.5.0
- VIAddVersionKey InternalName "OpenBB Terminal"
-
-;--------------------------------
-; 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
- !define MUI_WELCOMEFINISHPAGE_BITMAP "assets\installer_vertical2.bmp"
- !define MUI_HEADERIMAGE_BITMAP "assets\installer_horizontal.bmp"
- !define MUI_ABORTWARNING
- !define MUI_WELCOMEPAGE_TITLE "${SLUG} Setup"
- !define UninstId "OpenBBTerminal" ; You might want to use a GUID here
- !define MUI_FINISHPAGE_RUN
- !define MUI_FINISHPAGE_RUN_NOTCHECKED
- !define MUI_FINISHPAGE_RUN_TEXT "Start OpenBB Terminal"
- !define MUI_FINISHPAGE_RUN_FUNCTION "StartOpenBB"
-
-;--------------------------------
-; Pages
-
- ; Installer pages
- !insertmacro MUI_PAGE_WELCOME
- !insertmacro MUI_PAGE_LICENSE "license.txt"
-; !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_PAGE_FINISH
-
- ; Uninstaller pages
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
-
- ; Set UI language
- !insertmacro MUI_LANGUAGE "English"
-
-
- Var /GLOBAL installerPath
-
-
-
-
-
-; StrContains
-; This function does a case sensitive searches for an occurrence of a substring in a string.
-; It returns the substring if it is found.
-; Otherwise it returns null("").
-; Written by kenglish_hi
-; Adapted from StrReplace written by dandaman32
-
-
-Var STR_HAYSTACK
-Var STR_NEEDLE
-Var STR_CONTAINS_VAR_1
-Var STR_CONTAINS_VAR_2
-Var STR_CONTAINS_VAR_3
-Var STR_CONTAINS_VAR_4
-Var STR_RETURN_VAR
-
-
-Function StartOpenBB
- Exec "$InstDir\OpenBBTerminal.exe"
-FunctionEnd
-
-
-Function StrContains
- Exch $STR_NEEDLE
- Exch 1
- Exch $STR_HAYSTACK
- ; Uncomment to debug
- ;MessageBox MB_OK 'STR_NEEDLE = $STR_NEEDLE STR_HAYSTACK = $STR_HAYSTACK '
- StrCpy $STR_RETURN_VAR ""
- StrCpy $STR_CONTAINS_VAR_1 -1
- StrLen $STR_CONTAINS_VAR_2 $STR_NEEDLE
- StrLen $STR_CONTAINS_VAR_4 $STR_HAYSTACK
- loop:
- IntOp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_1 + 1
- StrCpy $STR_CONTAINS_VAR_3 $STR_HAYSTACK $STR_CONTAINS_VAR_2 $STR_CONTAINS_VAR_1
- StrCmp $STR_CONTAINS_VAR_3 $STR_NEEDLE found
- StrCmp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_4 done
- Goto loop
- found:
- StrCpy $STR_RETURN_VAR $STR_NEEDLE
- Goto done
- done:
- Pop $STR_NEEDLE ;Prevent "invalid opcode" errors and keep the
- Exch $STR_RETURN_VAR
-FunctionEnd
-
-!macro _StrContainsConstructor OUT NEEDLE HAYSTACK
- Push `${HAYSTACK}`
- Push `${NEEDLE}`
- Call StrContains
- Pop `${OUT}`
-!macroend
-