Repository navigation
Rename pwb_toolbox to pwb (paperswithbacktest 0.2.0 = 0.1.57 renamed), with the pwb-toolbox deprecation alias (preparation, do not merge yet) - #103
Conversation
…, with the pwb-toolbox alias The 0.1.56 code (Tradewind by default, PWB_ENGINE=backtrader to go back) moves to the import name `pwb`, distributed as `paperswithbacktest` 0.2.0 (`git mv`, history kept; internal imports, tests and docs rewritten). Nothing about the engine or the NAVs changes. * Deprecation alias: compat/pwb-toolbox is the last `pwb-toolbox` release (0.2.0, requires paperswithbacktest>=0.2.0). Every `pwb_toolbox.<module>` is the same module object as `pwb.<module>` (import hook): one BaseStrategy, one engine choice, one cache; one DeprecationWarning; `python -m pwb_toolbox.engine` works. Ported from #79 (7d1c99f), licence now Apache-2.0 like the package. * `pwb.backtesting.bt` is an import path with feeds/indicators/analyzers (from #79, e242c9f): the engine-neutral form the catalogue codemod writes (paperswithbacktest/tradewind#24); it follows PWB_ENGINE. * Kept: the cache directory ~/.cache/pwb_toolbox, the PWB_* variables. The harness' warning recorder accepts callers from `pwb` and `pwb_toolbox`. Tests: 486 passed, 6 skipped (backtrader and Tradewind installed), compat shim included. Nothing is published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zrKmQA3f7zJ5y5EL6MNjT
Documentation build overview
6 files changed ·
|
|
Relecture indépendante (lecture seule).
|
paperswithbacktest 0.2.0 now carries everything in 0.1.57: futures_chain.py lands under pwb/datasets/, tradewind>=0.0.4, its tests and docs name `pwb`. Version stays 0.2.0; the changelog keeps the 0.1.57 entry below the 0.2.0 one. pwb_toolbox_legacy: not in the 0.1.57 wheel either (it has no __init__.py, so `packages = find:` never picked it up; the PyPI wheel holds pwb_toolbox/ only), so `include = pwb, pwb.*` drops nothing that was shipped. Tests: 497 passed, 6 skipped (backtrader and Tradewind 0.0.4 installed), including the wheel-consistency test (alias requires paperswithbacktest>=0.2.0, same version, disjoint import names). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zrKmQA3f7zJ5y5EL6MNjT
propagate.py lands under pwb/world_model/; the new tests and docs import pwb. CHANGELOG: the 0.2.0 section carries both changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zrKmQA3f7zJ5y5EL6MNjT
|
Main (#100 WM9 L2, #104) intégrée par merge ( Artefacts construits depuis E2E (venv neuf Python 3.13, dépendances de campagne requirements-0154, les deux wheels locales, tradewind 0.0.4 de PyPI) : Rien n'est publié ni fusionné. 🤖 Generated with Claude Code |
Preparation only: do not merge or publish without Édouard. Supersedes the rename part of #79 (conflicting since #98/#99; its engine runner is already on
main). Nothing is published.What
PWB_ENGINE=backtraderto go back,load_futures_chain,tradewind>=0.0.4) moves to the import namepwb, distributionpaperswithbacktest0.2.0. Done withgit mv(history kept), thenmain0.1.57 merged in rather than rebased, to avoid a force-push:futures_chain.pylands underpwb/datasets/. Engine, defaults and NAVs are unchanged.compat/pwb-toolboxis the lastpwb-toolboxrelease (0.2.0),Requires-Dist: paperswithbacktest>=0.2.0. Everypwb_toolbox.<module>is the same module object aspwb.<module>: oneBaseStrategy, one engine choice, one cache, oneDeprecationWarning.python -m pwb_toolbox.enginestill works.pwb.backtesting.btas an import path:from pwb.backtesting import bt,from pwb.backtesting.bt import indicators as btind. It followsPWB_ENGINE; this is the form papers#818 writes.pwb_toolbox_legacy: not in the 0.1.57 wheel either. It has no__init__.py, sopackages = find:never picked it up (the PyPI 0.1.57 wheel holdspwb_toolbox/only).include = pwb, pwb.*therefore drops nothing that was shipped; the directory stays in the repository as before.~/.cache/pwb_toolbox/(no re-download), thePWB_*variables, the repository name.Checks
tests/test_compat_shim.py::test_each_release_owns_one_import_name, the wheel-consistency test: the alias requirespaperswithbacktest>=<version>, both carry the same version, and their import names are disjoint.paperswithbacktest-0.2.0(45 files,pwb/only,futures_chain.pyincluded);pwb_toolbox-0.2.0(shim only,Requires-Dist: paperswithbacktest>=0.2.0).Publication order (exact), and what breaks if a step is inverted
paperswithbacktest0.2.0 (this repository's root; replaces the 0.0.1 placeholder)pwb-toolbox0.2.0 (compat/pwb-toolbox)pip install pwb-toolbox==0.2.0cannot resolvepaperswithbacktest>=0.2.0. Anypip install -U pwb-toolboxthen fails, or pip falls back to 0.1.57 (unpinned installs).pwb-toolbox==0.2.0(it pullspaperswithbacktest) in the Airflow image (websiteservices/airflow/requirements.txt) and on the campaign server, after checking that no DAG run is in progresspaperswithbacktest: websiteprovenance.pyreadspackage_version("pwb-toolbox"), sotoolboxVersionbecomes unknown, every card's skip guard fails and every card is re-measured on every run.backtester.py(papers and site) and the skills stillimport pwb_toolbox, and those imports fail. Doing this before 1-2: the install fails.pwbform on code whose runners have nopwbyet.strategy.pyrewritten toimport pwb/pwb.backtesting.bt)import pwbin Airflow and on the campaign server (ModuleNotFoundError), and the monthly run marks the whole catalogue stale. Before 4: the PR names a toolmaindoes not have, so its re-run cannot be reproduced.navParityReportsThen, later: drop the alias at 1.0, once the site, docs, Tradewind's
live/dailyand the server namepwbonly.🤖 Generated with Claude Code
https://claude.ai/code/session_012zrKmQA3f7zJ5y5EL6MNjT