-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add qsl compat metadata baseline #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=69", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "crypto-live-pool-pipelines" | ||
| version = "0.1.0" | ||
| description = "Live-pool rotation pipelines for crypto strategy runtime compatibility." | ||
| readme = "README.md" | ||
| requires-python = ">=3.11" | ||
| dependencies = [ | ||
| "quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@0063af3b4a974650ea58a7d3f26dd1b94f65d3e8", | ||
| "pandas==3.0.3", | ||
| "numpy==2.4.6", | ||
| "requests==2.34.2", | ||
| "matplotlib==3.11.0", | ||
| "PyYAML==6.0.3", | ||
| "lightgbm==4.6.0", | ||
| "scikit-learn==1.9.0", | ||
| "scipy==1.17.1", | ||
| "joblib==1.5.3", | ||
| "google-cloud-storage==3.12.0", | ||
| "google-cloud-firestore==2.28.0", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| test = ["pytest>=8"] | ||
|
|
||
| [tool.setuptools] | ||
| package-dir = {"" = "src"} | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [qsl] | ||
| repo = "CryptoLivePoolPipelines" | ||
| tier = "pipeline" | ||
| ring = 2 | ||
| allow_legacy = true | ||
| enforce_bundle = false | ||
| artifact_contract = "docs/integration_contract.md" | ||
| snapshot_contract = "docs/integration_contract.md" | ||
|
|
||
|
|
||
| [qsl.compat] | ||
| bundle = "2026.07.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| """Minimal QSL compat metadata smoke tests.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from pathlib import Path | ||
| import tomllib | ||
|
|
||
|
|
||
| def test_qsl_metadata_has_compat_bundle() -> None: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the checked CI workflow ( Useful? React with 👍 / 👎. |
||
| path = Path(__file__).resolve().parents[1] / "qsl.toml" | ||
| with path.open("rb") as f: | ||
| data = tomllib.load(f) | ||
|
|
||
| qsl = data["qsl"] | ||
| assert qsl["tier"] == "pipeline" | ||
| assert qsl["ring"] == 2 | ||
| assert qsl.get("repo") == "CryptoLivePoolPipelines" | ||
| compat = qsl["compat"] | ||
| assert compat["bundle"] == "2026.07.0" | ||
|
|
||
| assert qsl.get("artifact_contract") == "docs/integration_contract.md" | ||
| assert qsl.get("snapshot_contract") == "docs/integration_contract.md" | ||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
package-dir = {"" = "src"}plus package discovery undersrc, setuptools treats thesrc/directory as the package root instead of packaging the existingsrcpackage itself. This repo's scripts and tests import modules assrc.*(for examplefrom src.config import load_config), so wheel/non-checkout installs created from this newpyproject.tomlwill omitsrc/config.pyand the othersrc.*modules; either discover packages from the repo root or move the code under a package belowsrc.Useful? React with 👍 / 👎.