Skip to content

Commit

Permalink
Merge branch 'develop' into hotfix/typo-in-website-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmanbello committed Jan 22, 2024
2 parents 2b792ee + a9b4d20 commit 760dc00
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
5 changes: 3 additions & 2 deletions openbb_platform/extensions/technical/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[tool.poetry]
name = "openbb-technical"
version = "1.1.1"
version = "1.1.2"
description = "Technical Analysis extension for OpenBB"
authors = ["OpenBB Team <hello@openbb.co>"]
readme = "README.md"
packages = [{ include = "openbb_technical" }]

[tool.poetry.dependencies]
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly
scipy = "^1.10.1"
statsmodels = "^0.14.0"
scikit-learn = "^1.3.1"
pandas-ta = "^0.3.14b"
openbb-core = "^1.1.1"

[build-system]
Expand Down
7 changes: 3 additions & 4 deletions openbb_platform/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openbb"
version = "4.1.2"
version = "4.1.3"
description = "OpenBB"
authors = ["OpenBB Team <hello@openbb.co>"]
readme = "README.md"
Expand Down Expand Up @@ -48,7 +48,7 @@ openbb-wsj = { version = "^1.1.1", optional = true }
openbb-charting = { version = "^1.1.1", optional = true }
openbb-econometrics = { version = "^1.1.1", optional = true }
openbb-quantitative = { version = "^1.1.1", optional = true }
openbb-technical = { version = "^1.1.1", optional = true }
openbb-technical = { version = "^1.1.2", optional = true }

[tool.poetry.extras]
alpha_vantage = ["openbb-alpha-vantage"]
Expand All @@ -65,7 +65,6 @@ seeking_alpha = ["openbb-seeking-alpha"]
stockgrid = ["openbb-stockgrid"]
technical = ["openbb-technical"]
wsj = ["openbb-wsj"]
yfinance = ["openbb-yfinance"]


all = [
Expand All @@ -82,7 +81,7 @@ all = [
"openbb-seeking-alpha",
"openbb-stockgrid",
"openbb-technical",
"openbb-wsj"
"openbb-wsj",
]

[build-system]
Expand Down
24 changes: 24 additions & 0 deletions openbb_platform/tests/test_pyproject_toml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import toml


def test_optional_packages():
data = toml.load("openbb_platform/pyproject.toml")
dependencies = data["tool"]["poetry"]["dependencies"]
extras = data["tool"]["poetry"]["extras"]
all_packages = extras["all"]

default_packages = []
optional_packages = []

for package, details in dependencies.items():
if isinstance(details, dict) and details.get("optional") is True:
optional_packages.append(package)
else:
default_packages.append(package)

# check that optional packages have the same content as all_packages and extras
assert sorted(optional_packages) == sorted(all_packages)
assert sorted(optional_packages) == sorted(extras["all"])

# assert that there is no overlap between default and optional packages
assert set(default_packages).isdisjoint(set(optional_packages))

0 comments on commit 760dc00

Please sign in to comment.