Skip to content

v0.2.0

Latest

Choose a tag to compare

@SilvioBaratto SilvioBaratto released this 26 Nov 21:01
· 341 commits to main since this release
7fdd92c

Release 0.2.0 of the optimizer workspace (library, ingestion daemon, shared database layer and the fund). It is not published to PyPI: install from the source tree with uv sync --all-packages --all-extras.

Upgrading from 0.1.0.

  • Library users: the distribution is now portopt-core (it was portopt in 0.1.0;
    the import name optimizer is unchanged, so uninstall the old portopt before you
    install it). It needs Python 3.12 or newer, pins exact dependency versions, and is
    licensed under PolyForm Noncommercial 1.0.0 instead of BSD-3-Clause. The optimizer
    console command and optimizer.pipeline are gone (compose runs from the primitives;
    build_portfolio_pipeline now lives in optimizer.pre_selection), and so are the HMM
    and DMM moment blending and several other names the subpackages used to export.
    Several optimizer.factors configs validate at construction, and CPCVConfig purges
    and embargoes by default. The two BREAKING sections of the changelog list the main breaks: the
    removed names, the packaging and dependency changes and some behaviour changes. They are
    not complete. The configs and builders that are still exported also lost or renamed
    fields, presets and parameters and changed some defaults, and most of those are not
    itemised: for example MomentEstimationConfig takes ew_mu_half_life and
    ew_cov_half_life where it took ew_mu_alpha and ew_cov_alpha, RiskBudgetingConfig
    no longer has risk_measure, DistanceConfig has estimator where it had
    distance_type, and WalkForwardConfig.purged_size defaults to 5 where it was 0. Check
    the signatures you call against the 0.1.0 source and run your code against this
    release before you rely on it.
  • Docker users: dump the database first, because four migrations cannot be
    downgraded (d1e2f3a4b5c6, which drops 17 tables, and three later ones,
    a5ac0fa9b0ec, a6f1c8d3e2b7 and b9c8d7e6f5a4) and a5ac0fa9b0ec deletes rows
    from trading_economics_indicators and trading_economics_observations. Every
    compose service now sits behind a profile, so a bare docker compose up starts
    nothing (use --profile ingestion or --profile fund). The scheduler reads its API
    keys from .env, .env.scheduler or the ./secrets/ files, so a key exported only
    in the shell no longer reaches it. The database (54320) and Adminer (18081) ports are
    published on 127.0.0.1 only, so other hosts can no longer reach them.
    docker-compose.yml pins the project name to optimizer, so a checkout under
    another directory name needs the steps in the Fixed entry on that pin before it
    upgrades.

The full list of changes is in the changelog.