* small changes - moving provider inside the core * uptade readme * lint * remove old provider readme * leftovers * refactor website examples * ruff * fix nox * relock * fix fails_to_deliver headers * fix for tests that have renamed endpoints * fix discovery * removed test for renamed endpoint * fix broken syntax - test_search_financial_attributes * fix cash/income/balance * fix derivatives tests * fix etf tests * fix news tests * fix regulators * black * wrong test param * sort equity gainers/losers by percent * platform markdown generation import * Hotfix/fix int tests core merge (#5779) * removing tests on old endpoint * removing visualization on old endpoint * fixing equity tests * fixing examples * fix news tests * fix index test * example * add comments * example --------- Co-authored-by: Diogo Sousa <montezdesousa@gmail.com> --------- Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com> Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com> Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2.2 KiB
Vendored
Publishing to PyPI
Publishing checklist:
Note: you need to have the appropriate credentials and permissions to publish to PyPI
-
Ensure all unit tests pass:
pytest openbb_platform -m "not integration" -
Ensure all integration tests pass:
pytest openbb_platform -m integration -
Run the publishing script:
python build/pypi/openbb_platform/publish.pyConsider using the
--dry-runflag to check if everything is correct before publishing. Also, it might be a good idea to run the script in batches to ensure that the packages are published correctly and the dependencies pick the correct versions. Example, the extension packages need to pick the latestopenbb-coreversion. Suggested batch order:- Batch 1. Core
openbb-core
- Batch 2. Extensions
openbb-chartingopenbb-cryptoopenbb-currency- ...
- Batch 3. Toolkits
openbb-quantitativeopenbb-technicalopenbb-econometrics- ...
- Batch 4. Providers
openbb-alpha-vantageopenbb-benzingaopenbb-biztoc- ...
- Batch 5. The meta-packages
openbbWhen publishing this package:- Bump the dependency package versions
- Re-build the static assets that are bundled with the package
Note that, in order for packages to pick up the latest versions of dependencies, it might be necessary to clear the local cache of the dependencies:
We can do that with
pip cache purgeandpoetry cache clear pypi --allAlso, sometimes there might be some delay in the PyPI API, so it might be necessary to wait a few minutes before publishing the next package.
- Batch 1. Core
-
Update poetry files:
python build/pypi/openbb_platform/poetry_update.py -
Open a PR so that changes are reflected on the main branch
Finally, check if everything works:
- Install and test the package from Pypi on a clean environment.
- Check if all the
pyproject.tomlfiles are correct, including theopenbb_platformone. - Double check if there is any new extension or provider that needs to be added to integration tests GitHub Action workflow.