diff options
author | Henrique Joaquim <h.joaquim@campus.fct.unl.pt> | 2024-01-22 15:02:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 15:02:32 +0000 |
commit | a9b4d2070faab977e9784a457afc195fc1a513e2 (patch) | |
tree | d39f84b8204a9af3610937e9ea8ebf5040c8e017 | |
parent | f052666a5e6d301889a862af393bef2f94f48fb2 (diff) |
Release OpenBB Platform v`4.1.3` (#5983)
* fixing pyproject.toml
* adding pandas-ta to technical package for publishing
* bumping technical
* test for pyproject toml
-rw-r--r-- | openbb_platform/extensions/technical/pyproject.toml | 5 | ||||
-rw-r--r-- | openbb_platform/pyproject.toml | 6 | ||||
-rw-r--r-- | openbb_platform/tests/test_pyproject_toml.py | 24 |
3 files changed, 30 insertions, 5 deletions
diff --git a/openbb_platform/extensions/technical/pyproject.toml b/openbb_platform/extensions/technical/pyproject.toml index ba9b0f820ce..ac7fbdb4cec 100644 --- a/openbb_platform/extensions/technical/pyproject.toml +++ b/openbb_platform/extensions/technical/pyproject.toml @@ -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] diff --git a/openbb_platform/pyproject.toml b/openbb_platform/pyproject.toml index 324cebc95d0..70799cffa73 100644 --- a/openbb_platform/pyproject.toml +++ b/openbb_platform/pyproject.toml @@ -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" @@ -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"] @@ -81,7 +81,7 @@ all = [ "openbb-seeking-alpha", "openbb-stockgrid", "openbb-technical", - "openbb-wsj" + "openbb-wsj", ] [build-system] diff --git a/openbb_platform/tests/test_pyproject_toml.py b/openbb_platform/tests/test_pyproject_toml.py new file mode 100644 index 00000000000..f250dfb2aa0 --- /dev/null +++ b/openbb_platform/tests/test_pyproject_toml.py @@ -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)) |