Skip to content

Commit 3e2d8b5

Browse files
authored
Release/4.2.3 (#6514)
* ref to docs.openbb.co * lint * better exception handling * fix examples * revert changes in package dir * revert changes in reference.json * minor adjustment to the publish.md * changelog * core * extensions * better spacing * static assets * latest versions * publish * skip deprecated dirs * bump cli
1 parent f4a865e commit 3e2d8b5

File tree

96 files changed

+635
-612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+635
-612
lines changed

assets/scripts/generate_extension_data.py

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ def get_packages(path: Path, plugin_key: str) -> Dict[str, Any]:
2828
packages: Dict[str, Any] = {}
2929
for f in folders:
3030
pyproject = PyProjectTOML(Path(f, "pyproject.toml"))
31+
32+
if not pyproject.data:
33+
continue
34+
3135
poetry = pyproject.data["tool"]["poetry"]
3236
name = poetry["name"]
3337
plugin = poetry.get("plugins", {}).get(plugin_key)

build/pypi/openbb_platform/PUBLISH.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
88
> A `release` branch for a particular package should only cater to the changes for that package directory. For e.g. the `release/openbb-core-2.0.0` branch should only contain changes for the `openbb-core` package i.e. in the `openbb_platform/core` directory.
99
10+
### Flow to display only files changes during release cycle in the `release/...` -> `main` PR
11+
12+
1. Merge main into develop before release branch exists, solve any conflict
13+
2. In the branch `release/…` (before or after publishing)
14+
3. `git merge main -X ours` (ignore the changes, we brought them in 1.)
15+
4. `git commit -m "Merge branch 'main' into release/4.2.2"` (empty commit)
16+
17+
### Pre-release checklist
18+
1019
1. Open a PR with the changes to be published in the format `release/<version>` (for e.g. `release/4.0.0` ). For a particular package use the format `release/<package>-<version>` (for e.g. `release/openbb-core-1.0.1`).
1120
2. Ensure all the CI workflows pass.
1221
3. Ensure all unit tests pass: `pytest openbb_platform -m "not integration"`
@@ -26,18 +35,28 @@
2635
1. For the core package run: `python build/pypi/openbb_platform/publish.py --core`
2736
2. For the extension packages run: `python build/pypi/openbb_platform/publish.py --extensions`
2837
3. For the `openbb` package - **which requires manual publishing** - do the following
29-
3.1. Bump the dependency package versions
38+
39+
3.1. Bump the `openbb` package version and the extension versions on `openbb_platform/pyproject.toml` to the latest version.
40+
41+
> [!TIP]
42+
> Consider using the poetry plugin `up` for updating the extensions to the latest version:
43+
> 1. `poetry self add poetry-plugin-up`
44+
> 2. `poetry up --latest`
3045
3146
> [!WARNING]
3247
> Create a new environment before proceeding.
3348
> Make sure that only required extensions are installed
3449
3550
3.2. Run `pip install -e .` from `openbb_platform`
51+
3652
3.3. Re-build the static assets that are bundled with the package: `python -c "import openbb; openbb.build()"`
3753
- Run `python -c "import openbb"` after building the static to check that no additional static is being built.
3854
- Run any command to smoke test if the static assets are being built correctly.
39-
3.4. Run unit tests to validate the existence of deprecated endpoints
55+
56+
3.4. Run unit tests to validate the existence of deprecated endpoints (or watch this through GitHub Actions)
57+
4058
3.5. Run `poetry publish --build` from `openbb_platform`
59+
4160
3.6. Run `poetry lock` from `openbb_platform`
4261

4362
> [!TIP]
@@ -58,3 +77,14 @@
5877
4. Open a new PR with the `release/<package>-<version>` branch pointing to the `develop` branch.
5978
5. Merge the `release/<package>-<version>` branch to the `develop` branch.
6079
6. If any bugs are encountered, create a new branch - `hotfix` for `main` and `bugfix` for `develop` and merge them accordingly.
80+
81+
### Generate the changelog
82+
83+
1. Run the changelog automation by using the "release_drafter" GA and passing the number of the previous Release.
84+
2. Edit and make the changelog live on the repository.
85+
3. Paste it in the platform-release-changelog Slack channel.
86+
87+
### Publish the CLI
88+
89+
1. Bump `openbb` dependency on `cli/pyproject.toml` to the latest version.
90+
2. Run `poetry publish --build` from `cli`

cli/openbb_cli/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525
initial_logging_sub_app = change_logging_sub_app()
2626
try:
2727
main()
28-
except Exception as e:
28+
except Exception:
2929
pass
3030
finally:
3131
reset_logging_sub_app(initial_logging_sub_app)

cli/openbb_cli/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from pathlib import Path
55
from typing import Optional
66

7+
from openbb import obb
78
from openbb_core.app.model.abstract.singleton import SingletonMeta
89
from openbb_core.app.model.user_settings import UserSettings as User
910
from prompt_toolkit import PromptSession
1011

11-
from openbb import obb
1212
from openbb_cli.argparse_translator.obbject_registry import Registry
1313
from openbb_cli.config.completer import CustomFileHistory
1414
from openbb_cli.config.console import Console

cli/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-cli"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "Investment Research for Everyone, Anywhere."
55
authors = ["OpenBB <[email protected]>"]
66
packages = [{ include = "openbb_cli" }]
@@ -17,7 +17,7 @@ openbb = 'openbb_cli.cli:main'
1717
python = "^3.8.1,<3.12"
1818

1919
# OpenBB dependencies
20-
openbb = { version = "^4.2.2", extras = ["all"] }
20+
openbb = { version = "^4.2.3", extras = ["all"] }
2121

2222
# CLI dependencies
2323
prompt-toolkit = "^3.0.16"

openbb_platform/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
The OpenBB Platform provides a convenient way to access raw financial data from multiple data providers. The package comes with a ready to use REST API - this allows developers from any language to easily create applications on top of OpenBB Platform.
1414

15+
Please find the complete documentation at [docs.openbb.co](https://docs.openbb.co/platform).
16+
1517
## Installation
1618

1719
The command below provides access to the core functionalities behind the OpenBB Platform.

openbb_platform/core/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-core"
3-
version = "1.2.4"
3+
version = "1.2.5"
44
description = "OpenBB package with core functionality."
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"

openbb_platform/extensions/commodity/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/commodity/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-commodity"
3-
version = "1.1.2"
3+
version = "1.1.3"
44
description = "Commodity extension for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -9,7 +9,7 @@ packages = [{ include = "openbb_commodity" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
openbb-core = "^1.2.4"
12+
openbb-core = "^1.2.5"
1313

1414
[build-system]
1515
requires = ["poetry-core"]

openbb_platform/extensions/crypto/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/crypto/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-crypto"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Crypto extension for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -9,7 +9,7 @@ packages = [{ include = "openbb_crypto" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
openbb-core = "^1.2.4"
12+
openbb-core = "^1.2.5"
1313

1414
[build-system]
1515
requires = ["poetry-core"]

openbb_platform/extensions/currency/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/currency/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-currency"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Currency extension for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -9,7 +9,7 @@ packages = [{ include = "openbb_currency" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
openbb-core = "^1.2.4"
12+
openbb-core = "^1.2.5"
1313

1414
[build-system]
1515
requires = ["poetry-core"]

openbb_platform/extensions/derivatives/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/derivatives/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-derivatives"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Derivatives extension for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -9,7 +9,7 @@ packages = [{ include = "openbb_derivatives" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
openbb-core = "^1.2.4"
12+
openbb-core = "^1.2.5"
1313

1414
[build-system]
1515
requires = ["poetry-core"]

openbb_platform/extensions/devtools/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-devtools"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Tools for OpenBB Platform Developers"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"

openbb_platform/extensions/econometrics/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/econometrics/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-econometrics"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Econometrics Toolkit for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -13,7 +13,7 @@ scipy = "^1.10.1"
1313
statsmodels = "^0.14.0"
1414
arch = "^5.5.0"
1515
linearmodels = "<=4.25" # ^4.26 has setuptools-scm in setup_requires
16-
openbb-core = "^1.2.4"
16+
openbb-core = "^1.2.5"
1717

1818
[build-system]
1919
requires = ["poetry-core"]

openbb_platform/extensions/economy/openbb_economy/economy_router.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def money_measures(
187187
parameters={
188188
"country": "all",
189189
"frequency": "quarter",
190-
"age": "25-54",
190+
"age": "total",
191191
"provider": "oecd",
192192
},
193193
),

openbb_platform/extensions/economy/poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openbb_platform/extensions/economy/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openbb-economy"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Economy extension for OpenBB"
55
authors = ["OpenBB Team <[email protected]>"]
66
license = "AGPL-3.0-only"
@@ -9,7 +9,7 @@ packages = [{ include = "openbb_economy" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
openbb-core = "^1.2.4"
12+
openbb-core = "^1.2.5"
1313

1414
[build-system]
1515
requires = ["poetry-core"]

0 commit comments

Comments
 (0)